Function gx_hal_rtc_init

  • Defined in file__output_copyinclude_src_include_rtc_gx_hal_rtc.h

Function Documentation

hal_status gx_hal_rtc_init(GX_HAL_RTC *dev)

RTC 初始化 调用该函数初始化RTC,调用前需要填充dev结构体中以下参数: regs: 基地址 使用分频系数 cpsr_enable : 配置为 1 pclk : 1秒的分频系数 不使用分频系数 cpsr_enable : 配置为 0.

参数

dev – RTC 句柄

Returns HAL_OK

成功

Returns HAL_ERROR

失败

返回

hal_status 初始化否成功