42 lines
1.0 KiB
C
42 lines
1.0 KiB
C
/* USER CODE BEGIN Header */
|
|
/**
|
|
******************************************************************************
|
|
* @file : bsp_config.h
|
|
* @brief : Board support package configuration file
|
|
******************************************************************************
|
|
*/
|
|
/* USER CODE END Header */
|
|
|
|
#ifndef BSP_CONFIG_H
|
|
#define BSP_CONFIG_H
|
|
|
|
#include "hal_gpio.h"
|
|
|
|
/**
|
|
* @brief Board name definition
|
|
*/
|
|
#define BOARD_NAME "STM32F407VET6"
|
|
|
|
/**
|
|
* @brief LED hardware configuration
|
|
*/
|
|
#define BSP_LED_PORT HAL_GPIO_PORT_A
|
|
#define BSP_LED_PIN HAL_GPIO_PIN_6
|
|
|
|
/**
|
|
* @brief Button hardware configuration (if available)
|
|
*/
|
|
/* #define BSP_BUTTON_PORT HAL_GPIO_PORT_X */
|
|
/* #define BSP_BUTTON_PIN HAL_GPIO_PIN_X */
|
|
|
|
/**
|
|
* @brief UART hardware configuration
|
|
*/
|
|
#define BSP_UART_INSTANCE USART1
|
|
#define BSP_UART_BAUDRATE 115200
|
|
#define BSP_UART_PARITY HAL_UART_PARITY_NONE
|
|
#define BSP_UART_STOPBITS HAL_UART_STOPBITS_1
|
|
#define BSP_UART_DATABITS HAL_UART_DATABITS_8
|
|
|
|
#endif /* BSP_CONFIG_H */
|