|
STM32 Bootloader
Customizable Bootloader for STM32 microcontrollers
|
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... | |
| static void | PinoutInit (void) |
| Initialize the board GPIO pinout including button, LEDs, UART, and SDMMC pins. | |
| static void | PinoutDeInit (void) |
| De-initialize all board GPIO pins and disable the GPIO port clocks. | |
| static void | SystemClockConfig (void) |
| Configure the system clock, PLL, and peripheral clocks. | |
| #define BUTTON_GPIO_PIN GPIO_PIN_13 |
| #define BUTTON_GPIO_PORT GPIOC |
| #define BUTTON_GPIO_PRESSED_STATE GPIO_PIN_SET |
| #define LED_GREEN1_GPIO_ACTIVE_STATE GPIO_PIN_RESET |
| #define LED_GREEN1_GPIO_INACTIVE_STATE GPIO_PIN_SET |
| #define LED_GREEN1_GPIO_PIN GPIO_PIN_13 |
| #define LED_GREEN1_GPIO_PORT GPIOB |
| #define LED_GREEN2_GPIO_ACTIVE_STATE GPIO_PIN_SET |
| #define LED_GREEN2_GPIO_INACTIVE_STATE GPIO_PIN_RESET |
| #define LED_GREEN2_GPIO_PIN GPIO_PIN_5 |
| #define LED_GREEN2_GPIO_PORT GPIOA |
| #define SDMMC_DMA_IRQ_PRIORITY 2U |
| #define SDMMC_GPIO_AF GPIO_AF12_SDMMC1 |
| #define SDMMC_GPIO_CLK_PIN GPIO_PIN_12 |
| #define SDMMC_GPIO_CLK_PORT GPIOC |
| #define SDMMC_GPIO_CMD_PIN GPIO_PIN_2 |
| #define SDMMC_GPIO_CMD_PORT GPIOD |
| #define SDMMC_GPIO_D0_PIN GPIO_PIN_8 |
| #define SDMMC_GPIO_D0_PORT GPIOC |
| #define SDMMC_GPIO_D1_PIN GPIO_PIN_9 |
| #define SDMMC_GPIO_D1_PORT GPIOC |
| #define SDMMC_GPIO_D2_PIN GPIO_PIN_10 |
| #define SDMMC_GPIO_D2_PORT GPIOC |
| #define SDMMC_GPIO_D3_PIN GPIO_PIN_11 |
| #define SDMMC_GPIO_D3_PORT GPIOC |
| #define SDMMC_INIT_MAX_TRIES 5U |
| #define SDMMC_TRANSFER_TIMEOUT 500U |
| #define VCP_UART_BAUDRATE 115200U |
| #define VCP_UART_BUFFER_SIZE 80U |
| #define VCP_UART_GPIO_AF GPIO_AF7_USART2 |
| #define VCP_UART_GPIO_RX_PIN GPIO_PIN_2 |
| #define VCP_UART_GPIO_RX_PORT GPIOA |
| #define VCP_UART_GPIO_TX_PIN GPIO_PIN_6 |
| #define VCP_UART_GPIO_TX_PORT GPIOD |
| #define VCP_UART_INSTANCE USART2 |
| #define VCP_UART_TX_TIMEOUT 100U |
| void BoardDeInit | ( | void | ) |
| void BoardInit | ( | void | ) |