[bsp][stm32][stm32/stm32f427-robomaster-a/]修改部分配置错误
1. 引入 #3062 '[bsp][Kconfig]在bsp的Kconfig中select组件初始化与user main的选项'所做的修改至本BSP包 2. 删去原rtconfig.h中非必要及无意义的配置,包括sensor,pwm,uart3,dma.
This commit is contained in:
parent
4d63839024
commit
0bae6e884c
|
@ -115,7 +115,7 @@ CONFIG_RT_USING_DEVICE_IPC=y
|
||||||
CONFIG_RT_PIPE_BUFSZ=512
|
CONFIG_RT_PIPE_BUFSZ=512
|
||||||
# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set
|
# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set
|
||||||
CONFIG_RT_USING_SERIAL=y
|
CONFIG_RT_USING_SERIAL=y
|
||||||
CONFIG_RT_SERIAL_USING_DMA=y
|
# CONFIG_RT_SERIAL_USING_DMA is not set
|
||||||
CONFIG_RT_SERIAL_RB_BUFSZ=64
|
CONFIG_RT_SERIAL_RB_BUFSZ=64
|
||||||
# CONFIG_RT_USING_CAN is not set
|
# CONFIG_RT_USING_CAN is not set
|
||||||
# CONFIG_RT_USING_HWTIMER is not set
|
# CONFIG_RT_USING_HWTIMER is not set
|
||||||
|
@ -123,7 +123,7 @@ CONFIG_RT_SERIAL_RB_BUFSZ=64
|
||||||
# CONFIG_RT_USING_I2C is not set
|
# CONFIG_RT_USING_I2C is not set
|
||||||
CONFIG_RT_USING_PIN=y
|
CONFIG_RT_USING_PIN=y
|
||||||
# CONFIG_RT_USING_ADC is not set
|
# CONFIG_RT_USING_ADC is not set
|
||||||
CONFIG_RT_USING_PWM=y
|
# CONFIG_RT_USING_PWM is not set
|
||||||
# CONFIG_RT_USING_MTD_NOR is not set
|
# CONFIG_RT_USING_MTD_NOR is not set
|
||||||
# CONFIG_RT_USING_MTD_NAND is not set
|
# CONFIG_RT_USING_MTD_NAND is not set
|
||||||
# CONFIG_RT_USING_PM is not set
|
# CONFIG_RT_USING_PM is not set
|
||||||
|
@ -132,8 +132,7 @@ CONFIG_RT_USING_PWM=y
|
||||||
# CONFIG_RT_USING_SPI is not set
|
# CONFIG_RT_USING_SPI is not set
|
||||||
# CONFIG_RT_USING_WDT is not set
|
# CONFIG_RT_USING_WDT is not set
|
||||||
# CONFIG_RT_USING_AUDIO is not set
|
# CONFIG_RT_USING_AUDIO is not set
|
||||||
CONFIG_RT_USING_SENSOR=y
|
# CONFIG_RT_USING_SENSOR is not set
|
||||||
CONFIG_RT_USING_SENSOR_CMD=y
|
|
||||||
# CONFIG_RT_USING_TOUCH is not set
|
# CONFIG_RT_USING_TOUCH is not set
|
||||||
# CONFIG_RT_USING_HWCRYPTO is not set
|
# CONFIG_RT_USING_HWCRYPTO is not set
|
||||||
# CONFIG_RT_USING_PULSE_ENCODER is not set
|
# CONFIG_RT_USING_PULSE_ENCODER is not set
|
||||||
|
@ -307,34 +306,7 @@ CONFIG_RT_LIBC_USING_TIME=y
|
||||||
#
|
#
|
||||||
# peripheral libraries and drivers
|
# peripheral libraries and drivers
|
||||||
#
|
#
|
||||||
CONFIG_PKG_USING_SENSORS_DRIVERS=y
|
# CONFIG_PKG_USING_SENSORS_DRIVERS is not set
|
||||||
# CONFIG_PKG_USING_LSM6DSL is not set
|
|
||||||
# CONFIG_PKG_USING_LPS22HB is not set
|
|
||||||
# CONFIG_PKG_USING_HTS221 is not set
|
|
||||||
# CONFIG_PKG_USING_LSM303AGR is not set
|
|
||||||
# CONFIG_PKG_USING_BME280 is not set
|
|
||||||
# CONFIG_PKG_USING_BMA400 is not set
|
|
||||||
# CONFIG_PKG_USING_BMI160_BMX160 is not set
|
|
||||||
# CONFIG_PKG_USING_SPL0601 is not set
|
|
||||||
# CONFIG_PKG_USING_MS5611 is not set
|
|
||||||
# CONFIG_PKG_USING_DA270 is not set
|
|
||||||
# CONFIG_PKG_USING_DF220 is not set
|
|
||||||
# CONFIG_PKG_USING_HSHCAL001 is not set
|
|
||||||
# CONFIG_PKG_USING_BH1750 is not set
|
|
||||||
CONFIG_PKG_USING_MPU6XXX=y
|
|
||||||
CONFIG_PKG_MPU6XXX_PATH="/packages/peripherals/sensors/mpu6xxx"
|
|
||||||
# CONFIG_PKG_USING_MPU6XXX_V001 is not set
|
|
||||||
# CONFIG_PKG_USING_MPU6XXX_V100 is not set
|
|
||||||
CONFIG_PKG_USING_MPU6XXX_LATEST_VERSION=y
|
|
||||||
CONFIG_PKG_MPU6XXX_VER="latest"
|
|
||||||
CONFIG_PKG_USING_MPU6XXX_ACCE=y
|
|
||||||
CONFIG_PKG_USING_MPU6XXX_GYRO=y
|
|
||||||
CONFIG_PKG_USING_MPU6XXX_MAG=y
|
|
||||||
# CONFIG_PKG_USING_AHT10 is not set
|
|
||||||
# CONFIG_PKG_USING_AP3216C is not set
|
|
||||||
# CONFIG_PKG_USING_TSL4531 is not set
|
|
||||||
# CONFIG_PKG_USING_DS18B20 is not set
|
|
||||||
# CONFIG_PKG_USING_DHT11 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_STM32_SDIO is not set
|
# CONFIG_PKG_USING_STM32_SDIO is not set
|
||||||
|
@ -410,21 +382,11 @@ CONFIG_SOC_STM32F427II=y
|
||||||
CONFIG_BSP_USING_GPIO=y
|
CONFIG_BSP_USING_GPIO=y
|
||||||
CONFIG_BSP_USING_UART=y
|
CONFIG_BSP_USING_UART=y
|
||||||
CONFIG_BSP_USING_UART6=y
|
CONFIG_BSP_USING_UART6=y
|
||||||
# CONFIG_BSP_UART6_RX_USING_DMA is not set
|
# CONFIG_BSP_USING_UART3 is not set
|
||||||
CONFIG_BSP_USING_UART3=y
|
|
||||||
# CONFIG_BSP_UART3_RX_USING_DMA is not set
|
|
||||||
# CONFIG_BSP_USING_UART7 is not set
|
# CONFIG_BSP_USING_UART7 is not set
|
||||||
# CONFIG_BSP_USING_UART8 is not set
|
# CONFIG_BSP_USING_UART8 is not set
|
||||||
# CONFIG_BSP_USING_UART1 is not set
|
# CONFIG_BSP_USING_UART1 is not set
|
||||||
CONFIG_BSP_USING_PWM=y
|
# CONFIG_BSP_USING_PWM is not set
|
||||||
CONFIG_BSP_USING_PWM12=y
|
|
||||||
CONFIG_BSP_USING_PWM12_CH1=y
|
|
||||||
CONFIG_BSP_USING_PWM4=y
|
|
||||||
CONFIG_BSP_USING_PWM4_CH1=y
|
|
||||||
CONFIG_BSP_USING_PWM4_CH2=y
|
|
||||||
# CONFIG_BSP_USING_PWM4_CH3 is not set
|
|
||||||
# CONFIG_BSP_USING_PWM4_CH4 is not set
|
|
||||||
# CONFIG_BSP_USING_PWM5 is not set
|
|
||||||
# CONFIG_BSP_USING_RNG is not set
|
# CONFIG_BSP_USING_RNG is not set
|
||||||
# CONFIG_BSP_USING_UDID is not set
|
# CONFIG_BSP_USING_UDID is not set
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
|
||||||
config SOC_STM32F427II
|
config SOC_STM32F427II
|
||||||
bool
|
bool
|
||||||
select SOC_SERIES_STM32F4
|
select SOC_SERIES_STM32F4
|
||||||
|
select RT_USING_COMPONENTS_INIT
|
||||||
|
select RT_USING_USER_MAIN
|
||||||
default y
|
default y
|
||||||
|
|
||||||
menu "Onboard Peripheral Drivers"
|
menu "Onboard Peripheral Drivers"
|
||||||
|
|
|
@ -79,11 +79,8 @@
|
||||||
#define RT_USING_DEVICE_IPC
|
#define RT_USING_DEVICE_IPC
|
||||||
#define RT_PIPE_BUFSZ 512
|
#define RT_PIPE_BUFSZ 512
|
||||||
#define RT_USING_SERIAL
|
#define RT_USING_SERIAL
|
||||||
#define RT_SERIAL_USING_DMA
|
|
||||||
#define RT_SERIAL_RB_BUFSZ 64
|
#define RT_SERIAL_RB_BUFSZ 64
|
||||||
#define RT_USING_PIN
|
#define RT_USING_PIN
|
||||||
#define RT_USING_SENSOR
|
|
||||||
#define RT_USING_SENSOR_CMD
|
|
||||||
|
|
||||||
/* Using USB */
|
/* Using USB */
|
||||||
|
|
||||||
|
@ -145,12 +142,6 @@
|
||||||
|
|
||||||
/* peripheral libraries and drivers */
|
/* peripheral libraries and drivers */
|
||||||
|
|
||||||
#define PKG_USING_SENSORS_DRIVERS
|
|
||||||
#define PKG_USING_MPU6XXX
|
|
||||||
#define PKG_USING_MPU6XXX_LATEST_VERSION
|
|
||||||
#define PKG_USING_MPU6XXX_ACCE
|
|
||||||
#define PKG_USING_MPU6XXX_GYRO
|
|
||||||
#define PKG_USING_MPU6XXX_MAG
|
|
||||||
|
|
||||||
/* miscellaneous packages */
|
/* miscellaneous packages */
|
||||||
|
|
||||||
|
@ -171,7 +162,6 @@
|
||||||
#define BSP_USING_GPIO
|
#define BSP_USING_GPIO
|
||||||
#define BSP_USING_UART
|
#define BSP_USING_UART
|
||||||
#define BSP_USING_UART6
|
#define BSP_USING_UART6
|
||||||
#define BSP_USING_UART3
|
|
||||||
|
|
||||||
/* Board extended module Drivers */
|
/* Board extended module Drivers */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue