调整适配目录层级
This commit is contained in:
@ -306,6 +306,30 @@ static const bsp_adc_config_t stm32f407vet6_adcs[] = {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief STM32F407VET6 board LED configurations
|
||||
*/
|
||||
static const bsp_led_config_t stm32f407vet6_leds[] = {
|
||||
/* LED0 - PA6 */
|
||||
{
|
||||
.enable = 1,
|
||||
.port = HAL_GPIO_PORT_A,
|
||||
.pin = HAL_GPIO_PIN_6,
|
||||
.mode = HAL_GPIO_MODE_OUTPUT_PP,
|
||||
.speed = HAL_GPIO_SPEED_MEDIUM,
|
||||
.pull = HAL_GPIO_PULL_NO
|
||||
},
|
||||
/* LED1 - PA7 */
|
||||
{
|
||||
.enable = 1,
|
||||
.port = HAL_GPIO_PORT_A,
|
||||
.pin = HAL_GPIO_PIN_7,
|
||||
.mode = HAL_GPIO_MODE_OUTPUT_PP,
|
||||
.speed = HAL_GPIO_SPEED_MEDIUM,
|
||||
.pull = HAL_GPIO_PULL_NO
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief STM32F407VET6 board configuration
|
||||
*/
|
||||
@ -343,13 +367,10 @@ const bsp_board_config_t stm32f407vet6_board_config = {
|
||||
},
|
||||
|
||||
/* Peripheral configurations */
|
||||
.led = {
|
||||
.leds = {
|
||||
.enable = 1,
|
||||
.port = HAL_GPIO_PORT_E,
|
||||
.pin = HAL_GPIO_PIN_5,
|
||||
.mode = HAL_GPIO_MODE_OUTPUT_PP,
|
||||
.speed = HAL_GPIO_SPEED_MEDIUM,
|
||||
.pull = HAL_GPIO_PULL_NO
|
||||
.count = sizeof(stm32f407vet6_leds) / sizeof(bsp_led_config_t),
|
||||
.leds = stm32f407vet6_leds
|
||||
},
|
||||
.buttons = stm32f407vet6_buttons_config,
|
||||
.w25qxx = {
|
||||
|
||||
Reference in New Issue
Block a user