board.h File Reference

This board can be bought very cheaply (< 1€) on sites like eBay or AliExpress. More...

Detailed Description

This board can be bought very cheaply (< 1€) on sites like eBay or AliExpress.

Support for the STM32F030F4 Demo Board

Pin definitions and board configuration options

Author
Benjamin Valentin benpi.nosp@m.cco@.nosp@m.googl.nosp@m.emai.nosp@m.l.com

Definition in file board.h.

Go to the source code of this file.

Functions

void board_init (void)
 Initialize board specific hardware, including clock, LEDs and std-IO.
 

Xtimer configuration

#define XTIMER_WIDTH   (16)
 

LED pin definitions and handlers

#define LED0_PORT   GPIOA
 
#define LED0_PIN   GPIO_PIN(PORT_A, 4)
 
#define LED0_MASK   (1 << 4)
 
#define LED0_ON   (LED0_PORT->BSRR = (LED0_MASK << 16))
 
#define LED0_OFF   (LED0_PORT->BSRR = (LED0_MASK << 0))
 
#define LED0_TOGGLE   (LED0_PORT->ODR ^= LED0_MASK)