Home
last modified time | relevance | path

Searched refs:rtc (Results 1 – 25 of 102) sorted by relevance

12345

/bsp/maxim/libraries/MAX32660PeriphDriver/Source/
A Drtc.c54 int RTC_EnableTimeofdayInterrupt(mxc_rtc_regs_t *rtc) in RTC_EnableTimeofdayInterrupt() argument
65 int RTC_DisableTimeofdayInterrupt(mxc_rtc_regs_t *rtc) in RTC_DisableTimeofdayInterrupt() argument
82 int RTC_EnableSubsecondInterrupt(mxc_rtc_regs_t *rtc) in RTC_EnableSubsecondInterrupt() argument
126 if(RTC_EnableTimeofdayInterrupt(rtc) == E_BUSY) { in RTC_SetTimeofdayAlarm()
148 if(RTC_EnableSubsecondInterrupt(rtc) == E_BUSY) { in RTC_SetSubsecondAlarm()
157 int RTC_EnableRTCE(mxc_rtc_regs_t *rtc) in RTC_EnableRTCE() argument
179 int RTC_DisableRTCE(mxc_rtc_regs_t *rtc) in RTC_DisableRTCE() argument
230 rtc->ssec = ssec; in RTC_Init()
235 rtc->sec = sec; in RTC_Init()
304 int RTC_Trim(mxc_rtc_regs_t *rtc, int8_t trim) in RTC_Trim() argument
[all …]
/bsp/xuantie/libraries/xuantie_libraries/chip_riscv_dummy/src/drivers/
A Drtc.c63 if (rtc->callback) { in qx_rtc_irq_handler()
64 rtc->callback(rtc, rtc->arg); in qx_rtc_irq_handler()
77 CSI_PARAM_CHK(rtc, CSI_ERROR); in csi_rtc_init()
96 CSI_PARAM_CHK_NORETVAL(rtc); in csi_rtc_uninit()
109 CSI_PARAM_CHK(rtc, CSI_ERROR); in csi_rtc_set_time()
205 CSI_PARAM_CHK(rtc, 0U); in csi_rtc_get_alarm_remaining_time()
228 rtc->arg = arg; in csi_rtc_set_alarm()
230 csi_irq_attach((uint32_t)rtc->dev.irq_num, &qx_rtc_irq_handler, &rtc->dev); in csi_rtc_set_alarm()
251 rtc->callback = NULL; in csi_rtc_cancel_alarm()
252 rtc->arg = NULL; in csi_rtc_cancel_alarm()
[all …]
/bsp/xuantie/libraries/xuantie_libraries/csi/csi2/include/drv/
A Drtc.h53 void (*callback)(csi_rtc_t *rtc, void *arg);
64 csi_error_t csi_rtc_init(csi_rtc_t *rtc, uint32_t idx);
71 void csi_rtc_uninit(csi_rtc_t *rtc);
79 csi_error_t csi_rtc_set_time(csi_rtc_t *rtc, const csi_rtc_time_t *rtctime);
87 csi_error_t csi_rtc_set_time_no_wait(csi_rtc_t *rtc, const csi_rtc_time_t *rtctime);
95 csi_error_t csi_rtc_get_time(csi_rtc_t *rtc, csi_rtc_time_t *rtctime);
102 uint32_t csi_rtc_get_alarm_remaining_time(csi_rtc_t *rtc);
119 csi_error_t csi_rtc_cancel_alarm(csi_rtc_t *rtc);
128 bool csi_rtc_is_running(csi_rtc_t *rtc);
135 csi_error_t csi_rtc_enable_pm(csi_rtc_t *rtc);
[all …]
/bsp/bouffalo_lab/libraries/rt_drivers/
A Ddrv_rtc.c21 static struct rt_device rtc; variable
69 rtc.type = RT_Device_Class_RTC; in rt_hw_rtc_init()
70 rtc.rx_indicate = RT_NULL; in rt_hw_rtc_init()
71 rtc.tx_complete = RT_NULL; in rt_hw_rtc_init()
72 rtc.init = RT_NULL; in rt_hw_rtc_init()
73 rtc.open = _rtc_open; in rt_hw_rtc_init()
74 rtc.close = RT_NULL; in rt_hw_rtc_init()
75 rtc.read = _rtc_read; in rt_hw_rtc_init()
76 rtc.write = RT_NULL; in rt_hw_rtc_init()
77 rtc.control = _rtc_control; in rt_hw_rtc_init()
[all …]
/bsp/maxim/libraries/MAX32660PeriphDriver/Include/
A Drtc.h90 int RTC_EnableTimeofdayInterrupt(mxc_rtc_regs_t *rtc);
99 int RTC_DisableTimeofdayInterrupt(mxc_rtc_regs_t *rtc);
108 int RTC_EnableSubsecondInterrupt(mxc_rtc_regs_t *rtc);
117 int RTC_DisableSubsecondInterrupt(mxc_rtc_regs_t *rtc);
127 int RTC_SetTimeofdayAlarm(mxc_rtc_regs_t *rtc, uint32_t ras);
138 int RTC_SetSubsecondAlarm(mxc_rtc_regs_t *rtc, uint32_t rssa);
146 int RTC_EnableRTCE(mxc_rtc_regs_t *rtc);
154 int RTC_DisableRTCE(mxc_rtc_regs_t *rtc);
165 int RTC_Init(mxc_rtc_regs_t *rtc, uint32_t sec, uint8_t ssec, sys_cfg_rtc_t *sys_cfg);
177 int RTC_SquareWave(mxc_rtc_regs_t *rtc, rtc_sqwave_en_t sqe, rtc_freq_sel_t ft,
[all …]
/bsp/efm32/
A Ddrv_rtc.c37 static struct rt_device rtc; variable
177 rtc.type = RT_Device_Class_RTC; in rt_hw_rtc_init()
178 rtc.rx_indicate = RT_NULL; in rt_hw_rtc_init()
179 rtc.tx_complete = RT_NULL; in rt_hw_rtc_init()
180 rtc.init = RT_NULL; in rt_hw_rtc_init()
181 rtc.open = rt_rtc_open; in rt_hw_rtc_init()
182 rtc.close = RT_NULL; in rt_hw_rtc_init()
183 rtc.read = rt_rtc_read; in rt_hw_rtc_init()
184 rtc.write = RT_NULL; in rt_hw_rtc_init()
185 rtc.control = rt_rtc_control; in rt_hw_rtc_init()
[all …]
/bsp/apollo2/board/
A Drtc.c96 static struct rt_device rtc; in rt_hw_rtc_init() local
118 rtc.type = RT_Device_Class_RTC; in rt_hw_rtc_init()
119 rtc.init = RT_NULL; in rt_hw_rtc_init()
120 rtc.open = rt_rtc_open; in rt_hw_rtc_init()
121 rtc.close = RT_NULL; in rt_hw_rtc_init()
122 rtc.read = rt_rtc_read; in rt_hw_rtc_init()
123 rtc.write = RT_NULL; in rt_hw_rtc_init()
124 rtc.control = rt_rtc_control; in rt_hw_rtc_init()
127 rtc.user_data = RT_NULL; in rt_hw_rtc_init()
129 rt_device_register(&rtc, "rtc", RT_DEVICE_FLAG_RDWR); in rt_hw_rtc_init()
/bsp/wch/risc-v/Libraries/ch32_drivers/
A Ddrv_rtc.c28 static struct rt_rtc_device rtc; variable
108 rtc.ops = &rtc_ops; in rt_hw_rtc_init()
109 result = rt_hw_rtc_register(&rtc, "rtc", RT_DEVICE_FLAG_RDWR, RT_NULL); in rt_hw_rtc_init()
/bsp/wch/arm/Libraries/ch32_drivers/
A Ddrv_rtc_ch32f10x.c27 static struct rt_rtc_device rtc; variable
116 rtc.ops = &rtc_ops; in rt_hw_rtc_init()
118 result = rt_hw_rtc_register(&rtc, "rtc", RT_DEVICE_FLAG_RDWR, RT_NULL); in rt_hw_rtc_init()
A Ddrv_rtc_ch32f20x.c27 static struct rt_rtc_device rtc; variable
116 rtc.ops = &rtc_ops; in rt_hw_rtc_init()
118 result = rt_hw_rtc_register(&rtc, "rtc", RT_DEVICE_FLAG_RDWR, RT_NULL); in rt_hw_rtc_init()
/bsp/allwinner/libraries/sunxi-hal/hal/source/rtc/
A DKconfig4 bool "enable rtc driver"
8 bool "enable rtc hal APIs test command"
A Dhal_rtc.c47 static hal_rtc_status_t hal_rtc_clk_init(struct hal_rtc_dev *rtc) in hal_rtc_clk_init() argument
62 rtc->bus_clk = hal_clock_get(clk_r_type, rtc_clk_r_id); in hal_rtc_clk_init()
63 if(hal_clock_enable(rtc->bus_clk)) in hal_rtc_clk_init()
68 rtc->rtc1k_clk = hal_clock_get(clk_rtc1k_type, rtc_clk_rtc1k_id); in hal_rtc_clk_init()
69 if(hal_clock_enable(rtc->rtc1k_clk)) in hal_rtc_clk_init()
74 rtc->rtcspi_clk = hal_clock_get(clk_rtcspi_type, rtc_clk_rtcspi_id); in hal_rtc_clk_init()
75 if(hal_clock_enable(rtc->rtcspi_clk)) in hal_rtc_clk_init()
81 rtc->reset = hal_reset_control_get(reset_type, rtc_reset_id); in hal_rtc_clk_init()
82 if(hal_reset_control_deassert(rtc->reset)) in hal_rtc_clk_init()
A DMakefile2 obj-y += rtc-lib.o
/bsp/allwinner/libraries/sunxi-hal/hal/source/ccmu/sunxi-ng/
A DMakefile24 obj-$(CONFIG_ARCH_SUN8IW20) += ccu-sun8iw20-rtc.o
27 obj-$(CONFIG_SOC_SUN20IW1) += ccu-sun8iw20-rtc.o
/bsp/nrf5x/libraries/drivers/
A Ddrv_rtc.c38 static struct rt_rtc_device rtc; variable
120 result = rt_hw_rtc_register(&rtc, "rtc", RT_DEVICE_FLAG_RDWR,RT_NULL); in rt_hw_rtc_init()
/bsp/ESP32_C3/idf_port/ld/
A Dsections.ld20 .rtc.text :
25 *(.rtc.literal .rtc.text .rtc.text.*)
42 .rtc.force_fast :
48 *(.rtc.fast.coredump .rtc.fast.coredump.*)
51 *(.rtc.force_fast .rtc.force_fast.*)
62 .rtc.data :
67 *(.rtc.coredump .rtc.coredump.*)
69 *(.rtc.data .rtc.data.*)
70 *(.rtc.rodata .rtc.rodata.*)
83 *(.rtc.bss)
[all …]
/bsp/maxim/libraries/MAX32660PeriphDriver/
A DSConscript15 Source/rtc.c
38 src += ['Source/rtc.c']
/bsp/maxim/libraries/HAL_Drivers/
A Ddrv_rtc.c21 static struct rt_device rtc; variable
126 result = rt_hw_rtc_register(&rtc, "rtc", RT_DEVICE_FLAG_RDWR); in rt_hw_rtc_init()
/bsp/allwinner/libraries/sunxi-hal/hal/
A DSConscript14 source/ccmu/sunxi-ng/ccu-sun8iw20-rtc.c
191 rtc = Split('''
192 source/rtc/hal_rtc.c
193 source/rtc/rtc-lib.c
219 rtc_path = [cwd + '/../include/hal/rtc']
286 src += rtc
/bsp/loongson/ls1cdev/drivers/
A Ddrv_rtc.c29 static struct rt_device rtc; variable
170 rt_hw_rtc_register(&rtc, RT_RTC_NAME, 0); in rt_hw_rtc_init()
/bsp/gd32/risc-v/docs/
A DGD32_RISC-V系列驱动介绍.md40 …nt/site/#/rt-thread-version/rt-thread-standard/programming-manual/device/rtc/rtc) | 设置和读取时间 …
/bsp/samd21/sam_d2x_asflib/
A DSConscript85 #sam0/drivers/rtc
86 path += [cwd + '/sam0/drivers/rtc']
87 src += Glob('./sam0/drivers/rtc/rtc_sam_d_r_h/rtc_count*.c')
/bsp/gd32/arm/docs/
A DGD32_ARM系列驱动介绍.md41 …nt/site/#/rt-thread-version/rt-thread-standard/programming-manual/device/rtc/rtc) | 设置和读取时间 …
/bsp/stm32/docs/
A DSTM32系列驱动介绍.md41 …nt/site/#/rt-thread-version/rt-thread-standard/programming-manual/device/rtc/rtc) | 设置和读取时间 …
/bsp/loongson/ls2kdev/drivers/
A Ddrv_rtc.c170 static struct rt_device rtc = in rt_hw_rtc_init() local
181 rt_device_register(&rtc, "rtc", RT_DEVICE_FLAG_RDWR); in rt_hw_rtc_init()

Completed in 257 milliseconds

12345