STM32 Bootloader
Customizable Bootloader for STM32 microcontrollers
board.h File Reference

This file contains the board-specific GPIO pin definitions, peripheral configurations, and initialization function prototypes for the STM32L496 Discovery board. More...

#include "mcu_hal.h"
#include <stdbool.h>

Go to the source code of this file.

Macros

#define LED_GREEN1_GPIO_PORT   GPIOB
 
#define LED_GREEN1_GPIO_PIN   GPIO_PIN_13
 
#define LED_GREEN1_GPIO_ACTIVE_STATE   GPIO_PIN_RESET
 
#define LED_GREEN1_GPIO_INACTIVE_STATE   GPIO_PIN_SET
 
#define LED_GREEN2_GPIO_PORT   GPIOA
 
#define LED_GREEN2_GPIO_PIN   GPIO_PIN_5
 
#define LED_GREEN2_GPIO_ACTIVE_STATE   GPIO_PIN_SET
 
#define LED_GREEN2_GPIO_INACTIVE_STATE   GPIO_PIN_RESET
 
#define BUTTON_GPIO_PORT   GPIOC
 
#define BUTTON_GPIO_PIN   GPIO_PIN_13
 
#define BUTTON_GPIO_PRESSED_STATE   GPIO_PIN_SET
 
#define SDMMC_INIT_MAX_TRIES   5U
 
#define SDMMC_IRQ_PRIORITY   1U
 
#define SDMMC_DMA_IRQ_PRIORITY   2U
 
#define SDMMC_TRANSFER_TIMEOUT   500U
 
#define SDMMC_GPIO_D0_PORT   GPIOC
 
#define SDMMC_GPIO_D0_PIN   GPIO_PIN_8
 
#define SDMMC_GPIO_D1_PORT   GPIOC
 
#define SDMMC_GPIO_D1_PIN   GPIO_PIN_9
 
#define SDMMC_GPIO_D2_PORT   GPIOC
 
#define SDMMC_GPIO_D2_PIN   GPIO_PIN_10
 
#define SDMMC_GPIO_D3_PORT   GPIOC
 
#define SDMMC_GPIO_D3_PIN   GPIO_PIN_11
 
#define SDMMC_GPIO_CLK_PORT   GPIOC
 
#define SDMMC_GPIO_CLK_PIN   GPIO_PIN_12
 
#define SDMMC_GPIO_CMD_PORT   GPIOD
 
#define SDMMC_GPIO_CMD_PIN   GPIO_PIN_2
 
#define SDMMC_GPIO_AF   GPIO_AF12_SDMMC1
 
#define SYSTICK_IRQ_PRIORITY   0U
 
#define VCP_UART_BUFFER_SIZE   80U
 
#define VCP_UART_TX_TIMEOUT   100U
 
#define VCP_UART_INSTANCE   USART2
 
#define VCP_UART_BAUDRATE   115200U
 
#define VCP_UART_GPIO_TX_PORT   GPIOD
 
#define VCP_UART_GPIO_TX_PIN   GPIO_PIN_6
 
#define VCP_UART_GPIO_RX_PORT   GPIOA
 
#define VCP_UART_GPIO_RX_PIN   GPIO_PIN_2
 
#define VCP_UART_GPIO_AF   GPIO_AF7_USART2
 

Functions

void BoardInit (void)
 Initialize the board hardware and peripherals. More...
 
void BoardDeInit (void)
 De-initialize the board hardware and peripherals. More...
 
void SetVectorTableLocation (const uint32_t address)
 Set the vector table location to the specified address. More...
 

Detailed Description

This file contains the board-specific GPIO pin definitions, peripheral configurations, and initialization function prototypes for the STM32L496 Discovery board.

STM32 Bootloader

Author
Akos Pasztor

Definition in file board.h.