board.h File Reference

Peripheral MCU configuration for the Black Pill board. More...

Detailed Description

+ This graph shows which files directly or indirectly include this file:

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.
 

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   GPIOB
 
#define LED0_PIN   GPIO_PIN(PORT_B, 12)
 
#define LED0_MASK   (1 << 12)
 
#define LED0_ON   (LED0_PORT->BSRR = (LED0_MASK << 16))
 
#define LED0_OFF   (LED0_PORT->BSRR = LED0_MASK)
 
#define LED0_TOGGLE   (LED0_PORT->ODR ^= LED0_MASK)
 

xtimer configuration

#define XTIMER_WIDTH   (16)
 
#define XTIMER_BACKOFF   5