2017-04-26 23:56:36 +08:00
|
|
|
CONFIG_ARM=y
|
|
|
|
CONFIG_BOARD_DISCO_L475_IOT1=y
|
|
|
|
CONFIG_SOC_SERIES_STM32L4X=y
|
|
|
|
CONFIG_SOC_STM32L475XG=y
|
|
|
|
CONFIG_CORTEX_M_SYSTICK=y
|
2018-04-23 15:05:58 +08:00
|
|
|
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
|
2017-04-26 23:56:36 +08:00
|
|
|
|
|
|
|
# enable uart driver
|
|
|
|
CONFIG_SERIAL=y
|
2018-05-16 20:00:43 +08:00
|
|
|
CONFIG_UART_INTERRUPT_DRIVEN=y
|
2017-04-26 23:56:36 +08:00
|
|
|
|
|
|
|
# enable pinmux
|
|
|
|
CONFIG_PINMUX=y
|
|
|
|
|
2017-12-29 03:01:28 +08:00
|
|
|
# enable GPIO
|
2017-04-26 23:56:36 +08:00
|
|
|
CONFIG_GPIO=y
|
|
|
|
|
|
|
|
# clock configuration
|
|
|
|
CONFIG_CLOCK_CONTROL=y
|
2018-04-23 15:05:58 +08:00
|
|
|
|
|
|
|
# Configure bus clocks
|
2017-04-26 23:56:36 +08:00
|
|
|
CONFIG_CLOCK_STM32_AHB_PRESCALER=1
|
|
|
|
CONFIG_CLOCK_STM32_APB1_PRESCALER=1
|
|
|
|
CONFIG_CLOCK_STM32_APB2_PRESCALER=1
|
|
|
|
|
|
|
|
# console
|
|
|
|
CONFIG_CONSOLE=y
|
|
|
|
CONFIG_UART_CONSOLE=y
|
|
|
|
|
2017-12-29 03:01:28 +08:00
|
|
|
# enable PWM
|
2017-04-26 23:56:36 +08:00
|
|
|
CONFIG_PWM=y
|
|
|
|
|
2017-12-29 03:01:28 +08:00
|
|
|
# enable MPU
|
2018-08-09 18:01:21 +08:00
|
|
|
CONFIG_ARM_MPU=y
|
2017-06-09 23:56:55 +08:00
|
|
|
|
2017-12-29 03:01:28 +08:00
|
|
|
# enable I2C
|
2017-04-26 23:56:36 +08:00
|
|
|
CONFIG_I2C=y
|
2017-04-27 19:35:28 +08:00
|
|
|
|
2017-12-29 03:01:28 +08:00
|
|
|
# enable SPI
|
2017-09-05 17:02:27 +08:00
|
|
|
CONFIG_SPI=y
|