The friendly Operating System for the Internet of Things
Nucleo-F302

Board specific files for the nucleo-f302 board. More...

Detailed Description

Files

file  nucleo-f302/include/board.h
 Board specific definitions for the nucleo-f302 board.
 
file  boards/nucleo-f302/include/periph_conf.h
 Peripheral MCU configuration for the nucleo-f302 board.
 

Macros

#define BTN_B1_PIN   GPIO_PIN(PORT_C, 13)
 User button.
 

Functions

void board_init (void)
 Initialize board specific hardware, including clock, LEDs and std-IO.
 
#define LED0_PIN   GPIO_PIN(PORT_B, 13)
 LED pin definitions and handlers.
 
#define LED0_MASK   (1 << 13)
 
#define LED0_ON   (GPIOB->BSRR = LED0_MASK)
 
#define LED0_OFF   (GPIOB->BSRR = (LED0_MASK << 16))
 
#define LED0_TOGGLE   (GPIOB->ODR ^= LED0_MASK)