/* 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"
#include "hal_uart.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
 */
/* KEY0 - PE4, active low */
#define BSP_KEY0_PORT   HAL_GPIO_PORT_E
#define BSP_KEY0_PIN    HAL_GPIO_PIN_4

/* KEY1 - PE3, active low */
#define BSP_KEY1_PORT   HAL_GPIO_PORT_E
#define BSP_KEY1_PIN    HAL_GPIO_PIN_3

/* WK_UP - PA0, active high */
#define BSP_WKUP_PORT   HAL_GPIO_PORT_A
#define BSP_WKUP_PIN    HAL_GPIO_PIN_0

/**
 * @brief UART hardware configuration
 */
#define BSP_UART_INSTANCE BSP_UART_INSTANCE_1
#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 */
