board.h File Reference

Support for the STM32F030F4 Demo Board. More...

Detailed Description

Support for the STM32F030F4 Demo Board.

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

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)