问答

汇集网友智慧,解决技术难题

21ic问答首页 - RT-Thread中AT32F403A使用RTC

RTC RT-Thread TE define

RT-Thread中AT32F403A使用RTC

cookie2g2021-01-20
RT-Thread Studio中开启RTC,根据官方说明(基于STM32),只要三步:搜索
复制

/** if you want to use rtc(hardware) you can use the following instructions.
*
* STEP 1, open rtc driver framework(hardware) support in the RT-Thread Settings file
*
* STEP 2, define macro related to the rtc
*                 such as    BSP_USING_ONCHIP_RTC
*
* STEP 3, modify your stm32xxxx_hal_config.h file to support rtc peripherals. define macro related to the peripherals
*                 such as     #define HAL_RTC_MODULE_ENABLED


但是第三步,需要在hal_config.h文件中修改,而AT32用的是STD库,没有这个文件,需要在哪里进行修改?
回答 +关注 8
1341人浏览 3人回答问题 分享 举报
3 个回答

您需要登录后才可以回复 登录 | 注册