stm32f0discovery/include/board.h

Board specific definitions for the STM32F0Discovery evaluation board.

LED0_PIN
1
GPIO_PIN(PORT_C, 9)
LED1_PIN
1
GPIO_PIN(PORT_C, 8)
LED_PORT
1
GPIOC
LED0_MASK
1
(1 << 9)
LED1_MASK
1
(1 << 8)
LED0_ON
1
(LED_PORT->BSRR = LED0_MASK)
LED0_OFF
1
(LED_PORT->BRR  = LED0_MASK)
LED0_TOGGLE
1
(LED_PORT->ODR ^= LED0_MASK)
LED1_ON
1
(LED_PORT->BSRR = LED1_MASK)
LED1_OFF
1
(LED_PORT->BRR  = LED1_MASK)
LED1_TOGGLE
1
(LED_PORT->ODR ^= LED1_MASK)
BTN0_PIN
1
GPIO_PIN(PORT_A, 0)
BTN0_MODE
1
GPIO_IN
void board_init(void)

Initialize board specific hardware, including clock, LEDs and std-IO.