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库,没有这个文件,需要在哪里进行修改?
|