blackpill/include/board.h¶
Peripheral MCU configuration for the Black Pill board.
-
LED0_PORT¶ 1
GPIOB
-
LED0_PIN¶ 1
GPIO_PIN(PORT_B, 12)
-
LED0_MASK¶ 1
(1 << 12)
-
LED0_ON¶ 1
(LED0_PORT->BSRR = (LED0_MASK << 16))
-
LED0_OFF¶ 1
(LED0_PORT->BSRR = LED0_MASK)
-
LED0_TOGGLE¶ 1
(LED0_PORT->ODR ^= LED0_MASK)
-
XTIMER_WIDTH¶ 1
(16)
-
XTIMER_BACKOFF¶ 1
5
-
STDIO_UART_DEV¶ Use the 2nd UART for STDIO on this board.
1
UART_DEV(1)
-
void
board_init(void)¶ Initialize board specific hardware, including clock, LEDs and std-IO.