Bluepill board

Support for the stm32f103c8 based bluepill board. More...

Detailed Description

Support for the stm32f103c8 based bluepill board.

This board can be bought very cheaply on sides like eBay or AliExpress. Although the MCU nominally has 64 KiB ROM, most of them have 128 KiB ROM. For more information see: http://wiki.stm32duino.com/index.php?title=Blue_Pill

Files

file  bluepill/include/board.h
 Peripheral MCU configuration for the bluepill board.
 
file  boards/bluepill/include/periph_conf.h
 Peripheral MCU configuration for the bluepill board.
 

Macros

#define UART_STDIO_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   GPIOC
 
#define LED0_PIN   GPIO_PIN(PORT_C, 13)
 
#define LED0_MASK   (1 << 13)
 
#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