commit
c45f2f4cbc
|
@ -0,0 +1,15 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*
|
||||||
|
* Change Logs:
|
||||||
|
* Date Author Notes
|
||||||
|
* 2019-04-10 ZYH first version
|
||||||
|
*/
|
||||||
|
#ifndef __USBD_FS_CONFIG_H__
|
||||||
|
#define __USBD_FS_CONFIG_H__
|
||||||
|
|
||||||
|
#define USBD_FS_IRQ_HANDLER OTG_FS_IRQHandler
|
||||||
|
#define USBD_INSTANCE USB_OTG_FS
|
||||||
|
#endif
|
|
@ -64,6 +64,7 @@ extern "C" {
|
||||||
#include "l4/tim_config.h"
|
#include "l4/tim_config.h"
|
||||||
#include "l4/sdio_config.h"
|
#include "l4/sdio_config.h"
|
||||||
#include "l4/pwm_config.h"
|
#include "l4/pwm_config.h"
|
||||||
|
#include "l4/usbd_fs_config.h"
|
||||||
#elif defined(SOC_SERIES_STM32G0)
|
#elif defined(SOC_SERIES_STM32G0)
|
||||||
#include "g0/dma_config.h"
|
#include "g0/dma_config.h"
|
||||||
#include "g0/uart_config.h"
|
#include "g0/uart_config.h"
|
||||||
|
|
|
@ -64,8 +64,9 @@ CONFIG_RT_USING_DEVICE=y
|
||||||
CONFIG_RT_USING_CONSOLE=y
|
CONFIG_RT_USING_CONSOLE=y
|
||||||
CONFIG_RT_CONSOLEBUF_SIZE=256
|
CONFIG_RT_CONSOLEBUF_SIZE=256
|
||||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
|
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
|
||||||
CONFIG_RT_VER_NUM=0x40001
|
CONFIG_RT_VER_NUM=0x40002
|
||||||
CONFIG_ARCH_ARM=y
|
CONFIG_ARCH_ARM=y
|
||||||
|
CONFIG_RT_USING_CPU_FFS=y
|
||||||
CONFIG_ARCH_ARM_CORTEX_M=y
|
CONFIG_ARCH_ARM_CORTEX_M=y
|
||||||
CONFIG_ARCH_ARM_CORTEX_M4=y
|
CONFIG_ARCH_ARM_CORTEX_M4=y
|
||||||
# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
|
# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
|
||||||
|
@ -134,6 +135,11 @@ CONFIG_RT_USING_PIN=y
|
||||||
# CONFIG_RT_USING_AUDIO is not set
|
# CONFIG_RT_USING_AUDIO is not set
|
||||||
# CONFIG_RT_USING_SENSOR is not set
|
# CONFIG_RT_USING_SENSOR is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Using Hardware Crypto drivers
|
||||||
|
#
|
||||||
|
# CONFIG_RT_USING_HWCRYPTO is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Using WiFi
|
# Using WiFi
|
||||||
#
|
#
|
||||||
|
@ -230,6 +236,7 @@ CONFIG_RT_USING_PIN=y
|
||||||
# CONFIG_PKG_USING_NOPOLL is not set
|
# CONFIG_PKG_USING_NOPOLL is not set
|
||||||
# CONFIG_PKG_USING_NETUTILS is not set
|
# CONFIG_PKG_USING_NETUTILS is not set
|
||||||
# CONFIG_PKG_USING_AT_DEVICE is not set
|
# CONFIG_PKG_USING_AT_DEVICE is not set
|
||||||
|
# CONFIG_PKG_USING_ATSRV_SOCKET is not set
|
||||||
# CONFIG_PKG_USING_WIZNET is not set
|
# CONFIG_PKG_USING_WIZNET is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -242,6 +249,9 @@ CONFIG_RT_USING_PIN=y
|
||||||
# CONFIG_PKG_USING_TENCENT_IOTKIT is not set
|
# CONFIG_PKG_USING_TENCENT_IOTKIT is not set
|
||||||
# CONFIG_PKG_USING_NIMBLE is not set
|
# CONFIG_PKG_USING_NIMBLE is not set
|
||||||
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
|
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
|
||||||
|
# CONFIG_PKG_USING_IPMSG is not set
|
||||||
|
# CONFIG_PKG_USING_LSSDP is not set
|
||||||
|
# CONFIG_PKG_USING_AIRKISS_OPEN is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# security packages
|
# security packages
|
||||||
|
@ -300,21 +310,24 @@ CONFIG_RT_USING_PIN=y
|
||||||
# CONFIG_PKG_USING_SENSORS_DRIVERS is not set
|
# CONFIG_PKG_USING_SENSORS_DRIVERS is not set
|
||||||
# CONFIG_PKG_USING_REALTEK_AMEBA is not set
|
# CONFIG_PKG_USING_REALTEK_AMEBA is not set
|
||||||
# CONFIG_PKG_USING_SHT2X is not set
|
# CONFIG_PKG_USING_SHT2X is not set
|
||||||
# CONFIG_PKG_USING_AHT10 is not set
|
|
||||||
# CONFIG_PKG_USING_AP3216C is not set
|
# CONFIG_PKG_USING_AP3216C is not set
|
||||||
# CONFIG_PKG_USING_STM32_SDIO is not set
|
# CONFIG_PKG_USING_STM32_SDIO is not set
|
||||||
# CONFIG_PKG_USING_ICM20608 is not set
|
# CONFIG_PKG_USING_ICM20608 is not set
|
||||||
# CONFIG_PKG_USING_U8G2 is not set
|
# CONFIG_PKG_USING_U8G2 is not set
|
||||||
# CONFIG_PKG_USING_BUTTON is not set
|
# CONFIG_PKG_USING_BUTTON is not set
|
||||||
# CONFIG_PKG_USING_MPU6XXX is not set
|
|
||||||
# CONFIG_PKG_USING_PCF8574 is not set
|
# CONFIG_PKG_USING_PCF8574 is not set
|
||||||
# CONFIG_PKG_USING_SX12XX is not set
|
# CONFIG_PKG_USING_SX12XX is not set
|
||||||
# CONFIG_PKG_USING_SIGNAL_LED is not set
|
# CONFIG_PKG_USING_SIGNAL_LED is not set
|
||||||
|
# CONFIG_PKG_USING_LEDBLINK is not set
|
||||||
# CONFIG_PKG_USING_WM_LIBRARIES is not set
|
# CONFIG_PKG_USING_WM_LIBRARIES is not set
|
||||||
# CONFIG_PKG_USING_KENDRYTE_SDK is not set
|
# CONFIG_PKG_USING_KENDRYTE_SDK is not set
|
||||||
# CONFIG_PKG_USING_INFRARED is not set
|
# CONFIG_PKG_USING_INFRARED is not set
|
||||||
# CONFIG_PKG_USING_ROSSERIAL is not set
|
# CONFIG_PKG_USING_ROSSERIAL is not set
|
||||||
# CONFIG_PKG_USING_AT24CXX is not set
|
# CONFIG_PKG_USING_AT24CXX is not set
|
||||||
|
# CONFIG_PKG_USING_MOTIONDRIVER2RTT is not set
|
||||||
|
# CONFIG_PKG_USING_AD7746 is not set
|
||||||
|
# CONFIG_PKG_USING_PCA9685 is not set
|
||||||
|
# CONFIG_PKG_USING_I2C_TOOLS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# miscellaneous packages
|
# miscellaneous packages
|
||||||
|
@ -330,6 +343,7 @@ CONFIG_RT_USING_PIN=y
|
||||||
# CONFIG_PKG_USING_DSTR is not set
|
# CONFIG_PKG_USING_DSTR is not set
|
||||||
# CONFIG_PKG_USING_TINYFRAME is not set
|
# CONFIG_PKG_USING_TINYFRAME is not set
|
||||||
# CONFIG_PKG_USING_KENDRYTE_DEMO is not set
|
# CONFIG_PKG_USING_KENDRYTE_DEMO is not set
|
||||||
|
# CONFIG_PKG_USING_DIGITALCTRL is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# samples: kernel and components samples
|
# samples: kernel and components samples
|
||||||
|
@ -355,6 +369,8 @@ CONFIG_SOC_STM32L475VE=y
|
||||||
CONFIG_BSP_USING_STLINK_TO_USART=y
|
CONFIG_BSP_USING_STLINK_TO_USART=y
|
||||||
# CONFIG_BSP_USING_QSPI_FLASH is not set
|
# CONFIG_BSP_USING_QSPI_FLASH is not set
|
||||||
# CONFIG_BSP_USING_SDCARD is not set
|
# CONFIG_BSP_USING_SDCARD is not set
|
||||||
|
# CONFIG_BSP_USING_ICM20608 is not set
|
||||||
|
# CONFIG_BSP_USING_AHT10 is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# On-chip Peripheral Drivers
|
# On-chip Peripheral Drivers
|
||||||
|
@ -368,14 +384,13 @@ CONFIG_BSP_USING_UART1=y
|
||||||
# CONFIG_BSP_USING_SPI is not set
|
# CONFIG_BSP_USING_SPI is not set
|
||||||
# CONFIG_BSP_USING_QSPI is not set
|
# CONFIG_BSP_USING_QSPI is not set
|
||||||
# CONFIG_BSP_QSPI_USING_DMA is not set
|
# CONFIG_BSP_QSPI_USING_DMA is not set
|
||||||
# CONFIG_BSP_USING_I2C1 is not set
|
# CONFIG_BSP_USING_I2C is not set
|
||||||
# CONFIG_BSP_USING_I2C2 is not set
|
|
||||||
# CONFIG_BSP_USING_I2C3 is not set
|
|
||||||
# CONFIG_BSP_USING_TIM is not set
|
# CONFIG_BSP_USING_TIM is not set
|
||||||
# CONFIG_BSP_USING_PWM is not set
|
# CONFIG_BSP_USING_PWM is not set
|
||||||
# CONFIG_BSP_USING_ADC is not set
|
# CONFIG_BSP_USING_ADC is not set
|
||||||
# CONFIG_BSP_USING_ONCHIP_RTC is not set
|
# CONFIG_BSP_USING_ONCHIP_RTC is not set
|
||||||
# CONFIG_BSP_USING_WDT is not set
|
# CONFIG_BSP_USING_WDT is not set
|
||||||
|
# CONFIG_BSP_USING_USBD_FS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Board extended module Drivers
|
# Board extended module Drivers
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -69,13 +69,14 @@
|
||||||
#define HAL_IWDG_MODULE_ENABLED
|
#define HAL_IWDG_MODULE_ENABLED
|
||||||
/*#define HAL_LTDC_MODULE_ENABLED */
|
/*#define HAL_LTDC_MODULE_ENABLED */
|
||||||
/*#define HAL_LCD_MODULE_ENABLED */
|
/*#define HAL_LCD_MODULE_ENABLED */
|
||||||
#define HAL_LPTIM_MODULE_ENABLED
|
/*#define HAL_LPTIM_MODULE_ENABLED */
|
||||||
|
/*#define HAL_MMC_MODULE_ENABLED */
|
||||||
/*#define HAL_NAND_MODULE_ENABLED */
|
/*#define HAL_NAND_MODULE_ENABLED */
|
||||||
/*#define HAL_NOR_MODULE_ENABLED */
|
/*#define HAL_NOR_MODULE_ENABLED */
|
||||||
/*#define HAL_OPAMP_MODULE_ENABLED */
|
/*#define HAL_OPAMP_MODULE_ENABLED */
|
||||||
/*#define HAL_OSPI_MODULE_ENABLED */
|
/*#define HAL_OSPI_MODULE_ENABLED */
|
||||||
/*#define HAL_OSPI_MODULE_ENABLED */
|
/*#define HAL_OSPI_MODULE_ENABLED */
|
||||||
/*#define HAL_PCD_MODULE_ENABLED */
|
#define HAL_PCD_MODULE_ENABLED
|
||||||
/*#define HAL_QSPI_MODULE_ENABLED */
|
/*#define HAL_QSPI_MODULE_ENABLED */
|
||||||
#define HAL_QSPI_MODULE_ENABLED
|
#define HAL_QSPI_MODULE_ENABLED
|
||||||
/*#define HAL_RNG_MODULE_ENABLED */
|
/*#define HAL_RNG_MODULE_ENABLED */
|
||||||
|
@ -297,6 +298,10 @@
|
||||||
#include "stm32l4xx_hal_sram.h"
|
#include "stm32l4xx_hal_sram.h"
|
||||||
#endif /* HAL_SRAM_MODULE_ENABLED */
|
#endif /* HAL_SRAM_MODULE_ENABLED */
|
||||||
|
|
||||||
|
#ifdef HAL_MMC_MODULE_ENABLED
|
||||||
|
#include "stm32l4xx_hal_mmc.h"
|
||||||
|
#endif /* HAL_MMC_MODULE_ENABLED */
|
||||||
|
|
||||||
#ifdef HAL_NOR_MODULE_ENABLED
|
#ifdef HAL_NOR_MODULE_ENABLED
|
||||||
#include "stm32l4xx_hal_nor.h"
|
#include "stm32l4xx_hal_nor.h"
|
||||||
#endif /* HAL_NOR_MODULE_ENABLED */
|
#endif /* HAL_NOR_MODULE_ENABLED */
|
||||||
|
|
|
@ -71,6 +71,7 @@ void SVC_Handler(void);
|
||||||
void DebugMon_Handler(void);
|
void DebugMon_Handler(void);
|
||||||
void PendSV_Handler(void);
|
void PendSV_Handler(void);
|
||||||
void SysTick_Handler(void);
|
void SysTick_Handler(void);
|
||||||
|
void OTG_FS_IRQHandler(void);
|
||||||
/* USER CODE BEGIN EFP */
|
/* USER CODE BEGIN EFP */
|
||||||
|
|
||||||
/* USER CODE END EFP */
|
/* USER CODE END EFP */
|
||||||
|
|
|
@ -17,6 +17,7 @@ Mcu.IP12=TIM16
|
||||||
Mcu.IP13=TIM17
|
Mcu.IP13=TIM17
|
||||||
Mcu.IP14=USART1
|
Mcu.IP14=USART1
|
||||||
Mcu.IP15=USART2
|
Mcu.IP15=USART2
|
||||||
|
Mcu.IP16=USB_OTG_FS
|
||||||
Mcu.IP2=NVIC
|
Mcu.IP2=NVIC
|
||||||
Mcu.IP3=QUADSPI
|
Mcu.IP3=QUADSPI
|
||||||
Mcu.IP4=RCC
|
Mcu.IP4=RCC
|
||||||
|
@ -25,7 +26,7 @@ Mcu.IP6=SPI1
|
||||||
Mcu.IP7=SPI2
|
Mcu.IP7=SPI2
|
||||||
Mcu.IP8=SYS
|
Mcu.IP8=SYS
|
||||||
Mcu.IP9=TIM1
|
Mcu.IP9=TIM1
|
||||||
Mcu.IPNb=16
|
Mcu.IPNb=17
|
||||||
Mcu.Name=STM32L475V(C-E-G)Tx
|
Mcu.Name=STM32L475V(C-E-G)Tx
|
||||||
Mcu.Package=LQFP100
|
Mcu.Package=LQFP100
|
||||||
Mcu.Pin0=PC14-OSC32_IN (PC14)
|
Mcu.Pin0=PC14-OSC32_IN (PC14)
|
||||||
|
@ -43,36 +44,39 @@ Mcu.Pin19=PB15
|
||||||
Mcu.Pin2=PH0-OSC_IN (PH0)
|
Mcu.Pin2=PH0-OSC_IN (PH0)
|
||||||
Mcu.Pin20=PA9
|
Mcu.Pin20=PA9
|
||||||
Mcu.Pin21=PA10
|
Mcu.Pin21=PA10
|
||||||
Mcu.Pin22=PA13 (JTMS-SWDIO)
|
Mcu.Pin22=PA11
|
||||||
Mcu.Pin23=PA14 (JTCK-SWCLK)
|
Mcu.Pin23=PA12
|
||||||
Mcu.Pin24=PB7
|
Mcu.Pin24=PA13 (JTMS-SWDIO)
|
||||||
Mcu.Pin25=PB8
|
Mcu.Pin25=PA14 (JTCK-SWCLK)
|
||||||
Mcu.Pin26=VP_IWDG_VS_IWDG
|
Mcu.Pin26=PB7
|
||||||
Mcu.Pin27=VP_RTC_VS_RTC_Activate
|
Mcu.Pin27=PB8
|
||||||
Mcu.Pin28=VP_SYS_VS_Systick
|
Mcu.Pin28=VP_IWDG_VS_IWDG
|
||||||
Mcu.Pin29=VP_TIM1_VS_ClockSourceINT
|
Mcu.Pin29=VP_RTC_VS_RTC_Activate
|
||||||
Mcu.Pin3=PH1-OSC_OUT (PH1)
|
Mcu.Pin3=PH1-OSC_OUT (PH1)
|
||||||
Mcu.Pin30=VP_TIM4_VS_ClockSourceINT
|
Mcu.Pin30=VP_SYS_VS_Systick
|
||||||
Mcu.Pin31=VP_TIM15_VS_ClockSourceINT
|
Mcu.Pin31=VP_TIM1_VS_ClockSourceINT
|
||||||
Mcu.Pin32=VP_TIM16_VS_ClockSourceINT
|
Mcu.Pin32=VP_TIM4_VS_ClockSourceINT
|
||||||
Mcu.Pin33=VP_TIM17_VS_ClockSourceINT
|
Mcu.Pin33=VP_TIM15_VS_ClockSourceINT
|
||||||
|
Mcu.Pin34=VP_TIM16_VS_ClockSourceINT
|
||||||
|
Mcu.Pin35=VP_TIM17_VS_ClockSourceINT
|
||||||
Mcu.Pin4=PA2
|
Mcu.Pin4=PA2
|
||||||
Mcu.Pin5=PA3
|
Mcu.Pin5=PA3
|
||||||
Mcu.Pin6=PA5
|
Mcu.Pin6=PA5
|
||||||
Mcu.Pin7=PA6
|
Mcu.Pin7=PA6
|
||||||
Mcu.Pin8=PA7
|
Mcu.Pin8=PA7
|
||||||
Mcu.Pin9=PC5
|
Mcu.Pin9=PC5
|
||||||
Mcu.PinsNb=34
|
Mcu.PinsNb=36
|
||||||
Mcu.ThirdPartyNb=0
|
Mcu.ThirdPartyNb=0
|
||||||
Mcu.UserConstants=
|
Mcu.UserConstants=
|
||||||
Mcu.UserName=STM32L475VETx
|
Mcu.UserName=STM32L475VETx
|
||||||
MxCube.Version=5.1.0
|
MxCube.Version=5.2.0
|
||||||
MxDb.Version=DB.5.0.10
|
MxDb.Version=DB.5.0.20
|
||||||
NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
||||||
NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
||||||
NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
||||||
NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
||||||
NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
||||||
|
NVIC.OTG_FS_IRQn=true\:0\:0\:false\:false\:true\:true\:true
|
||||||
NVIC.PendSV_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
NVIC.PendSV_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
||||||
NVIC.PriorityGroup=NVIC_PRIORITYGROUP_4
|
NVIC.PriorityGroup=NVIC_PRIORITYGROUP_4
|
||||||
NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
||||||
|
@ -80,6 +84,10 @@ NVIC.SysTick_IRQn=true\:0\:0\:false\:false\:true\:false\:true
|
||||||
NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
||||||
PA10.Mode=Asynchronous
|
PA10.Mode=Asynchronous
|
||||||
PA10.Signal=USART1_RX
|
PA10.Signal=USART1_RX
|
||||||
|
PA11.Mode=Device_Only
|
||||||
|
PA11.Signal=USB_OTG_FS_DM
|
||||||
|
PA12.Mode=Device_Only
|
||||||
|
PA12.Signal=USB_OTG_FS_DP
|
||||||
PA13\ (JTMS-SWDIO).Mode=Serial_Wire
|
PA13\ (JTMS-SWDIO).Mode=Serial_Wire
|
||||||
PA13\ (JTMS-SWDIO).Signal=SYS_JTMS-SWDIO
|
PA13\ (JTMS-SWDIO).Signal=SYS_JTMS-SWDIO
|
||||||
PA14\ (JTCK-SWCLK).Mode=Serial_Wire
|
PA14\ (JTCK-SWCLK).Mode=Serial_Wire
|
||||||
|
@ -121,7 +129,7 @@ PCC.PartNumber=STM32L475VETx
|
||||||
PCC.Seq0=0
|
PCC.Seq0=0
|
||||||
PCC.Series=STM32L4
|
PCC.Series=STM32L4
|
||||||
PCC.Temperature=25
|
PCC.Temperature=25
|
||||||
PCC.Vdd=null
|
PCC.Vdd=3.0
|
||||||
PE10.Mode=Single Bank
|
PE10.Mode=Single Bank
|
||||||
PE10.Signal=QUADSPI_CLK
|
PE10.Signal=QUADSPI_CLK
|
||||||
PE11.Mode=Single Bank
|
PE11.Mode=Single Bank
|
||||||
|
@ -153,7 +161,7 @@ ProjectManager.CustomerFirmwarePackage=
|
||||||
ProjectManager.DefaultFWLocation=true
|
ProjectManager.DefaultFWLocation=true
|
||||||
ProjectManager.DeletePrevious=true
|
ProjectManager.DeletePrevious=true
|
||||||
ProjectManager.DeviceId=STM32L475VETx
|
ProjectManager.DeviceId=STM32L475VETx
|
||||||
ProjectManager.FirmwarePackage=STM32Cube FW_L4 V1.13.0
|
ProjectManager.FirmwarePackage=STM32Cube FW_L4 V1.14.0
|
||||||
ProjectManager.FreePins=false
|
ProjectManager.FreePins=false
|
||||||
ProjectManager.HalAssertFull=false
|
ProjectManager.HalAssertFull=false
|
||||||
ProjectManager.HeapSize=0x200
|
ProjectManager.HeapSize=0x200
|
||||||
|
@ -171,7 +179,7 @@ ProjectManager.TargetToolchain=MDK-ARM V5
|
||||||
ProjectManager.ToolChainLocation=
|
ProjectManager.ToolChainLocation=
|
||||||
ProjectManager.UnderRoot=false
|
ProjectManager.UnderRoot=false
|
||||||
ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false,3-MX_USART1_UART_Init-USART1-false-HAL-true,4-MX_USART2_UART_Init-USART2-false-HAL-true,5-MX_QUADSPI_Init-QUADSPI-false-HAL-true,6-MX_SPI1_Init-SPI1-false-HAL-true,7-MX_SPI2_Init-SPI2-false-HAL-true,8-MX_RTC_Init-RTC-false-HAL-true,9-MX_ADC1_Init-ADC1-false-HAL-true,10-MX_IWDG_Init-IWDG-false-HAL-true,11-MX_TIM17_Init-TIM17-false-HAL-true,12-MX_TIM16_Init-TIM16-false-HAL-true,13-MX_TIM15_Init-TIM15-false-HAL-true,14-MX_TIM4_Init-TIM4-false-HAL-true,15-MX_TIM1_Init-TIM1-false-HAL-true
|
ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false,3-MX_USART1_UART_Init-USART1-false-HAL-true,4-MX_USART2_UART_Init-USART2-false-HAL-true,5-MX_QUADSPI_Init-QUADSPI-false-HAL-true,6-MX_SPI1_Init-SPI1-false-HAL-true,7-MX_SPI2_Init-SPI2-false-HAL-true,8-MX_RTC_Init-RTC-false-HAL-true,9-MX_ADC1_Init-ADC1-false-HAL-true,10-MX_IWDG_Init-IWDG-false-HAL-true,11-MX_TIM17_Init-TIM17-false-HAL-true,12-MX_TIM16_Init-TIM16-false-HAL-true,13-MX_TIM15_Init-TIM15-false-HAL-true,14-MX_TIM4_Init-TIM4-false-HAL-true,15-MX_TIM1_Init-TIM1-false-HAL-true
|
||||||
RCC.ADCFreq_Value=32000000
|
RCC.ADCFreq_Value=48000000
|
||||||
RCC.AHBFreq_Value=80000000
|
RCC.AHBFreq_Value=80000000
|
||||||
RCC.APB1Freq_Value=80000000
|
RCC.APB1Freq_Value=80000000
|
||||||
RCC.APB1TimFreq_Value=80000000
|
RCC.APB1TimFreq_Value=80000000
|
||||||
|
@ -187,7 +195,7 @@ RCC.HSI_VALUE=16000000
|
||||||
RCC.I2C1Freq_Value=80000000
|
RCC.I2C1Freq_Value=80000000
|
||||||
RCC.I2C2Freq_Value=80000000
|
RCC.I2C2Freq_Value=80000000
|
||||||
RCC.I2C3Freq_Value=80000000
|
RCC.I2C3Freq_Value=80000000
|
||||||
RCC.IPParameters=ADCFreq_Value,AHBFreq_Value,APB1Freq_Value,APB1TimFreq_Value,APB2Freq_Value,APB2TimFreq_Value,CortexFreq_Value,DFSDMFreq_Value,FCLKCortexFreq_Value,FamilyName,HCLKFreq_Value,HSE_VALUE,HSI_VALUE,I2C1Freq_Value,I2C2Freq_Value,I2C3Freq_Value,LPTIM1Freq_Value,LPTIM2Freq_Value,LPUART1Freq_Value,LSCOPinFreq_Value,LSI_VALUE,MCO1PinFreq_Value,MSI_VALUE,PLLN,PLLPoutputFreq_Value,PLLQoutputFreq_Value,PLLRCLKFreq_Value,PLLSAI1PoutputFreq_Value,PLLSAI1QoutputFreq_Value,PLLSAI1RoutputFreq_Value,PLLSAI2PoutputFreq_Value,PLLSAI2RoutputFreq_Value,PLLSourceVirtual,PWRFreq_Value,RNGFreq_Value,RTCClockSelection,RTCFreq_Value,SAI1Freq_Value,SAI2Freq_Value,SDMMCFreq_Value,SWPMI1Freq_Value,SYSCLKFreq_VALUE,SYSCLKSource,UART4Freq_Value,UART5Freq_Value,USART1Freq_Value,USART2Freq_Value,USART3Freq_Value,USBFreq_Value,VCOInputFreq_Value,VCOOutputFreq_Value,VCOSAI1OutputFreq_Value,VCOSAI2OutputFreq_Value
|
RCC.IPParameters=ADCFreq_Value,AHBFreq_Value,APB1Freq_Value,APB1TimFreq_Value,APB2Freq_Value,APB2TimFreq_Value,CortexFreq_Value,DFSDMFreq_Value,FCLKCortexFreq_Value,FamilyName,HCLKFreq_Value,HSE_VALUE,HSI_VALUE,I2C1Freq_Value,I2C2Freq_Value,I2C3Freq_Value,LPTIM1Freq_Value,LPTIM2Freq_Value,LPUART1Freq_Value,LSCOPinFreq_Value,LSI_VALUE,MCO1PinFreq_Value,MSI_VALUE,PLLN,PLLPoutputFreq_Value,PLLQoutputFreq_Value,PLLRCLKFreq_Value,PLLSAI1N,PLLSAI1PoutputFreq_Value,PLLSAI1QoutputFreq_Value,PLLSAI1RoutputFreq_Value,PLLSAI2PoutputFreq_Value,PLLSAI2RoutputFreq_Value,PLLSourceVirtual,PWRFreq_Value,RNGFreq_Value,RTCClockSelection,RTCFreq_Value,SAI1Freq_Value,SAI2Freq_Value,SDMMCFreq_Value,SWPMI1Freq_Value,SYSCLKFreq_VALUE,SYSCLKSource,UART4Freq_Value,UART5Freq_Value,USART1Freq_Value,USART2Freq_Value,USART3Freq_Value,USBFreq_Value,VCOInputFreq_Value,VCOOutputFreq_Value,VCOSAI1OutputFreq_Value,VCOSAI2OutputFreq_Value
|
||||||
RCC.LPTIM1Freq_Value=80000000
|
RCC.LPTIM1Freq_Value=80000000
|
||||||
RCC.LPTIM2Freq_Value=80000000
|
RCC.LPTIM2Freq_Value=80000000
|
||||||
RCC.LPUART1Freq_Value=80000000
|
RCC.LPUART1Freq_Value=80000000
|
||||||
|
@ -199,19 +207,20 @@ RCC.PLLN=20
|
||||||
RCC.PLLPoutputFreq_Value=22857142.85714286
|
RCC.PLLPoutputFreq_Value=22857142.85714286
|
||||||
RCC.PLLQoutputFreq_Value=80000000
|
RCC.PLLQoutputFreq_Value=80000000
|
||||||
RCC.PLLRCLKFreq_Value=80000000
|
RCC.PLLRCLKFreq_Value=80000000
|
||||||
RCC.PLLSAI1PoutputFreq_Value=9142857.142857144
|
RCC.PLLSAI1N=12
|
||||||
RCC.PLLSAI1QoutputFreq_Value=32000000
|
RCC.PLLSAI1PoutputFreq_Value=13714285.714285715
|
||||||
RCC.PLLSAI1RoutputFreq_Value=32000000
|
RCC.PLLSAI1QoutputFreq_Value=48000000
|
||||||
|
RCC.PLLSAI1RoutputFreq_Value=48000000
|
||||||
RCC.PLLSAI2PoutputFreq_Value=9142857.142857144
|
RCC.PLLSAI2PoutputFreq_Value=9142857.142857144
|
||||||
RCC.PLLSAI2RoutputFreq_Value=32000000
|
RCC.PLLSAI2RoutputFreq_Value=32000000
|
||||||
RCC.PLLSourceVirtual=RCC_PLLSOURCE_HSE
|
RCC.PLLSourceVirtual=RCC_PLLSOURCE_HSE
|
||||||
RCC.PWRFreq_Value=80000000
|
RCC.PWRFreq_Value=80000000
|
||||||
RCC.RNGFreq_Value=32000000
|
RCC.RNGFreq_Value=48000000
|
||||||
RCC.RTCClockSelection=RCC_RTCCLKSOURCE_LSE
|
RCC.RTCClockSelection=RCC_RTCCLKSOURCE_LSE
|
||||||
RCC.RTCFreq_Value=32768
|
RCC.RTCFreq_Value=32768
|
||||||
RCC.SAI1Freq_Value=9142857.142857144
|
RCC.SAI1Freq_Value=13714285.714285715
|
||||||
RCC.SAI2Freq_Value=9142857.142857144
|
RCC.SAI2Freq_Value=13714285.714285715
|
||||||
RCC.SDMMCFreq_Value=32000000
|
RCC.SDMMCFreq_Value=48000000
|
||||||
RCC.SWPMI1Freq_Value=80000000
|
RCC.SWPMI1Freq_Value=80000000
|
||||||
RCC.SYSCLKFreq_VALUE=80000000
|
RCC.SYSCLKFreq_VALUE=80000000
|
||||||
RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK
|
RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK
|
||||||
|
@ -220,10 +229,10 @@ RCC.UART5Freq_Value=80000000
|
||||||
RCC.USART1Freq_Value=80000000
|
RCC.USART1Freq_Value=80000000
|
||||||
RCC.USART2Freq_Value=80000000
|
RCC.USART2Freq_Value=80000000
|
||||||
RCC.USART3Freq_Value=80000000
|
RCC.USART3Freq_Value=80000000
|
||||||
RCC.USBFreq_Value=32000000
|
RCC.USBFreq_Value=48000000
|
||||||
RCC.VCOInputFreq_Value=8000000
|
RCC.VCOInputFreq_Value=8000000
|
||||||
RCC.VCOOutputFreq_Value=160000000
|
RCC.VCOOutputFreq_Value=160000000
|
||||||
RCC.VCOSAI1OutputFreq_Value=64000000
|
RCC.VCOSAI1OutputFreq_Value=96000000
|
||||||
RCC.VCOSAI2OutputFreq_Value=64000000
|
RCC.VCOSAI2OutputFreq_Value=64000000
|
||||||
SH.ADCx_IN14.0=ADC1_IN14,IN14-Single-Ended
|
SH.ADCx_IN14.0=ADC1_IN14,IN14-Single-Ended
|
||||||
SH.ADCx_IN14.ConfNb=1
|
SH.ADCx_IN14.ConfNb=1
|
||||||
|
@ -252,6 +261,8 @@ USART1.IPParameters=VirtualMode-Asynchronous
|
||||||
USART1.VirtualMode-Asynchronous=VM_ASYNC
|
USART1.VirtualMode-Asynchronous=VM_ASYNC
|
||||||
USART2.IPParameters=VirtualMode-Asynchronous
|
USART2.IPParameters=VirtualMode-Asynchronous
|
||||||
USART2.VirtualMode-Asynchronous=VM_ASYNC
|
USART2.VirtualMode-Asynchronous=VM_ASYNC
|
||||||
|
USB_OTG_FS.IPParameters=VirtualMode
|
||||||
|
USB_OTG_FS.VirtualMode=Device_Only
|
||||||
VP_IWDG_VS_IWDG.Mode=IWDG_Activate
|
VP_IWDG_VS_IWDG.Mode=IWDG_Activate
|
||||||
VP_IWDG_VS_IWDG.Signal=IWDG_VS_IWDG
|
VP_IWDG_VS_IWDG.Signal=IWDG_VS_IWDG
|
||||||
VP_RTC_VS_RTC_Activate.Mode=RTC_Enabled
|
VP_RTC_VS_RTC_Activate.Mode=RTC_Enabled
|
||||||
|
|
|
@ -82,6 +82,8 @@ TIM_HandleTypeDef htim17;
|
||||||
UART_HandleTypeDef huart1;
|
UART_HandleTypeDef huart1;
|
||||||
UART_HandleTypeDef huart2;
|
UART_HandleTypeDef huart2;
|
||||||
|
|
||||||
|
PCD_HandleTypeDef hpcd_USB_OTG_FS;
|
||||||
|
|
||||||
/* USER CODE BEGIN PV */
|
/* USER CODE BEGIN PV */
|
||||||
/* Private variables ---------------------------------------------------------*/
|
/* Private variables ---------------------------------------------------------*/
|
||||||
|
|
||||||
|
@ -103,6 +105,7 @@ static void MX_TIM16_Init(void);
|
||||||
static void MX_TIM15_Init(void);
|
static void MX_TIM15_Init(void);
|
||||||
static void MX_TIM4_Init(void);
|
static void MX_TIM4_Init(void);
|
||||||
static void MX_TIM1_Init(void);
|
static void MX_TIM1_Init(void);
|
||||||
|
static void MX_USB_OTG_FS_PCD_Init(void);
|
||||||
/* USER CODE BEGIN PFP */
|
/* USER CODE BEGIN PFP */
|
||||||
/* Private function prototypes -----------------------------------------------*/
|
/* Private function prototypes -----------------------------------------------*/
|
||||||
|
|
||||||
|
@ -122,6 +125,7 @@ int main(void)
|
||||||
/* USER CODE BEGIN 1 */
|
/* USER CODE BEGIN 1 */
|
||||||
|
|
||||||
/* USER CODE END 1 */
|
/* USER CODE END 1 */
|
||||||
|
|
||||||
|
|
||||||
/* MCU Configuration--------------------------------------------------------*/
|
/* MCU Configuration--------------------------------------------------------*/
|
||||||
|
|
||||||
|
@ -154,6 +158,7 @@ int main(void)
|
||||||
MX_TIM15_Init();
|
MX_TIM15_Init();
|
||||||
MX_TIM4_Init();
|
MX_TIM4_Init();
|
||||||
MX_TIM1_Init();
|
MX_TIM1_Init();
|
||||||
|
MX_USB_OTG_FS_PCD_Init();
|
||||||
/* USER CODE BEGIN 2 */
|
/* USER CODE BEGIN 2 */
|
||||||
|
|
||||||
/* USER CODE END 2 */
|
/* USER CODE END 2 */
|
||||||
|
@ -217,18 +222,20 @@ void SystemClock_Config(void)
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_RTC|RCC_PERIPHCLK_USART1
|
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_RTC|RCC_PERIPHCLK_USART1
|
||||||
|RCC_PERIPHCLK_USART2|RCC_PERIPHCLK_ADC;
|
|RCC_PERIPHCLK_USART2|RCC_PERIPHCLK_USB
|
||||||
|
|RCC_PERIPHCLK_ADC;
|
||||||
PeriphClkInit.Usart1ClockSelection = RCC_USART1CLKSOURCE_PCLK2;
|
PeriphClkInit.Usart1ClockSelection = RCC_USART1CLKSOURCE_PCLK2;
|
||||||
PeriphClkInit.Usart2ClockSelection = RCC_USART2CLKSOURCE_PCLK1;
|
PeriphClkInit.Usart2ClockSelection = RCC_USART2CLKSOURCE_PCLK1;
|
||||||
PeriphClkInit.AdcClockSelection = RCC_ADCCLKSOURCE_PLLSAI1;
|
PeriphClkInit.AdcClockSelection = RCC_ADCCLKSOURCE_PLLSAI1;
|
||||||
PeriphClkInit.RTCClockSelection = RCC_RTCCLKSOURCE_LSE;
|
PeriphClkInit.RTCClockSelection = RCC_RTCCLKSOURCE_LSE;
|
||||||
|
PeriphClkInit.UsbClockSelection = RCC_USBCLKSOURCE_PLLSAI1;
|
||||||
PeriphClkInit.PLLSAI1.PLLSAI1Source = RCC_PLLSOURCE_HSE;
|
PeriphClkInit.PLLSAI1.PLLSAI1Source = RCC_PLLSOURCE_HSE;
|
||||||
PeriphClkInit.PLLSAI1.PLLSAI1M = 1;
|
PeriphClkInit.PLLSAI1.PLLSAI1M = 1;
|
||||||
PeriphClkInit.PLLSAI1.PLLSAI1N = 8;
|
PeriphClkInit.PLLSAI1.PLLSAI1N = 12;
|
||||||
PeriphClkInit.PLLSAI1.PLLSAI1P = RCC_PLLP_DIV7;
|
PeriphClkInit.PLLSAI1.PLLSAI1P = RCC_PLLP_DIV7;
|
||||||
PeriphClkInit.PLLSAI1.PLLSAI1Q = RCC_PLLQ_DIV2;
|
PeriphClkInit.PLLSAI1.PLLSAI1Q = RCC_PLLQ_DIV2;
|
||||||
PeriphClkInit.PLLSAI1.PLLSAI1R = RCC_PLLR_DIV2;
|
PeriphClkInit.PLLSAI1.PLLSAI1R = RCC_PLLR_DIV2;
|
||||||
PeriphClkInit.PLLSAI1.PLLSAI1ClockOut = RCC_PLLSAI1_ADC1CLK;
|
PeriphClkInit.PLLSAI1.PLLSAI1ClockOut = RCC_PLLSAI1_48M2CLK|RCC_PLLSAI1_ADC1CLK;
|
||||||
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
|
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
|
||||||
{
|
{
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
|
@ -805,6 +812,41 @@ static void MX_USART2_UART_Init(void)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief USB_OTG_FS Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_USB_OTG_FS_PCD_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN USB_OTG_FS_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END USB_OTG_FS_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN USB_OTG_FS_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END USB_OTG_FS_Init 1 */
|
||||||
|
hpcd_USB_OTG_FS.Instance = USB_OTG_FS;
|
||||||
|
hpcd_USB_OTG_FS.Init.dev_endpoints = 6;
|
||||||
|
hpcd_USB_OTG_FS.Init.speed = PCD_SPEED_FULL;
|
||||||
|
hpcd_USB_OTG_FS.Init.phy_itface = PCD_PHY_EMBEDDED;
|
||||||
|
hpcd_USB_OTG_FS.Init.Sof_enable = DISABLE;
|
||||||
|
hpcd_USB_OTG_FS.Init.low_power_enable = DISABLE;
|
||||||
|
hpcd_USB_OTG_FS.Init.lpm_enable = DISABLE;
|
||||||
|
hpcd_USB_OTG_FS.Init.battery_charging_enable = DISABLE;
|
||||||
|
hpcd_USB_OTG_FS.Init.use_dedicated_ep1 = DISABLE;
|
||||||
|
hpcd_USB_OTG_FS.Init.vbus_sensing_enable = DISABLE;
|
||||||
|
if (HAL_PCD_Init(&hpcd_USB_OTG_FS) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN USB_OTG_FS_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END USB_OTG_FS_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief GPIO Initialization Function
|
* @brief GPIO Initialization Function
|
||||||
* @param None
|
* @param None
|
||||||
|
|
|
@ -676,6 +676,100 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* huart)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief PCD MSP Initialization
|
||||||
|
* This function configures the hardware resources used in this example
|
||||||
|
* @param hpcd: PCD handle pointer
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void HAL_PCD_MspInit(PCD_HandleTypeDef* hpcd)
|
||||||
|
{
|
||||||
|
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
||||||
|
if(hpcd->Instance==USB_OTG_FS)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN USB_OTG_FS_MspInit 0 */
|
||||||
|
|
||||||
|
/* USER CODE END USB_OTG_FS_MspInit 0 */
|
||||||
|
|
||||||
|
__HAL_RCC_GPIOA_CLK_ENABLE();
|
||||||
|
/**USB_OTG_FS GPIO Configuration
|
||||||
|
PA11 ------> USB_OTG_FS_DM
|
||||||
|
PA12 ------> USB_OTG_FS_DP
|
||||||
|
*/
|
||||||
|
GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_12;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
||||||
|
GPIO_InitStruct.Alternate = GPIO_AF10_OTG_FS;
|
||||||
|
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/* Peripheral clock enable */
|
||||||
|
__HAL_RCC_USB_OTG_FS_CLK_ENABLE();
|
||||||
|
|
||||||
|
/* Enable VDDUSB */
|
||||||
|
if(__HAL_RCC_PWR_IS_CLK_DISABLED())
|
||||||
|
{
|
||||||
|
__HAL_RCC_PWR_CLK_ENABLE();
|
||||||
|
HAL_PWREx_EnableVddUSB();
|
||||||
|
__HAL_RCC_PWR_CLK_DISABLE();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
HAL_PWREx_EnableVddUSB();
|
||||||
|
}
|
||||||
|
/* USB_OTG_FS interrupt Init */
|
||||||
|
HAL_NVIC_SetPriority(OTG_FS_IRQn, 5, 0);
|
||||||
|
HAL_NVIC_EnableIRQ(OTG_FS_IRQn);
|
||||||
|
/* USER CODE BEGIN USB_OTG_FS_MspInit 1 */
|
||||||
|
|
||||||
|
/* USER CODE END USB_OTG_FS_MspInit 1 */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief PCD MSP De-Initialization
|
||||||
|
* This function freeze the hardware resources used in this example
|
||||||
|
* @param hpcd: PCD handle pointer
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void HAL_PCD_MspDeInit(PCD_HandleTypeDef* hpcd)
|
||||||
|
{
|
||||||
|
if(hpcd->Instance==USB_OTG_FS)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN USB_OTG_FS_MspDeInit 0 */
|
||||||
|
|
||||||
|
/* USER CODE END USB_OTG_FS_MspDeInit 0 */
|
||||||
|
/* Peripheral clock disable */
|
||||||
|
__HAL_RCC_USB_OTG_FS_CLK_DISABLE();
|
||||||
|
|
||||||
|
/**USB_OTG_FS GPIO Configuration
|
||||||
|
PA11 ------> USB_OTG_FS_DM
|
||||||
|
PA12 ------> USB_OTG_FS_DP
|
||||||
|
*/
|
||||||
|
HAL_GPIO_DeInit(GPIOA, GPIO_PIN_11|GPIO_PIN_12);
|
||||||
|
|
||||||
|
/* Disable VDDUSB */
|
||||||
|
if(__HAL_RCC_PWR_IS_CLK_DISABLED())
|
||||||
|
{
|
||||||
|
__HAL_RCC_PWR_CLK_ENABLE();
|
||||||
|
HAL_PWREx_DisableVddUSB();
|
||||||
|
__HAL_RCC_PWR_CLK_DISABLE();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
HAL_PWREx_DisableVddUSB();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* USB_OTG_FS interrupt DeInit */
|
||||||
|
HAL_NVIC_DisableIRQ(OTG_FS_IRQn);
|
||||||
|
/* USER CODE BEGIN USB_OTG_FS_MspDeInit 1 */
|
||||||
|
|
||||||
|
/* USER CODE END USB_OTG_FS_MspDeInit 1 */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/* USER CODE BEGIN 1 */
|
/* USER CODE BEGIN 1 */
|
||||||
|
|
||||||
/* USER CODE END 1 */
|
/* USER CODE END 1 */
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
/* USER CODE END 0 */
|
/* USER CODE END 0 */
|
||||||
|
|
||||||
/* External variables --------------------------------------------------------*/
|
/* External variables --------------------------------------------------------*/
|
||||||
|
extern PCD_HandleTypeDef hpcd_USB_OTG_FS;
|
||||||
/* USER CODE BEGIN EV */
|
/* USER CODE BEGIN EV */
|
||||||
|
|
||||||
/* USER CODE END EV */
|
/* USER CODE END EV */
|
||||||
|
@ -212,6 +212,20 @@ void SysTick_Handler(void)
|
||||||
/* please refer to the startup file (startup_stm32l4xx.s). */
|
/* please refer to the startup file (startup_stm32l4xx.s). */
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief This function handles USB OTG FS global interrupt.
|
||||||
|
*/
|
||||||
|
void OTG_FS_IRQHandler(void)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN OTG_FS_IRQn 0 */
|
||||||
|
|
||||||
|
/* USER CODE END OTG_FS_IRQn 0 */
|
||||||
|
HAL_PCD_IRQHandler(&hpcd_USB_OTG_FS);
|
||||||
|
/* USER CODE BEGIN OTG_FS_IRQn 1 */
|
||||||
|
|
||||||
|
/* USER CODE END OTG_FS_IRQn 1 */
|
||||||
|
}
|
||||||
|
|
||||||
/* USER CODE BEGIN 1 */
|
/* USER CODE BEGIN 1 */
|
||||||
|
|
||||||
/* USER CODE END 1 */
|
/* USER CODE END 1 */
|
||||||
|
|
|
@ -246,6 +246,11 @@ menu "On-chip Peripheral Drivers"
|
||||||
select RT_USING_WDT
|
select RT_USING_WDT
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config BSP_USING_USBD_FS
|
||||||
|
bool "Enable OTGFS as USB device"
|
||||||
|
select RT_USING_USB_DEVICE
|
||||||
|
default n
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "Board extended module Drivers"
|
menu "Board extended module Drivers"
|
||||||
|
|
|
@ -18,51 +18,70 @@
|
||||||
|
|
||||||
void SystemClock_Config(void)
|
void SystemClock_Config(void)
|
||||||
{
|
{
|
||||||
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
||||||
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
|
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
|
||||||
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
|
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
|
||||||
|
|
||||||
/**Initializes the CPU, AHB and APB busses clocks
|
/** Configure LSE Drive Capability
|
||||||
*/
|
*/
|
||||||
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
|
HAL_PWR_EnableBkUpAccess();
|
||||||
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
|
__HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_LOW);
|
||||||
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
/** Initializes the CPU, AHB and APB busses clocks
|
||||||
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
|
*/
|
||||||
RCC_OscInitStruct.PLL.PLLM = 1;
|
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI|RCC_OSCILLATORTYPE_HSE
|
||||||
RCC_OscInitStruct.PLL.PLLN = 20;
|
|RCC_OSCILLATORTYPE_LSE;
|
||||||
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV7;
|
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
|
||||||
RCC_OscInitStruct.PLL.PLLQ = RCC_PLLQ_DIV2;
|
RCC_OscInitStruct.LSEState = RCC_LSE_ON;
|
||||||
RCC_OscInitStruct.PLL.PLLR = RCC_PLLR_DIV2;
|
RCC_OscInitStruct.LSIState = RCC_LSI_ON;
|
||||||
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
|
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
||||||
{
|
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
|
||||||
Error_Handler();
|
RCC_OscInitStruct.PLL.PLLM = 1;
|
||||||
}
|
RCC_OscInitStruct.PLL.PLLN = 20;
|
||||||
/**Initializes the CPU, AHB and APB busses clocks
|
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV7;
|
||||||
*/
|
RCC_OscInitStruct.PLL.PLLQ = RCC_PLLQ_DIV2;
|
||||||
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK
|
RCC_OscInitStruct.PLL.PLLR = RCC_PLLR_DIV2;
|
||||||
| RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
|
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
|
||||||
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
|
{
|
||||||
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
|
Error_Handler();
|
||||||
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
|
}
|
||||||
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
|
/** Initializes the CPU, AHB and APB busses clocks
|
||||||
|
*/
|
||||||
|
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|
||||||
|
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
|
||||||
|
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
|
||||||
|
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
|
||||||
|
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
|
||||||
|
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
|
||||||
|
|
||||||
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_4) != HAL_OK)
|
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_4) != HAL_OK)
|
||||||
{
|
{
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USART1 | RCC_PERIPHCLK_USART2;
|
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_RTC|RCC_PERIPHCLK_USART1
|
||||||
PeriphClkInit.Usart1ClockSelection = RCC_USART1CLKSOURCE_PCLK2;
|
|RCC_PERIPHCLK_USART2|RCC_PERIPHCLK_USB
|
||||||
PeriphClkInit.Usart2ClockSelection = RCC_USART2CLKSOURCE_PCLK1;
|
|RCC_PERIPHCLK_ADC;
|
||||||
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
|
PeriphClkInit.Usart1ClockSelection = RCC_USART1CLKSOURCE_PCLK2;
|
||||||
{
|
PeriphClkInit.Usart2ClockSelection = RCC_USART2CLKSOURCE_PCLK1;
|
||||||
Error_Handler();
|
PeriphClkInit.AdcClockSelection = RCC_ADCCLKSOURCE_PLLSAI1;
|
||||||
}
|
PeriphClkInit.RTCClockSelection = RCC_RTCCLKSOURCE_LSE;
|
||||||
/**Configure the main internal regulator output voltage
|
PeriphClkInit.UsbClockSelection = RCC_USBCLKSOURCE_PLLSAI1;
|
||||||
*/
|
PeriphClkInit.PLLSAI1.PLLSAI1Source = RCC_PLLSOURCE_HSE;
|
||||||
if (HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1) != HAL_OK)
|
PeriphClkInit.PLLSAI1.PLLSAI1M = 1;
|
||||||
{
|
PeriphClkInit.PLLSAI1.PLLSAI1N = 12;
|
||||||
Error_Handler();
|
PeriphClkInit.PLLSAI1.PLLSAI1P = RCC_PLLP_DIV7;
|
||||||
}
|
PeriphClkInit.PLLSAI1.PLLSAI1Q = RCC_PLLQ_DIV2;
|
||||||
|
PeriphClkInit.PLLSAI1.PLLSAI1R = RCC_PLLR_DIV2;
|
||||||
|
PeriphClkInit.PLLSAI1.PLLSAI1ClockOut = RCC_PLLSAI1_48M2CLK|RCC_PLLSAI1_ADC1CLK;
|
||||||
|
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/** Configure the main internal regulator output voltage
|
||||||
|
*/
|
||||||
|
if (HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef RT_USING_PM
|
#ifdef RT_USING_PM
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||||
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_projx.xsd">
|
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_projx.xsd">
|
||||||
|
|
||||||
<SchemaVersion>2.1</SchemaVersion>
|
<SchemaVersion>2.1</SchemaVersion>
|
||||||
|
|
||||||
<Header>### uVision Project, (C) Keil Software</Header>
|
<Header>### uVision Project, (C) Keil Software</Header>
|
||||||
|
|
||||||
<Targets>
|
<Targets>
|
||||||
<Target>
|
<Target>
|
||||||
<TargetName>rt-thread</TargetName>
|
<TargetName>rt-thread</TargetName>
|
||||||
|
@ -19,28 +16,28 @@
|
||||||
<PackID>Keil.STM32L4xx_DFP.2.0.0</PackID>
|
<PackID>Keil.STM32L4xx_DFP.2.0.0</PackID>
|
||||||
<PackURL>http://www.keil.com/pack</PackURL>
|
<PackURL>http://www.keil.com/pack</PackURL>
|
||||||
<Cpu>IRAM(0x20000000,0x00018000) IRAM2(0x10000000,0x00008000) IROM(0x08000000,0x00080000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ELITTLE</Cpu>
|
<Cpu>IRAM(0x20000000,0x00018000) IRAM2(0x10000000,0x00008000) IROM(0x08000000,0x00080000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ELITTLE</Cpu>
|
||||||
<FlashUtilSpec></FlashUtilSpec>
|
<FlashUtilSpec />
|
||||||
<StartupFile></StartupFile>
|
<StartupFile />
|
||||||
<FlashDriverDll>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32L4xx_512 -FS08000000 -FL080000 -FP0($$Device:STM32L475VETx$CMSIS\Flash\STM32L4xx_512.FLM))</FlashDriverDll>
|
<FlashDriverDll>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32L4xx_512 -FS08000000 -FL080000 -FP0($$Device:STM32L475VETx$CMSIS\Flash\STM32L4xx_512.FLM))</FlashDriverDll>
|
||||||
<DeviceId>0</DeviceId>
|
<DeviceId>0</DeviceId>
|
||||||
<RegisterFile>$$Device:STM32L475VETx$Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l4xx.h</RegisterFile>
|
<RegisterFile>$$Device:STM32L475VETx$Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l4xx.h</RegisterFile>
|
||||||
<MemoryEnv></MemoryEnv>
|
<MemoryEnv />
|
||||||
<Cmp></Cmp>
|
<Cmp />
|
||||||
<Asm></Asm>
|
<Asm />
|
||||||
<Linker></Linker>
|
<Linker />
|
||||||
<OHString></OHString>
|
<OHString />
|
||||||
<InfinionOptionDll></InfinionOptionDll>
|
<InfinionOptionDll />
|
||||||
<SLE66CMisc></SLE66CMisc>
|
<SLE66CMisc />
|
||||||
<SLE66AMisc></SLE66AMisc>
|
<SLE66AMisc />
|
||||||
<SLE66LinkerMisc></SLE66LinkerMisc>
|
<SLE66LinkerMisc />
|
||||||
<SFDFile>$$Device:STM32L475VETx$CMSIS\SVD\STM32L4x5.svd</SFDFile>
|
<SFDFile>$$Device:STM32L475VETx$CMSIS\SVD\STM32L4x5.svd</SFDFile>
|
||||||
<bCustSvd>0</bCustSvd>
|
<bCustSvd>0</bCustSvd>
|
||||||
<UseEnv>0</UseEnv>
|
<UseEnv>0</UseEnv>
|
||||||
<BinPath></BinPath>
|
<BinPath />
|
||||||
<IncludePath></IncludePath>
|
<IncludePath />
|
||||||
<LibPath></LibPath>
|
<LibPath />
|
||||||
<RegisterFilePath></RegisterFilePath>
|
<RegisterFilePath />
|
||||||
<DBRegisterFilePath></DBRegisterFilePath>
|
<DBRegisterFilePath />
|
||||||
<TargetStatus>
|
<TargetStatus>
|
||||||
<Error>0</Error>
|
<Error>0</Error>
|
||||||
<ExitCodeStop>0</ExitCodeStop>
|
<ExitCodeStop>0</ExitCodeStop>
|
||||||
|
@ -62,8 +59,8 @@
|
||||||
<BeforeCompile>
|
<BeforeCompile>
|
||||||
<RunUserProg1>0</RunUserProg1>
|
<RunUserProg1>0</RunUserProg1>
|
||||||
<RunUserProg2>0</RunUserProg2>
|
<RunUserProg2>0</RunUserProg2>
|
||||||
<UserProg1Name></UserProg1Name>
|
<UserProg1Name />
|
||||||
<UserProg2Name></UserProg2Name>
|
<UserProg2Name />
|
||||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||||
<nStopU1X>0</nStopU1X>
|
<nStopU1X>0</nStopU1X>
|
||||||
|
@ -72,8 +69,8 @@
|
||||||
<BeforeMake>
|
<BeforeMake>
|
||||||
<RunUserProg1>0</RunUserProg1>
|
<RunUserProg1>0</RunUserProg1>
|
||||||
<RunUserProg2>0</RunUserProg2>
|
<RunUserProg2>0</RunUserProg2>
|
||||||
<UserProg1Name></UserProg1Name>
|
<UserProg1Name />
|
||||||
<UserProg2Name></UserProg2Name>
|
<UserProg2Name />
|
||||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||||
<nStopB1X>0</nStopB1X>
|
<nStopB1X>0</nStopB1X>
|
||||||
|
@ -83,14 +80,14 @@
|
||||||
<RunUserProg1>1</RunUserProg1>
|
<RunUserProg1>1</RunUserProg1>
|
||||||
<RunUserProg2>0</RunUserProg2>
|
<RunUserProg2>0</RunUserProg2>
|
||||||
<UserProg1Name>fromelf --bin !L --output rtthread.bin</UserProg1Name>
|
<UserProg1Name>fromelf --bin !L --output rtthread.bin</UserProg1Name>
|
||||||
<UserProg2Name></UserProg2Name>
|
<UserProg2Name />
|
||||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||||
<nStopA1X>0</nStopA1X>
|
<nStopA1X>0</nStopA1X>
|
||||||
<nStopA2X>0</nStopA2X>
|
<nStopA2X>0</nStopA2X>
|
||||||
</AfterMake>
|
</AfterMake>
|
||||||
<SelectedForBatchBuild>0</SelectedForBatchBuild>
|
<SelectedForBatchBuild>0</SelectedForBatchBuild>
|
||||||
<SVCSIdString></SVCSIdString>
|
<SVCSIdString />
|
||||||
</TargetCommonOption>
|
</TargetCommonOption>
|
||||||
<CommonProperty>
|
<CommonProperty>
|
||||||
<UseCPPCompiler>0</UseCPPCompiler>
|
<UseCPPCompiler>0</UseCPPCompiler>
|
||||||
|
@ -104,8 +101,8 @@
|
||||||
<AssembleAssemblyFile>0</AssembleAssemblyFile>
|
<AssembleAssemblyFile>0</AssembleAssemblyFile>
|
||||||
<PublicsOnly>0</PublicsOnly>
|
<PublicsOnly>0</PublicsOnly>
|
||||||
<StopOnExitCode>3</StopOnExitCode>
|
<StopOnExitCode>3</StopOnExitCode>
|
||||||
<CustomArgument></CustomArgument>
|
<CustomArgument />
|
||||||
<IncludeLibraryModules></IncludeLibraryModules>
|
<IncludeLibraryModules />
|
||||||
<ComprImg>1</ComprImg>
|
<ComprImg>1</ComprImg>
|
||||||
</CommonProperty>
|
</CommonProperty>
|
||||||
<DllOption>
|
<DllOption>
|
||||||
|
@ -139,10 +136,10 @@
|
||||||
<bUseTDR>1</bUseTDR>
|
<bUseTDR>1</bUseTDR>
|
||||||
<Flash2>BIN\UL2CM3.DLL</Flash2>
|
<Flash2>BIN\UL2CM3.DLL</Flash2>
|
||||||
<Flash3>"" ()</Flash3>
|
<Flash3>"" ()</Flash3>
|
||||||
<Flash4></Flash4>
|
<Flash4 />
|
||||||
<pFcarmOut></pFcarmOut>
|
<pFcarmOut />
|
||||||
<pFcarmGrp></pFcarmGrp>
|
<pFcarmGrp />
|
||||||
<pFcArmRoot></pFcArmRoot>
|
<pFcArmRoot />
|
||||||
<FcArmLst>0</FcArmLst>
|
<FcArmLst>0</FcArmLst>
|
||||||
</Utilities>
|
</Utilities>
|
||||||
<TargetArmAds>
|
<TargetArmAds>
|
||||||
|
@ -175,7 +172,7 @@
|
||||||
<RvctClst>0</RvctClst>
|
<RvctClst>0</RvctClst>
|
||||||
<GenPPlst>0</GenPPlst>
|
<GenPPlst>0</GenPPlst>
|
||||||
<AdsCpuType>"Cortex-M4"</AdsCpuType>
|
<AdsCpuType>"Cortex-M4"</AdsCpuType>
|
||||||
<RvctDeviceName></RvctDeviceName>
|
<RvctDeviceName />
|
||||||
<mOS>0</mOS>
|
<mOS>0</mOS>
|
||||||
<uocRom>0</uocRom>
|
<uocRom>0</uocRom>
|
||||||
<uocRam>0</uocRam>
|
<uocRam>0</uocRam>
|
||||||
|
@ -307,7 +304,7 @@
|
||||||
<Size>0x8000</Size>
|
<Size>0x8000</Size>
|
||||||
</OCR_RVCT10>
|
</OCR_RVCT10>
|
||||||
</OnChipMemories>
|
</OnChipMemories>
|
||||||
<RvctStartVector></RvctStartVector>
|
<RvctStartVector />
|
||||||
</ArmAdsMisc>
|
</ArmAdsMisc>
|
||||||
<Cads>
|
<Cads>
|
||||||
<interw>1</interw>
|
<interw>1</interw>
|
||||||
|
@ -334,9 +331,9 @@
|
||||||
<v6WtE>0</v6WtE>
|
<v6WtE>0</v6WtE>
|
||||||
<v6Rtti>0</v6Rtti>
|
<v6Rtti>0</v6Rtti>
|
||||||
<VariousControls>
|
<VariousControls>
|
||||||
<MiscControls></MiscControls>
|
<MiscControls />
|
||||||
<Define>USE_HAL_DRIVER, STM32L475xx</Define>
|
<Define>USE_HAL_DRIVER, STM32L475xx</Define>
|
||||||
<Undefine></Undefine>
|
<Undefine />
|
||||||
<IncludePath>.;..\..\..\include;.;applications;board;board\CubeMX_Config\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\finsh;..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Inc;..\libraries\STM32L4xx_HAL\CMSIS\Device\ST\STM32L4xx\Include;..\libraries\STM32L4xx_HAL\CMSIS\Include</IncludePath>
|
<IncludePath>.;..\..\..\include;.;applications;board;board\CubeMX_Config\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\finsh;..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Inc;..\libraries\STM32L4xx_HAL\CMSIS\Device\ST\STM32L4xx\Include;..\libraries\STM32L4xx_HAL\CMSIS\Include</IncludePath>
|
||||||
</VariousControls>
|
</VariousControls>
|
||||||
</Cads>
|
</Cads>
|
||||||
|
@ -352,10 +349,10 @@
|
||||||
<useXO>0</useXO>
|
<useXO>0</useXO>
|
||||||
<uClangAs>0</uClangAs>
|
<uClangAs>0</uClangAs>
|
||||||
<VariousControls>
|
<VariousControls>
|
||||||
<MiscControls></MiscControls>
|
<MiscControls />
|
||||||
<Define></Define>
|
<Define />
|
||||||
<Undefine></Undefine>
|
<Undefine />
|
||||||
<IncludePath></IncludePath>
|
<IncludePath />
|
||||||
</VariousControls>
|
</VariousControls>
|
||||||
</Aads>
|
</Aads>
|
||||||
<LDads>
|
<LDads>
|
||||||
|
@ -367,13 +364,13 @@
|
||||||
<useFile>0</useFile>
|
<useFile>0</useFile>
|
||||||
<TextAddressRange>0x08000000</TextAddressRange>
|
<TextAddressRange>0x08000000</TextAddressRange>
|
||||||
<DataAddressRange>0x20000000</DataAddressRange>
|
<DataAddressRange>0x20000000</DataAddressRange>
|
||||||
<pXoBase></pXoBase>
|
<pXoBase />
|
||||||
<ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
|
<ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
|
||||||
<IncludeLibs></IncludeLibs>
|
<IncludeLibs />
|
||||||
<IncludeLibsPath></IncludeLibsPath>
|
<IncludeLibsPath />
|
||||||
<Misc></Misc>
|
<Misc />
|
||||||
<LinkerInputFile></LinkerInputFile>
|
<LinkerInputFile />
|
||||||
<DisabledWarnings></DisabledWarnings>
|
<DisabledWarnings />
|
||||||
</LDads>
|
</LDads>
|
||||||
</TargetArmAds>
|
</TargetArmAds>
|
||||||
</TargetOption>
|
</TargetOption>
|
||||||
|
@ -386,71 +383,99 @@
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\src\clock.c</FilePath>
|
<FilePath>..\..\..\src\clock.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>components.c</FileName>
|
<FileName>components.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\src\components.c</FilePath>
|
<FilePath>..\..\..\src\components.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>cpu.c</FileName>
|
<FileName>cpu.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\src\cpu.c</FilePath>
|
<FilePath>..\..\..\src\cpu.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>device.c</FileName>
|
<FileName>device.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\src\device.c</FilePath>
|
<FilePath>..\..\..\src\device.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>idle.c</FileName>
|
<FileName>idle.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\src\idle.c</FilePath>
|
<FilePath>..\..\..\src\idle.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>ipc.c</FileName>
|
<FileName>ipc.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\src\ipc.c</FilePath>
|
<FilePath>..\..\..\src\ipc.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>irq.c</FileName>
|
<FileName>irq.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\src\irq.c</FilePath>
|
<FilePath>..\..\..\src\irq.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>kservice.c</FileName>
|
<FileName>kservice.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\src\kservice.c</FilePath>
|
<FilePath>..\..\..\src\kservice.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>mem.c</FileName>
|
<FileName>mem.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\src\mem.c</FilePath>
|
<FilePath>..\..\..\src\mem.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>mempool.c</FileName>
|
<FileName>mempool.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\src\mempool.c</FilePath>
|
<FilePath>..\..\..\src\mempool.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>object.c</FileName>
|
<FileName>object.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\src\object.c</FilePath>
|
<FilePath>..\..\..\src\object.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>scheduler.c</FileName>
|
<FileName>scheduler.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\src\scheduler.c</FilePath>
|
<FilePath>..\..\..\src\scheduler.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>signal.c</FileName>
|
<FileName>signal.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\src\signal.c</FilePath>
|
<FilePath>..\..\..\src\signal.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>thread.c</FileName>
|
<FileName>thread.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\src\thread.c</FilePath>
|
<FilePath>..\..\..\src\thread.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>timer.c</FileName>
|
<FileName>timer.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
|
@ -476,26 +501,36 @@
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>board\board.c</FilePath>
|
<FilePath>board\board.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_msp.c</FileName>
|
<FileName>stm32l4xx_hal_msp.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>board\CubeMX_Config\Src\stm32l4xx_hal_msp.c</FilePath>
|
<FilePath>board\CubeMX_Config\Src\stm32l4xx_hal_msp.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>startup_stm32l475xx.s</FileName>
|
<FileName>startup_stm32l475xx.s</FileName>
|
||||||
<FileType>2</FileType>
|
<FileType>2</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\CMSIS\Device\ST\STM32L4xx\Source\Templates\arm\startup_stm32l475xx.s</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\CMSIS\Device\ST\STM32L4xx\Source\Templates\arm\startup_stm32l475xx.s</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>drv_gpio.c</FileName>
|
<FileName>drv_gpio.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\HAL_Drivers\drv_gpio.c</FilePath>
|
<FilePath>..\libraries\HAL_Drivers\drv_gpio.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>drv_usart.c</FileName>
|
<FileName>drv_usart.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\HAL_Drivers\drv_usart.c</FilePath>
|
<FilePath>..\libraries\HAL_Drivers\drv_usart.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>drv_common.c</FileName>
|
<FileName>drv_common.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
|
@ -511,21 +546,29 @@
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\libcpu\arm\common\backtrace.c</FilePath>
|
<FilePath>..\..\..\libcpu\arm\common\backtrace.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>div0.c</FileName>
|
<FileName>div0.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\libcpu\arm\common\div0.c</FilePath>
|
<FilePath>..\..\..\libcpu\arm\common\div0.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>showmem.c</FileName>
|
<FileName>showmem.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\libcpu\arm\common\showmem.c</FilePath>
|
<FilePath>..\..\..\libcpu\arm\common\showmem.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>cpuport.c</FileName>
|
<FileName>cpuport.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\libcpu\arm\cortex-m4\cpuport.c</FilePath>
|
<FilePath>..\..\..\libcpu\arm\cortex-m4\cpuport.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>context_rvds.S</FileName>
|
<FileName>context_rvds.S</FileName>
|
||||||
<FileType>2</FileType>
|
<FileType>2</FileType>
|
||||||
|
@ -541,41 +584,57 @@
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\components\drivers\misc\pin.c</FilePath>
|
<FilePath>..\..\..\components\drivers\misc\pin.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>serial.c</FileName>
|
<FileName>serial.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\components\drivers\serial\serial.c</FilePath>
|
<FilePath>..\..\..\components\drivers\serial\serial.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>completion.c</FileName>
|
<FileName>completion.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\components\drivers\src\completion.c</FilePath>
|
<FilePath>..\..\..\components\drivers\src\completion.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>dataqueue.c</FileName>
|
<FileName>dataqueue.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\components\drivers\src\dataqueue.c</FilePath>
|
<FilePath>..\..\..\components\drivers\src\dataqueue.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>pipe.c</FileName>
|
<FileName>pipe.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\components\drivers\src\pipe.c</FilePath>
|
<FilePath>..\..\..\components\drivers\src\pipe.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>ringblk_buf.c</FileName>
|
<FileName>ringblk_buf.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\components\drivers\src\ringblk_buf.c</FilePath>
|
<FilePath>..\..\..\components\drivers\src\ringblk_buf.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>ringbuffer.c</FileName>
|
<FileName>ringbuffer.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\components\drivers\src\ringbuffer.c</FilePath>
|
<FilePath>..\..\..\components\drivers\src\ringbuffer.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>waitqueue.c</FileName>
|
<FileName>waitqueue.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\components\drivers\src\waitqueue.c</FilePath>
|
<FilePath>..\..\..\components\drivers\src\waitqueue.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>workqueue.c</FileName>
|
<FileName>workqueue.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
|
@ -591,26 +650,36 @@
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\components\finsh\shell.c</FilePath>
|
<FilePath>..\..\..\components\finsh\shell.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>symbol.c</FileName>
|
<FileName>symbol.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\components\finsh\symbol.c</FilePath>
|
<FilePath>..\..\..\components\finsh\symbol.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>cmd.c</FileName>
|
<FileName>cmd.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\components\finsh\cmd.c</FilePath>
|
<FilePath>..\..\..\components\finsh\cmd.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>msh.c</FileName>
|
<FileName>msh.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\components\finsh\msh.c</FilePath>
|
<FilePath>..\..\..\components\finsh\msh.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>msh_cmd.c</FileName>
|
<FileName>msh_cmd.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\..\..\components\finsh\msh_cmd.c</FilePath>
|
<FilePath>..\..\..\components\finsh\msh_cmd.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>msh_file.c</FileName>
|
<FileName>msh_file.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
|
@ -626,106 +695,141 @@
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\CMSIS\Device\ST\STM32L4xx\Source\Templates\system_stm32l4xx.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\CMSIS\Device\ST\STM32L4xx\Source\Templates\system_stm32l4xx.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal.c</FileName>
|
<FileName>stm32l4xx_hal.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_comp.c</FileName>
|
<FileName>stm32l4xx_hal_comp.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_comp.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_comp.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_cortex.c</FileName>
|
<FileName>stm32l4xx_hal_cortex.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cortex.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cortex.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_crc.c</FileName>
|
<FileName>stm32l4xx_hal_crc.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_crc.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_crc.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_crc_ex.c</FileName>
|
<FileName>stm32l4xx_hal_crc_ex.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_crc_ex.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_crc_ex.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_cryp.c</FileName>
|
<FileName>stm32l4xx_hal_cryp.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cryp.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cryp.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_cryp_ex.c</FileName>
|
<FileName>stm32l4xx_hal_cryp_ex.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cryp_ex.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cryp_ex.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_dma.c</FileName>
|
<FileName>stm32l4xx_hal_dma.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dma.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dma.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_dma_ex.c</FileName>
|
<FileName>stm32l4xx_hal_dma_ex.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dma_ex.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dma_ex.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_exti.c</FileName>
|
<FileName>stm32l4xx_hal_exti.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_exti.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_exti.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_pwr.c</FileName>
|
<FileName>stm32l4xx_hal_pwr.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pwr.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pwr.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_pwr_ex.c</FileName>
|
<FileName>stm32l4xx_hal_pwr_ex.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pwr_ex.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pwr_ex.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_rcc.c</FileName>
|
<FileName>stm32l4xx_hal_rcc.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rcc.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rcc.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_rcc_ex.c</FileName>
|
<FileName>stm32l4xx_hal_rcc_ex.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rcc_ex.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rcc_ex.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_rng.c</FileName>
|
<FileName>stm32l4xx_hal_rng.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rng.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rng.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
<File>
|
</Files>
|
||||||
<FileName>stm32l4xx_hal_sram.c</FileName>
|
<Files>
|
||||||
<FileType>1</FileType>
|
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_sram.c</FilePath>
|
|
||||||
</File>
|
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_gpio.c</FileName>
|
<FileName>stm32l4xx_hal_gpio.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_gpio.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_gpio.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_uart.c</FileName>
|
<FileName>stm32l4xx_hal_uart.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_uart.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_uart.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_uart_ex.c</FileName>
|
<FileName>stm32l4xx_hal_uart_ex.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_uart_ex.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_uart_ex.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_usart.c</FileName>
|
<FileName>stm32l4xx_hal_usart.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_usart.c</FilePath>
|
<FilePath>..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_usart.c</FilePath>
|
||||||
</File>
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Files>
|
||||||
<File>
|
<File>
|
||||||
<FileName>stm32l4xx_hal_usart_ex.c</FileName>
|
<FileName>stm32l4xx_hal_usart_ex.c</FileName>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
|
@ -736,11 +840,9 @@
|
||||||
</Groups>
|
</Groups>
|
||||||
</Target>
|
</Target>
|
||||||
</Targets>
|
</Targets>
|
||||||
|
|
||||||
<RTE>
|
<RTE>
|
||||||
<apis/>
|
<apis />
|
||||||
<components/>
|
<components />
|
||||||
<files/>
|
<files />
|
||||||
</RTE>
|
</RTE>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -39,8 +39,9 @@
|
||||||
#define RT_USING_CONSOLE
|
#define RT_USING_CONSOLE
|
||||||
#define RT_CONSOLEBUF_SIZE 256
|
#define RT_CONSOLEBUF_SIZE 256
|
||||||
#define RT_CONSOLE_DEVICE_NAME "uart1"
|
#define RT_CONSOLE_DEVICE_NAME "uart1"
|
||||||
#define RT_VER_NUM 0x40001
|
#define RT_VER_NUM 0x40002
|
||||||
#define ARCH_ARM
|
#define ARCH_ARM
|
||||||
|
#define RT_USING_CPU_FFS
|
||||||
#define ARCH_ARM_CORTEX_M
|
#define ARCH_ARM_CORTEX_M
|
||||||
#define ARCH_ARM_CORTEX_M4
|
#define ARCH_ARM_CORTEX_M4
|
||||||
|
|
||||||
|
@ -82,6 +83,9 @@
|
||||||
#define RT_SERIAL_RB_BUFSZ 64
|
#define RT_SERIAL_RB_BUFSZ 64
|
||||||
#define RT_USING_PIN
|
#define RT_USING_PIN
|
||||||
|
|
||||||
|
/* Using Hardware Crypto drivers */
|
||||||
|
|
||||||
|
|
||||||
/* Using WiFi */
|
/* Using WiFi */
|
||||||
|
|
||||||
|
|
||||||
|
@ -153,6 +157,12 @@
|
||||||
|
|
||||||
/* samples: kernel and components samples */
|
/* samples: kernel and components samples */
|
||||||
|
|
||||||
|
|
||||||
|
/* Privated Packages of RealThread */
|
||||||
|
|
||||||
|
|
||||||
|
/* Network Utilities */
|
||||||
|
|
||||||
#define SOC_FAMILY_STM32
|
#define SOC_FAMILY_STM32
|
||||||
#define SOC_SERIES_STM32L4
|
#define SOC_SERIES_STM32L4
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue