hal_rtc相关函数实现,只找到函数定义
-
void HAL_RTC_SetYYMMDD(uint8_t isLeapYear, uint8_t year, uint8_t month, uint8_t mday);
没有找到实现,只有函数原型类似的还有
void HAL_RTC_SetDDHHMMSS(RTC_WeekDay wday, uint8_t hour, uint8_t minute, uint8_t second);
void HAL_RTC_SetLeapYear(uint8_t isLeapYear);
void HAL_RTC_GetYYMMDD(uint8_t *isLeapYear, uint8_t *year, uint8_t *month, uint8_t *mday);
void HAL_RTC_GetDDHHMMSS(RTC_WeekDay *wday, uint8_t *hour, uint8_t *minute, uint8_t *second) ;
void HAL_RTC_StartSecAlarm(const RTC_SecAlarmStartParam *param);
-
@zhugx 在 hal_rtc相关函数实现,只找到函数定义 中说:
HAL_RTC_SetDDHHMMSS
可以在 Linux 下使用 grep 搜索看看。
▸ grep "HAL_RTC_SetDDHHMMSS" -nr device/xradio/xr806/ device/xradio/xr806/xr_skylark/include/driver/chip/hal_rtc.h:222:void HAL_RTC_SetDDHHMMSS(RTC_WeekDay wday, uint8_t hour, uint8_t minute, uint8_t second); device/xradio/xr806/xr_skylark/lib/xradio_v2/rom_symbol.ld:440:HAL_RTC_SetDDHHMMSS = 0xdad5; device/xradio/xr806/xr_skylark/lib/xradio_v3/rom_symbol.ld:496:HAL_RTC_SetDDHHMMSS = 0x14159; device/xradio/xr806/xr_skylark/project/bootloader/gcc/.project.ld:494:HAL_RTC_SetDDHHMMSS = 0x14159; grep: device/xradio/xr806/xr_skylark/project/bootloader/gcc/bootloader.elf: binary file matches device/xradio/xr806/xr_skylark/project/bootloader/gcc/bootloader.map:3513: 0x0000000000014159 HAL_RTC_SetDDHHMMSS = 0x14159 device/xradio/xr806/xr_skylark/project/common/cmd/cmd_rtc.c:122: HAL_RTC_SetDDHHMMSS(CMD_WDAY_TM2RTC(t.tm_wday), t.tm_hour, t.tm_min, t.tm_sec); grep: device/xradio/xr806/xr_skylark/project/common/cmd/cmd_rtc.o: binary file matches device/xradio/xr806/xr_skylark/project/demo/audio_demo/gcc/audio_demo.map:16368: 0x0000000000014159 HAL_RTC_SetDDHHMMSS = 0x14159 device/xradio/xr806/xr_skylark/project/demo/audio_demo/gcc/audio_demo.map:38722:HAL_RTC_SetDDHHMMSS ../../../../project/common/cmd/cmd_rtc.o device/xradio/xr806/xr_skylark/project/demo/audio_demo/gcc/.project.ld:497:HAL_RTC_SetDDHHMMSS = 0x14159; grep: device/xradio/xr806/xr_skylark/project/demo/audio_demo/gcc/audio_demo.elf: binary file matches device/xradio/xr806/xr_skylark/project/example/rtc/main.c:39:#define RTC_SET_DDHHMMSS(wday, hour, minute, second) HAL_RTC_SetDDHHMMSS(wday, hour, minute, second) device/xradio/xr806/xr_skylark/src/rom/rom_bin/out/rom.csv:343:'0000dad4,'00000060,'T,'HAL_RTC_SetDDHHMMSS device/xradio/xr806/xr_skylark/src/rom/rom_bin/src/driver/chip/hal_rtc.c:245:void HAL_RTC_SetDDHHMMSS(RTC_WeekDay wday, uint8_t hour, uint8_t minute, uint8_t second) device/xradio/xr806/xr_skylark/tags:15405:HAL_RTC_SetDDHHMMSS src/rom/rom_bin/src/driver/chip/hal_rtc.c /^void HAL_RTC_SetDDHHMMSS(RTC_WeekDay wday, uint8_t hour, uint8_t minute, uint8_t second)$/;" f device/xradio/xr806/xr_skylark/out/audio_demo.map:16368: 0x0000000000014159 HAL_RTC_SetDDHHMMSS = 0x14159 device/xradio/xr806/xr_skylark/out/audio_demo.map:38722:HAL_RTC_SetDDHHMMSS ../../../../project/common/cmd/cmd_rtc.o
具体的你可以看下文件
device/xraddevice/xradio/xr806/xr_skylark/src/rom/rom_bin/src/driver/chip/hal_rtc.c
这里有这些函数定义。 -
@iysheng 好的,多谢!
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号