Home
last modified time | relevance | path

Searched refs:clock_type (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/scripts/native_simulator/native/src/
Dnative_rtc.c18 uint64_t native_rtc_gettime_us(int clock_type) in native_rtc_gettime_us() argument
20 if (clock_type == RTC_CLOCK_BOOT) { in native_rtc_gettime_us()
22 } else if (clock_type == RTC_CLOCK_REALTIME) { /* RTC_CLOCK_REALTIME */ in native_rtc_gettime_us()
24 } else if (clock_type == RTC_CLOCK_PSEUDOHOSTREALTIME) { in native_rtc_gettime_us()
33 clock_type); in native_rtc_gettime_us()
42 void native_rtc_gettime(int clock_type, uint32_t *nsec, uint64_t *sec) in native_rtc_gettime() argument
44 if (clock_type == RTC_CLOCK_BOOT || clock_type == RTC_CLOCK_REALTIME) { in native_rtc_gettime()
45 uint64_t us = native_rtc_gettime_us(clock_type); in native_rtc_gettime()
/Zephyr-latest/boards/native/native_posix/
Dnative_rtc.c20 uint64_t native_rtc_gettime_us(int clock_type) in native_rtc_gettime_us() argument
22 if (clock_type == RTC_CLOCK_BOOT) { in native_rtc_gettime_us()
24 } else if (clock_type == RTC_CLOCK_REALTIME) { /* RTC_CLOCK_REALTIME */ in native_rtc_gettime_us()
26 } else if (clock_type == RTC_CLOCK_PSEUDOHOSTREALTIME) { in native_rtc_gettime_us()
35 clock_type); in native_rtc_gettime_us()
44 void native_rtc_gettime(int clock_type, uint32_t *nsec, uint64_t *sec) in native_rtc_gettime() argument
46 if (clock_type == RTC_CLOCK_BOOT || clock_type == RTC_CLOCK_REALTIME) { in native_rtc_gettime()
47 uint64_t us = native_rtc_gettime_us(clock_type); in native_rtc_gettime()
Dnative_rtc.h44 uint64_t native_rtc_gettime_us(int clock_type);
53 void native_rtc_gettime(int clock_type, uint32_t *nsec, uint64_t *sec);
/Zephyr-latest/drivers/clock_control/
Dclock_control_sam_pmc.c33 LOG_DBG("Type: %x, Id: %d", cfg->clock_type, cfg->peripheral_id); in atmel_sam_clock_control_on()
35 switch (cfg->clock_type) { in atmel_sam_clock_control_on()
59 LOG_DBG("Type: %x, Id: %d", cfg->clock_type, cfg->peripheral_id); in atmel_sam_clock_control_off()
61 switch (cfg->clock_type) { in atmel_sam_clock_control_off()
86 LOG_DBG("Type: %x, Id: %d", cfg->clock_type, cfg->peripheral_id); in atmel_sam_clock_control_get_rate()
88 switch (cfg->clock_type) { in atmel_sam_clock_control_get_rate()
116 LOG_DBG("Type: %x, Id: %d", cfg->clock_type, cfg->peripheral_id); in atmel_sam_clock_control_get_status()
118 switch (cfg->clock_type) { in atmel_sam_clock_control_get_status()
/Zephyr-latest/include/zephyr/drivers/clock_control/
Datmel_sam_pmc.h16 uint32_t clock_type; member
22 .clock_type = DT_CLOCKS_CELL_BY_IDX(node_id, clock_id, clock_type), \
/Zephyr-latest/scripts/native_simulator/native/src/include/
Dnative_rtc.h43 uint64_t native_rtc_gettime_us(int clock_type);
52 void native_rtc_gettime(int clock_type, uint32_t *nsec, uint64_t *sec);
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_uac2_macros.h164 (DT_ENUM_IDX(entity, clock_type)) | \