51 #define LED_GREEN1_GPIO_PORT GPIOB
54 #define LED_GREEN1_GPIO_PIN GPIO_PIN_13
57 #define LED_GREEN1_GPIO_ACTIVE_STATE GPIO_PIN_RESET
60 #define LED_GREEN1_GPIO_INACTIVE_STATE GPIO_PIN_SET
64 #define LED_GREEN2_GPIO_PORT GPIOA
67 #define LED_GREEN2_GPIO_PIN GPIO_PIN_5
70 #define LED_GREEN2_GPIO_ACTIVE_STATE GPIO_PIN_SET
73 #define LED_GREEN2_GPIO_INACTIVE_STATE GPIO_PIN_RESET
77 #define BUTTON_GPIO_PORT GPIOC
80 #define BUTTON_GPIO_PIN GPIO_PIN_13
83 #define BUTTON_GPIO_PRESSED_STATE GPIO_PIN_SET
86 #define SDMMC_INIT_MAX_TRIES 5U
88 #define SDMMC_IRQ_PRIORITY 1U
90 #define SDMMC_DMA_IRQ_PRIORITY 2U
92 #define SDMMC_TRANSFER_TIMEOUT 500U
96 #define SDMMC_GPIO_D0_PORT GPIOC
100 #define SDMMC_GPIO_D0_PIN GPIO_PIN_8
104 #define SDMMC_GPIO_D1_PORT GPIOC
108 #define SDMMC_GPIO_D1_PIN GPIO_PIN_9
112 #define SDMMC_GPIO_D2_PORT GPIOC
116 #define SDMMC_GPIO_D2_PIN GPIO_PIN_10
120 #define SDMMC_GPIO_D3_PORT GPIOC
124 #define SDMMC_GPIO_D3_PIN GPIO_PIN_11
128 #define SDMMC_GPIO_CLK_PORT GPIOC
132 #define SDMMC_GPIO_CLK_PIN GPIO_PIN_12
136 #define SDMMC_GPIO_CMD_PORT GPIOD
140 #define SDMMC_GPIO_CMD_PIN GPIO_PIN_2
144 #define SDMMC_GPIO_AF GPIO_AF12_SDMMC1
147 #define SYSTICK_IRQ_PRIORITY 0U
150 #define VCP_UART_BUFFER_SIZE 80U
152 #define VCP_UART_TX_TIMEOUT 100U
156 #define VCP_UART_INSTANCE USART2
159 #define VCP_UART_BAUDRATE 115200U
163 #define VCP_UART_GPIO_TX_PORT GPIOD
167 #define VCP_UART_GPIO_TX_PIN GPIO_PIN_6
171 #define VCP_UART_GPIO_RX_PORT GPIOA
175 #define VCP_UART_GPIO_RX_PIN GPIO_PIN_2
179 #define VCP_UART_GPIO_AF GPIO_AF7_USART2
void SetVectorTableLocation(const uint32_t address)
Set the vector table location to the specified address.
void BoardDeInit(void)
De-initialize the board hardware and peripherals.
void BoardInit(void)
Initialize the board hardware and peripherals.
This file includes the microcontroller-specific HAL header files.