diff --git a/bsp/stm32f4xx-HAL/.config b/bsp/stm32f4xx-HAL/.config index b1066764b9a410b356dccf324439334bc744738d..fec811876058db51dc1fd38f31bcdf295fb2c066 100644 --- a/bsp/stm32f4xx-HAL/.config +++ b/bsp/stm32f4xx-HAL/.config @@ -94,19 +94,17 @@ CONFIG_RT_USING_SERIAL=y CONFIG_RT_USING_PIN=y # CONFIG_RT_USING_MTD_NOR is not set # CONFIG_RT_USING_MTD_NAND is not set -# CONFIG_RT_USING_RTC is not set +CONFIG_RT_USING_RTC=y # CONFIG_RT_USING_SDIO is not set # CONFIG_RT_USING_SPI is not set # CONFIG_RT_USING_WDT is not set +# CONFIG_RT_USING_WIFI is not set # # Using USB # # CONFIG_RT_USING_USB_HOST is not set # CONFIG_RT_USING_USB_DEVICE is not set -# CONFIG__RT_USB_DEVICE_CDC is not set -# CONFIG__RT_USB_DEVICE_MSTORAGE is not set -# CONFIG__RT_USB_DEVICE_HID is not set # # POSIX layer and C standard library diff --git a/bsp/stm32f4xx-HAL/drivers/SConscript b/bsp/stm32f4xx-HAL/drivers/SConscript index f27af7d2e49f6943db7ae1ad2aabd35c993b0d87..b3e0ec1932dcbd7ae208778ad606e4df05aa5cca 100644 --- a/bsp/stm32f4xx-HAL/drivers/SConscript +++ b/bsp/stm32f4xx-HAL/drivers/SConscript @@ -28,6 +28,9 @@ if GetDepend(['RT_USING_WDT']): if GetDepend(['RT_USING_USB_DEVICE']): src += ['drv_usb.c'] +if GetDepend(['RT_USING_RTC']): + src += ['drv_rtc.c'] + CPPPATH = [cwd] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/stm32f4xx-HAL/drivers/drv_rtc.c b/bsp/stm32f4xx-HAL/drivers/drv_rtc.c new file mode 100644 index 0000000000000000000000000000000000000000..3058f0e18eb8040a3a8e4c8e1e45a3f0a85d870f --- /dev/null +++ b/bsp/stm32f4xx-HAL/drivers/drv_rtc.c @@ -0,0 +1,206 @@ +/* + * File : drv_rtc.c + * This file is part of RT-Thread RTOS + * COPYRIGHT (C) 2015, RT-Thread Development Team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Change Logs: + * Date Author Notes + * 2017-10-25 ZYH first implementation + */ +#include "drv_rtc.h" +#include +#include +#include +#include +RTC_HandleTypeDef hrtc; + +/* RTC init function */ +void MX_RTC_Init(void) +{ + RTC_TimeTypeDef sTime; + RTC_DateTypeDef sDate; + + /**Initialize RTC Only + */ + hrtc.Instance = RTC; + hrtc.Init.HourFormat = RTC_HOURFORMAT_24; + hrtc.Init.AsynchPrediv = 127; + hrtc.Init.SynchPrediv = 255; + hrtc.Init.OutPut = RTC_OUTPUT_DISABLE; + hrtc.Init.OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH; + hrtc.Init.OutPutType = RTC_OUTPUT_TYPE_OPENDRAIN; + RT_ASSERT(HAL_RTC_Init(&hrtc) == HAL_OK); + /**Initialize RTC and set the Time and Date + */ + if (HAL_RTCEx_BKUPRead(&hrtc, RTC_BKP_DR0) != 0x32F2) + { + sTime.Hours = 22; + sTime.Minutes = 28; + sTime.Seconds = 0; + sTime.DayLightSaving = RTC_DAYLIGHTSAVING_NONE; + sTime.StoreOperation = RTC_STOREOPERATION_RESET; + RT_ASSERT(HAL_RTC_SetTime(&hrtc, &sTime, RTC_FORMAT_BIN) == HAL_OK); + + sDate.WeekDay = RTC_WEEKDAY_THURSDAY; + sDate.Month = RTC_MONTH_OCTOBER; + sDate.Date = 26; + sDate.Year = 17; + + RT_ASSERT(HAL_RTC_SetDate(&hrtc, &sDate, RTC_FORMAT_BIN) == HAL_OK); + } + HAL_RTCEx_BKUPWrite(&hrtc, RTC_BKP_DR0, 0x32F2); + +} + +void HAL_RTC_MspInit(RTC_HandleTypeDef *rtcHandle) +{ + + if (rtcHandle->Instance == RTC) + { + /* USER CODE BEGIN RTC_MspInit 0 */ + + /* USER CODE END RTC_MspInit 0 */ + /* RTC clock enable */ + __HAL_RCC_RTC_ENABLE(); + /* USER CODE BEGIN RTC_MspInit 1 */ + + /* USER CODE END RTC_MspInit 1 */ + } +} + +void HAL_RTC_MspDeInit(RTC_HandleTypeDef *rtcHandle) +{ + + if (rtcHandle->Instance == RTC) + { + /* USER CODE BEGIN RTC_MspDeInit 0 */ + + /* USER CODE END RTC_MspDeInit 0 */ + /* Peripheral clock disable */ + __HAL_RCC_RTC_DISABLE(); + /* USER CODE BEGIN RTC_MspDeInit 1 */ + + /* USER CODE END RTC_MspDeInit 1 */ + } +} + + +static rt_err_t stm32_rtc_control(struct rt_device *dev, + int cmd, + void *args) +{ + struct tm *tm_now; + struct tm now; + RTC_TimeTypeDef sTime; + RTC_DateTypeDef sDate; + + rt_enter_critical(); + /* converts calendar time time into local time. */ + tm_now = localtime((const time_t *) args); + /* copy the statically located variable */ + memcpy(&now, tm_now, sizeof(struct tm)); + /* unlock scheduler. */ + rt_exit_critical(); + switch (cmd) + { + case RT_DEVICE_CTRL_RTC_GET_TIME: + HAL_RTC_GetTime(&hrtc, &sTime, RTC_FORMAT_BIN); + HAL_RTC_GetDate(&hrtc, &sDate, RTC_FORMAT_BIN); + now.tm_hour = sTime.Hours; + now.tm_min = sTime.Minutes; + now.tm_sec = sTime.Seconds; + now.tm_year = sDate.Year + 100; + now.tm_mon = sDate.Month - 1; + now.tm_mday = sDate.Date; + *((time_t *)args) = mktime(&now); + break; + case RT_DEVICE_CTRL_RTC_SET_TIME: + sTime.Hours = now.tm_hour; + sTime.Minutes = now.tm_min; + sTime.Seconds = now.tm_sec; + sDate.Year = now.tm_year - 100; + sDate.Month = now.tm_mon + 1; + sDate.Date = now.tm_mday; + HAL_RTC_SetTime(&hrtc, &sTime, RTC_FORMAT_BIN); + HAL_RTC_SetDate(&hrtc, &sDate, RTC_FORMAT_BIN); + break; + } + return RT_EOK; +} +static rt_err_t stm32_rtc_init(struct rt_device *dev) +{ + return RT_EOK; +} +static rt_err_t stm32_rtc_open(struct rt_device *dev, rt_uint16_t oflag) +{ + return RT_EOK; +} +static rt_err_t stm32_rtc_close(struct rt_device *dev) +{ + return RT_EOK; +} +static rt_size_t stm32_rtc_read(struct rt_device *dev, + rt_off_t pos, + void *buffer, + rt_size_t size) +{ + stm32_rtc_control(dev,RT_DEVICE_CTRL_RTC_GET_TIME,buffer); + return size; +} + +static rt_size_t stm32_rtc_write(struct rt_device *dev, + rt_off_t pos, + const void *buffer, + rt_size_t size) +{ + stm32_rtc_control(dev,RT_DEVICE_CTRL_RTC_SET_TIME,(void *)buffer); + return size; +} +struct rt_device rtc_device; + +int rt_hw_rtc_init(void) +{ + MX_RTC_Init(); + + rtc_device.type = RT_Device_Class_RTC; + rtc_device.rx_indicate = RT_NULL; + rtc_device.tx_complete = RT_NULL; + + rtc_device.init = stm32_rtc_init; + rtc_device.open = stm32_rtc_open; + rtc_device.close = stm32_rtc_close; + rtc_device.read = stm32_rtc_read; + rtc_device.write = stm32_rtc_write; + rtc_device.control = stm32_rtc_control; + rtc_device.user_data = RT_NULL; + + /* register a character device */ + return rt_device_register(&rtc_device, "rtc", RT_DEVICE_FLAG_DEACTIVATE); +} + +INIT_BOARD_EXPORT(rt_hw_rtc_init); + + + + + + + + + + + diff --git a/bsp/stm32f4xx-HAL/drivers/drv_rtc.h b/bsp/stm32f4xx-HAL/drivers/drv_rtc.h new file mode 100644 index 0000000000000000000000000000000000000000..4e94ed1c42ba5da8e9339d8745d3143c03aa7e96 --- /dev/null +++ b/bsp/stm32f4xx-HAL/drivers/drv_rtc.h @@ -0,0 +1,28 @@ +/* + * File : drv_rtc.h + * This file is part of RT-Thread RTOS + * COPYRIGHT (C) 2015, RT-Thread Development Team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Change Logs: + * Date Author Notes + * 2017-10-25 ZYH first implementation + */ + +#ifndef __DRV_RTC_H__ +#define __DRV_RTC_H__ +extern int rt_hw_rtc_init(void); +#endif diff --git a/bsp/stm32f4xx-HAL/drivers/stm32f4xx_hal_conf.h b/bsp/stm32f4xx-HAL/drivers/stm32f4xx_hal_conf.h index 6384d902b80cafade921c4a123e81b09ea698932..4c4b030966d686e378ad525e32565a8cee3d8ab5 100644 --- a/bsp/stm32f4xx-HAL/drivers/stm32f4xx_hal_conf.h +++ b/bsp/stm32f4xx-HAL/drivers/stm32f4xx_hal_conf.h @@ -75,7 +75,9 @@ #define HAL_PWR_MODULE_ENABLED #define HAL_RCC_MODULE_ENABLED /* #define HAL_RNG_MODULE_ENABLED */ -/* #define HAL_RTC_MODULE_ENABLED */ +#ifdef RT_USING_RTC + #define HAL_RTC_MODULE_ENABLED +#endif /* #define HAL_SAI_MODULE_ENABLED */ /* #define HAL_SD_MODULE_ENABLED */ #ifdef RT_USING_SPI diff --git a/bsp/stm32f4xx-HAL/project.uvoptx b/bsp/stm32f4xx-HAL/project.uvoptx index 3ef0a82752743fb379db7311d9137e098619bdd2..164e82c343a93df8a82cedae7efa321f19ee72e5 100644 --- a/bsp/stm32f4xx-HAL/project.uvoptx +++ b/bsp/stm32f4xx-HAL/project.uvoptx @@ -8,7 +8,7 @@ *.c *.s*; *.src; *.a* - *.obj + *.obj; *.o *.lib *.txt; *.h; *.inc *.plm @@ -73,7 +73,7 @@ 0 - 0 + 1 0 1 @@ -178,4 +178,1604 @@ + + Applications + 0 + 0 + 0 + 0 + + 1 + 1 + 1 + 0 + 0 + 0 + applications\main.c + main.c + 0 + 0 + + + + + Drivers + 0 + 0 + 0 + 0 + + 2 + 2 + 1 + 0 + 0 + 0 + drivers\board.c + board.c + 0 + 0 + + + 2 + 3 + 1 + 0 + 0 + 0 + drivers\stm32f4xx_it.c + stm32f4xx_it.c + 0 + 0 + + + 2 + 4 + 1 + 0 + 0 + 0 + drivers\drv_gpio.c + drv_gpio.c + 0 + 0 + + + 2 + 5 + 1 + 0 + 0 + 0 + drivers\drv_usart.c + drv_usart.c + 0 + 0 + + + 2 + 6 + 1 + 0 + 0 + 0 + drivers\drv_rtc.c + drv_rtc.c + 0 + 0 + + + + + CMSIS + 0 + 0 + 0 + 0 + + 3 + 7 + 1 + 0 + 0 + 0 + Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c + system_stm32f4xx.c + 0 + 0 + + + 3 + 8 + 2 + 0 + 0 + 0 + Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f401xc.s + startup_stm32f401xc.s + 0 + 0 + + + + + STM32F4xx_HAL_Driver + 0 + 0 + 0 + 0 + + 4 + 9 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal.c + stm32f4xx_hal.c + 0 + 0 + + + 4 + 10 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_adc.c + stm32f4xx_hal_adc.c + 0 + 0 + + + 4 + 11 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_adc_ex.c + stm32f4xx_hal_adc_ex.c + 0 + 0 + + + 4 + 12 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_can.c + stm32f4xx_hal_can.c + 0 + 0 + + + 4 + 13 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cec.c + stm32f4xx_hal_cec.c + 0 + 0 + + + 4 + 14 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cortex.c + stm32f4xx_hal_cortex.c + 0 + 0 + + + 4 + 15 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_crc.c + stm32f4xx_hal_crc.c + 0 + 0 + + + 4 + 16 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cryp.c + stm32f4xx_hal_cryp.c + 0 + 0 + + + 4 + 17 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cryp_ex.c + stm32f4xx_hal_cryp_ex.c + 0 + 0 + + + 4 + 18 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dac.c + stm32f4xx_hal_dac.c + 0 + 0 + + + 4 + 19 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dac_ex.c + stm32f4xx_hal_dac_ex.c + 0 + 0 + + + 4 + 20 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi.c + stm32f4xx_hal_dcmi.c + 0 + 0 + + + 4 + 21 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi_ex.c + stm32f4xx_hal_dcmi_ex.c + 0 + 0 + + + 4 + 22 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dfsdm.c + stm32f4xx_hal_dfsdm.c + 0 + 0 + + + 4 + 23 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma.c + stm32f4xx_hal_dma.c + 0 + 0 + + + 4 + 24 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma2d.c + stm32f4xx_hal_dma2d.c + 0 + 0 + + + 4 + 25 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma_ex.c + stm32f4xx_hal_dma_ex.c + 0 + 0 + + + 4 + 26 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dsi.c + stm32f4xx_hal_dsi.c + 0 + 0 + + + 4 + 27 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_eth.c + stm32f4xx_hal_eth.c + 0 + 0 + + + 4 + 28 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash.c + stm32f4xx_hal_flash.c + 0 + 0 + + + 4 + 29 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash_ex.c + stm32f4xx_hal_flash_ex.c + 0 + 0 + + + 4 + 30 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash_ramfunc.c + stm32f4xx_hal_flash_ramfunc.c + 0 + 0 + + + 4 + 31 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_fmpi2c.c + stm32f4xx_hal_fmpi2c.c + 0 + 0 + + + 4 + 32 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_fmpi2c_ex.c + stm32f4xx_hal_fmpi2c_ex.c + 0 + 0 + + + 4 + 33 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_gpio.c + stm32f4xx_hal_gpio.c + 0 + 0 + + + 4 + 34 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_hash.c + stm32f4xx_hal_hash.c + 0 + 0 + + + 4 + 35 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_hash_ex.c + stm32f4xx_hal_hash_ex.c + 0 + 0 + + + 4 + 36 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_hcd.c + stm32f4xx_hal_hcd.c + 0 + 0 + + + 4 + 37 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2c.c + stm32f4xx_hal_i2c.c + 0 + 0 + + + 4 + 38 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2c_ex.c + stm32f4xx_hal_i2c_ex.c + 0 + 0 + + + 4 + 39 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2s.c + stm32f4xx_hal_i2s.c + 0 + 0 + + + 4 + 40 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2s_ex.c + stm32f4xx_hal_i2s_ex.c + 0 + 0 + + + 4 + 41 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_irda.c + stm32f4xx_hal_irda.c + 0 + 0 + + + 4 + 42 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_iwdg.c + stm32f4xx_hal_iwdg.c + 0 + 0 + + + 4 + 43 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_lptim.c + stm32f4xx_hal_lptim.c + 0 + 0 + + + 4 + 44 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_ltdc.c + stm32f4xx_hal_ltdc.c + 0 + 0 + + + 4 + 45 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_ltdc_ex.c + stm32f4xx_hal_ltdc_ex.c + 0 + 0 + + + 4 + 46 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_mmc.c + stm32f4xx_hal_mmc.c + 0 + 0 + + + 4 + 47 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_nand.c + stm32f4xx_hal_nand.c + 0 + 0 + + + 4 + 48 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_nor.c + stm32f4xx_hal_nor.c + 0 + 0 + + + 4 + 49 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pccard.c + stm32f4xx_hal_pccard.c + 0 + 0 + + + 4 + 50 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pcd.c + stm32f4xx_hal_pcd.c + 0 + 0 + + + 4 + 51 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pcd_ex.c + stm32f4xx_hal_pcd_ex.c + 0 + 0 + + + 4 + 52 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr.c + stm32f4xx_hal_pwr.c + 0 + 0 + + + 4 + 53 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr_ex.c + stm32f4xx_hal_pwr_ex.c + 0 + 0 + + + 4 + 54 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_qspi.c + stm32f4xx_hal_qspi.c + 0 + 0 + + + 4 + 55 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc.c + stm32f4xx_hal_rcc.c + 0 + 0 + + + 4 + 56 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc_ex.c + stm32f4xx_hal_rcc_ex.c + 0 + 0 + + + 4 + 57 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rng.c + stm32f4xx_hal_rng.c + 0 + 0 + + + 4 + 58 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rtc.c + stm32f4xx_hal_rtc.c + 0 + 0 + + + 4 + 59 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rtc_ex.c + stm32f4xx_hal_rtc_ex.c + 0 + 0 + + + 4 + 60 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sai.c + stm32f4xx_hal_sai.c + 0 + 0 + + + 4 + 61 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sai_ex.c + stm32f4xx_hal_sai_ex.c + 0 + 0 + + + 4 + 62 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sd.c + stm32f4xx_hal_sd.c + 0 + 0 + + + 4 + 63 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sdram.c + stm32f4xx_hal_sdram.c + 0 + 0 + + + 4 + 64 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_smartcard.c + stm32f4xx_hal_smartcard.c + 0 + 0 + + + 4 + 65 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_spdifrx.c + stm32f4xx_hal_spdifrx.c + 0 + 0 + + + 4 + 66 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_spi.c + stm32f4xx_hal_spi.c + 0 + 0 + + + 4 + 67 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sram.c + stm32f4xx_hal_sram.c + 0 + 0 + + + 4 + 68 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_tim.c + stm32f4xx_hal_tim.c + 0 + 0 + + + 4 + 69 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_tim_ex.c + stm32f4xx_hal_tim_ex.c + 0 + 0 + + + 4 + 70 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c + stm32f4xx_hal_uart.c + 0 + 0 + + + 4 + 71 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_usart.c + stm32f4xx_hal_usart.c + 0 + 0 + + + 4 + 72 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_wwdg.c + stm32f4xx_hal_wwdg.c + 0 + 0 + + + 4 + 73 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_adc.c + stm32f4xx_ll_adc.c + 0 + 0 + + + 4 + 74 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_crc.c + stm32f4xx_ll_crc.c + 0 + 0 + + + 4 + 75 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_dac.c + stm32f4xx_ll_dac.c + 0 + 0 + + + 4 + 76 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_dma.c + stm32f4xx_ll_dma.c + 0 + 0 + + + 4 + 77 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_dma2d.c + stm32f4xx_ll_dma2d.c + 0 + 0 + + + 4 + 78 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_exti.c + stm32f4xx_ll_exti.c + 0 + 0 + + + 4 + 79 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_fmc.c + stm32f4xx_ll_fmc.c + 0 + 0 + + + 4 + 80 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_fsmc.c + stm32f4xx_ll_fsmc.c + 0 + 0 + + + 4 + 81 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_gpio.c + stm32f4xx_ll_gpio.c + 0 + 0 + + + 4 + 82 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_i2c.c + stm32f4xx_ll_i2c.c + 0 + 0 + + + 4 + 83 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_lptim.c + stm32f4xx_ll_lptim.c + 0 + 0 + + + 4 + 84 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_pwr.c + stm32f4xx_ll_pwr.c + 0 + 0 + + + 4 + 85 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_rcc.c + stm32f4xx_ll_rcc.c + 0 + 0 + + + 4 + 86 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_rng.c + stm32f4xx_ll_rng.c + 0 + 0 + + + 4 + 87 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_rtc.c + stm32f4xx_ll_rtc.c + 0 + 0 + + + 4 + 88 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_sdmmc.c + stm32f4xx_ll_sdmmc.c + 0 + 0 + + + 4 + 89 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_spi.c + stm32f4xx_ll_spi.c + 0 + 0 + + + 4 + 90 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_tim.c + stm32f4xx_ll_tim.c + 0 + 0 + + + 4 + 91 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_usart.c + stm32f4xx_ll_usart.c + 0 + 0 + + + 4 + 92 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_usb.c + stm32f4xx_ll_usb.c + 0 + 0 + + + 4 + 93 + 1 + 0 + 0 + 0 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_utils.c + stm32f4xx_ll_utils.c + 0 + 0 + + + + + Kernel + 0 + 0 + 0 + 0 + + 5 + 94 + 1 + 0 + 0 + 0 + ..\..\src\clock.c + clock.c + 0 + 0 + + + 5 + 95 + 1 + 0 + 0 + 0 + ..\..\src\components.c + components.c + 0 + 0 + + + 5 + 96 + 1 + 0 + 0 + 0 + ..\..\src\device.c + device.c + 0 + 0 + + + 5 + 97 + 1 + 0 + 0 + 0 + ..\..\src\idle.c + idle.c + 0 + 0 + + + 5 + 98 + 1 + 0 + 0 + 0 + ..\..\src\ipc.c + ipc.c + 0 + 0 + + + 5 + 99 + 1 + 0 + 0 + 0 + ..\..\src\irq.c + irq.c + 0 + 0 + + + 5 + 100 + 1 + 0 + 0 + 0 + ..\..\src\kservice.c + kservice.c + 0 + 0 + + + 5 + 101 + 1 + 0 + 0 + 0 + ..\..\src\mem.c + mem.c + 0 + 0 + + + 5 + 102 + 1 + 0 + 0 + 0 + ..\..\src\memheap.c + memheap.c + 0 + 0 + + + 5 + 103 + 1 + 0 + 0 + 0 + ..\..\src\mempool.c + mempool.c + 0 + 0 + + + 5 + 104 + 1 + 0 + 0 + 0 + ..\..\src\object.c + object.c + 0 + 0 + + + 5 + 105 + 1 + 0 + 0 + 0 + ..\..\src\scheduler.c + scheduler.c + 0 + 0 + + + 5 + 106 + 1 + 0 + 0 + 0 + ..\..\src\signal.c + signal.c + 0 + 0 + + + 5 + 107 + 1 + 0 + 0 + 0 + ..\..\src\thread.c + thread.c + 0 + 0 + + + 5 + 108 + 1 + 0 + 0 + 0 + ..\..\src\timer.c + timer.c + 0 + 0 + + + + + CORTEX-M4 + 0 + 0 + 0 + 0 + + 6 + 109 + 1 + 0 + 0 + 0 + ..\..\libcpu\arm\cortex-m4\cpuport.c + cpuport.c + 0 + 0 + + + 6 + 110 + 2 + 0 + 0 + 0 + ..\..\libcpu\arm\cortex-m4\context_rvds.S + context_rvds.S + 0 + 0 + + + 6 + 111 + 1 + 0 + 0 + 0 + ..\..\libcpu\arm\common\backtrace.c + backtrace.c + 0 + 0 + + + 6 + 112 + 1 + 0 + 0 + 0 + ..\..\libcpu\arm\common\div0.c + div0.c + 0 + 0 + + + 6 + 113 + 1 + 0 + 0 + 0 + ..\..\libcpu\arm\common\showmem.c + showmem.c + 0 + 0 + + + + + DeviceDrivers + 0 + 0 + 0 + 0 + + 7 + 114 + 1 + 0 + 0 + 0 + ..\..\components\drivers\misc\pin.c + pin.c + 0 + 0 + + + 7 + 115 + 1 + 0 + 0 + 0 + ..\..\components\drivers\rtc\rtc.c + rtc.c + 0 + 0 + + + 7 + 116 + 1 + 0 + 0 + 0 + ..\..\components\drivers\serial\serial.c + serial.c + 0 + 0 + + + 7 + 117 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\completion.c + completion.c + 0 + 0 + + + 7 + 118 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\dataqueue.c + dataqueue.c + 0 + 0 + + + 7 + 119 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\pipe.c + pipe.c + 0 + 0 + + + 7 + 120 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\ringbuffer.c + ringbuffer.c + 0 + 0 + + + 7 + 121 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\waitqueue.c + waitqueue.c + 0 + 0 + + + 7 + 122 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\workqueue.c + workqueue.c + 0 + 0 + + + + + finsh + 0 + 0 + 0 + 0 + + 8 + 123 + 1 + 0 + 0 + 0 + ..\..\components\finsh\shell.c + shell.c + 0 + 0 + + + 8 + 124 + 1 + 0 + 0 + 0 + ..\..\components\finsh\symbol.c + symbol.c + 0 + 0 + + + 8 + 125 + 1 + 0 + 0 + 0 + ..\..\components\finsh\cmd.c + cmd.c + 0 + 0 + + + 8 + 126 + 1 + 0 + 0 + 0 + ..\..\components\finsh\msh.c + msh.c + 0 + 0 + + + 8 + 127 + 1 + 0 + 0 + 0 + ..\..\components\finsh\msh_cmd.c + msh_cmd.c + 0 + 0 + + + 8 + 128 + 1 + 0 + 0 + 0 + ..\..\components\finsh\msh_file.c + msh_file.c + 0 + 0 + + + diff --git a/bsp/stm32f4xx-HAL/project.uvprojx b/bsp/stm32f4xx-HAL/project.uvprojx index 65431686825877dcb924bc725dbb6bd3f22180d0..20a5c0b500fc4d662109a8514caf7d5cf4ba5480 100644 --- a/bsp/stm32f4xx-HAL/project.uvprojx +++ b/bsp/stm32f4xx-HAL/project.uvprojx @@ -1,7 +1,10 @@ + 2.1 +
### uVision Project, (C) Keil Software
+ rt-thread_stm32f4xx @@ -16,28 +19,28 @@ Keil.STM32F4xx_DFP.2.11.0 http://www.keil.com/pack IRAM(0x20000000,0x10000) IROM(0x08000000,0x40000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ELITTLE - - + + UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32F4xx_256 -FS08000000 -FL040000 -FP0($$Device:STM32F401RCTx$CMSIS\Flash\STM32F4xx_256.FLM)) 0 $$Device:STM32F401RCTx$Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h - - - - - - - - - + + + + + + + + + $$Device:STM32F401RCTx$CMSIS\SVD\STM32F401x.svd 0 0 - - - - - + + + + + 0 0 @@ -59,8 +62,8 @@ 0 0 - - + + 0 0 0 @@ -69,8 +72,8 @@ 0 0 - - + + 0 0 0 @@ -80,14 +83,14 @@ 1 0 fromelf --bin !L --output @H.bin - + 0 0 0 0 0 - + 0 @@ -101,8 +104,8 @@ 0 0 3 - - + + 1 @@ -136,10 +139,10 @@ 1 BIN\UL2CM3.DLL "" () - - - - + + + + 0 @@ -172,7 +175,7 @@ 0 0 "Cortex-M4" - + 0 0 0 @@ -304,7 +307,7 @@ 0x0 - + 1 @@ -330,10 +333,10 @@ 0 0 - + USE_HAL_DRIVER, STM32F401xC - - applications;.;drivers;Libraries\CMSIS\Device\ST\STM32F4xx\Include;Libraries\CMSIS\Include;Libraries\STM32F4xx_HAL_Driver\Inc;..\..\include;..\..\libcpu\arm\cortex-m4;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh + + applications;.;drivers;Libraries\CMSIS\Device\ST\STM32F4xx\Include;Libraries\CMSIS\Include;Libraries\STM32F4xx_HAL_Driver\Inc;..\..\include;..\..\libcpu\arm\cortex-m4;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh @@ -348,10 +351,10 @@ 0 0 - - - - + + + + @@ -363,13 +366,13 @@ 0 0x08000000 0x20000000 - + .\stm32_rom.sct - - + + --keep *.o(.rti_fn.*) --keep *.o(FSymTab) - - + + @@ -392,27 +395,26 @@ 1 drivers\board.c - - stm32f4xx_it.c 1 drivers\stm32f4xx_it.c - - drv_gpio.c 1 drivers\drv_gpio.c - - drv_usart.c 1 drivers\drv_usart.c + + drv_rtc.c + 1 + drivers\drv_rtc.c + @@ -423,8 +425,6 @@ 1 Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c - - startup_stm32f401xc.s 2 @@ -440,589 +440,421 @@ 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal.c - - stm32f4xx_hal_adc.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_adc.c - - stm32f4xx_hal_adc_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_adc_ex.c - - stm32f4xx_hal_can.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_can.c - - stm32f4xx_hal_cec.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cec.c - - stm32f4xx_hal_cortex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cortex.c - - stm32f4xx_hal_crc.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_crc.c - - stm32f4xx_hal_cryp.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cryp.c - - stm32f4xx_hal_cryp_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cryp_ex.c - - stm32f4xx_hal_dac.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dac.c - - stm32f4xx_hal_dac_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dac_ex.c - - stm32f4xx_hal_dcmi.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi.c - - stm32f4xx_hal_dcmi_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi_ex.c - - stm32f4xx_hal_dfsdm.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dfsdm.c - - stm32f4xx_hal_dma.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma.c - - stm32f4xx_hal_dma2d.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma2d.c - - stm32f4xx_hal_dma_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma_ex.c - - stm32f4xx_hal_dsi.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dsi.c - - stm32f4xx_hal_eth.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_eth.c - - stm32f4xx_hal_flash.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash.c - - stm32f4xx_hal_flash_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash_ex.c - - stm32f4xx_hal_flash_ramfunc.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash_ramfunc.c - - stm32f4xx_hal_fmpi2c.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_fmpi2c.c - - stm32f4xx_hal_fmpi2c_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_fmpi2c_ex.c - - stm32f4xx_hal_gpio.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_gpio.c - - stm32f4xx_hal_hash.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_hash.c - - stm32f4xx_hal_hash_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_hash_ex.c - - stm32f4xx_hal_hcd.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_hcd.c - - stm32f4xx_hal_i2c.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2c.c - - stm32f4xx_hal_i2c_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2c_ex.c - - stm32f4xx_hal_i2s.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2s.c - - stm32f4xx_hal_i2s_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2s_ex.c - - stm32f4xx_hal_irda.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_irda.c - - stm32f4xx_hal_iwdg.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_iwdg.c - - stm32f4xx_hal_lptim.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_lptim.c - - stm32f4xx_hal_ltdc.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_ltdc.c - - stm32f4xx_hal_ltdc_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_ltdc_ex.c - - stm32f4xx_hal_mmc.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_mmc.c - - stm32f4xx_hal_nand.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_nand.c - - stm32f4xx_hal_nor.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_nor.c - - stm32f4xx_hal_pccard.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pccard.c - - stm32f4xx_hal_pcd.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pcd.c - - stm32f4xx_hal_pcd_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pcd_ex.c - - stm32f4xx_hal_pwr.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr.c - - stm32f4xx_hal_pwr_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr_ex.c - - stm32f4xx_hal_qspi.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_qspi.c - - stm32f4xx_hal_rcc.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc.c - - stm32f4xx_hal_rcc_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc_ex.c - - stm32f4xx_hal_rng.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rng.c - - stm32f4xx_hal_rtc.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rtc.c - - stm32f4xx_hal_rtc_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rtc_ex.c - - stm32f4xx_hal_sai.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sai.c - - stm32f4xx_hal_sai_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sai_ex.c - - stm32f4xx_hal_sd.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sd.c - - stm32f4xx_hal_sdram.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sdram.c - - stm32f4xx_hal_smartcard.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_smartcard.c - - stm32f4xx_hal_spdifrx.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_spdifrx.c - - stm32f4xx_hal_spi.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_spi.c - - stm32f4xx_hal_sram.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sram.c - - stm32f4xx_hal_tim.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_tim.c - - stm32f4xx_hal_tim_ex.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_tim_ex.c - - stm32f4xx_hal_uart.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c - - stm32f4xx_hal_usart.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_usart.c - - stm32f4xx_hal_wwdg.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_wwdg.c - - stm32f4xx_ll_adc.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_adc.c - - stm32f4xx_ll_crc.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_crc.c - - stm32f4xx_ll_dac.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_dac.c - - stm32f4xx_ll_dma.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_dma.c - - stm32f4xx_ll_dma2d.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_dma2d.c - - stm32f4xx_ll_exti.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_exti.c - - stm32f4xx_ll_fmc.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_fmc.c - - stm32f4xx_ll_fsmc.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_fsmc.c - - stm32f4xx_ll_gpio.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_gpio.c - - stm32f4xx_ll_i2c.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_i2c.c - - stm32f4xx_ll_lptim.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_lptim.c - - stm32f4xx_ll_pwr.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_pwr.c - - stm32f4xx_ll_rcc.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_rcc.c - - stm32f4xx_ll_rng.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_rng.c - - stm32f4xx_ll_rtc.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_rtc.c - - stm32f4xx_ll_sdmmc.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_sdmmc.c - - stm32f4xx_ll_spi.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_spi.c - - stm32f4xx_ll_tim.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_tim.c - - stm32f4xx_ll_usart.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_usart.c - - stm32f4xx_ll_usb.c 1 Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_usb.c - - stm32f4xx_ll_utils.c 1 @@ -1038,99 +870,71 @@ 1 ..\..\src\clock.c - - components.c 1 ..\..\src\components.c - - device.c 1 ..\..\src\device.c - - idle.c 1 ..\..\src\idle.c - - ipc.c 1 ..\..\src\ipc.c - - irq.c 1 ..\..\src\irq.c - - kservice.c 1 ..\..\src\kservice.c - - mem.c 1 ..\..\src\mem.c - - memheap.c 1 ..\..\src\memheap.c - - mempool.c 1 ..\..\src\mempool.c - - object.c 1 ..\..\src\object.c - - scheduler.c 1 ..\..\src\scheduler.c - - signal.c 1 ..\..\src\signal.c - - thread.c 1 ..\..\src\thread.c - - timer.c 1 @@ -1146,29 +950,21 @@ 1 ..\..\libcpu\arm\cortex-m4\cpuport.c - - context_rvds.S 2 ..\..\libcpu\arm\cortex-m4\context_rvds.S - - backtrace.c 1 ..\..\libcpu\arm\common\backtrace.c - - div0.c 1 ..\..\libcpu\arm\common\div0.c - - showmem.c 1 @@ -1184,50 +980,41 @@ 1 ..\..\components\drivers\misc\pin.c - - + + rtc.c + 1 + ..\..\components\drivers\rtc\rtc.c + serial.c 1 ..\..\components\drivers\serial\serial.c - - completion.c 1 ..\..\components\drivers\src\completion.c - - dataqueue.c 1 ..\..\components\drivers\src\dataqueue.c - - pipe.c 1 ..\..\components\drivers\src\pipe.c - - ringbuffer.c 1 ..\..\components\drivers\src\ringbuffer.c - - waitqueue.c 1 ..\..\components\drivers\src\waitqueue.c - - workqueue.c 1 @@ -1243,36 +1030,26 @@ 1 ..\..\components\finsh\shell.c - - symbol.c 1 ..\..\components\finsh\symbol.c - - cmd.c 1 ..\..\components\finsh\cmd.c - - msh.c 1 ..\..\components\finsh\msh.c - - msh_cmd.c 1 ..\..\components\finsh\msh_cmd.c - - msh_file.c 1 @@ -1283,9 +1060,11 @@ + - - - + + + +
diff --git a/bsp/stm32f4xx-HAL/rtconfig.h b/bsp/stm32f4xx-HAL/rtconfig.h index 7ae3814b3f0a40f1a620f9b08da723bf296a6dfc..109f90a7c5079268c1d7ab79433eec95de91a161 100644 --- a/bsp/stm32f4xx-HAL/rtconfig.h +++ b/bsp/stm32f4xx-HAL/rtconfig.h @@ -86,18 +86,16 @@ #define RT_USING_PIN /* RT_USING_MTD_NOR is not set */ /* RT_USING_MTD_NAND is not set */ -/* RT_USING_RTC is not set */ +#define RT_USING_RTC /* RT_USING_SDIO is not set */ /* RT_USING_SPI is not set */ /* RT_USING_WDT is not set */ +/* RT_USING_WIFI is not set */ /* Using USB */ /* RT_USING_USB_HOST is not set */ /* RT_USING_USB_DEVICE is not set */ -/* _RT_USB_DEVICE_CDC is not set */ -/* _RT_USB_DEVICE_MSTORAGE is not set */ -/* _RT_USB_DEVICE_HID is not set */ /* POSIX layer and C standard library */