Peripheral MCU configuration for the bluepill/blackpill board. More...
Peripheral MCU configuration for the bluepill/blackpill board.
Definition in file board_common.h.
Go to the source code of this file.
Macros | |
#define | STDIO_UART_DEV UART_DEV(1) |
Use the 2nd UART for STDIO on this board. | |
#define | STM32F1_DISABLE_JTAG |
Disable JTAG to allow pins being used as GPIOs. | |
Functions | |
void | board_init (void) |
Initialize board specific hardware, including clock, LEDs and std-IO. | |
Macros for controlling the on-board LED. | |
#define | LED0_PORT GPIOC |
GPIO-Port the LED is connected to. | |
#define | LED0_PORTNUM PORT_C |
GPIO Port number the LED is connected to. | |
#define | LED0_PINNUM (13) |
Pin number the LED is connected to. | |
#define | LED0_PIN GPIO_PIN(LED0_PORTNUM, LED0_PINNUM) |
GPIO-Pin the LED is connected to. | |
#define | LED0_MASK (1 << LED0_PINNUM) |
#define | LED0_ON (LED0_PORT->BSRR = (LED0_MASK << 16)) |
Turn LED0 on. | |
#define | LED0_OFF (LED0_PORT->BSRR = LED0_MASK) |
Turn LED0 off. | |
#define | LED0_TOGGLE (LED0_PORT->ODR ^= LED0_MASK) |
Toggle LED0. | |
xtimer configuration | |
#define | XTIMER_WIDTH (16) |
#define | XTIMER_BACKOFF (19) |