The friendly Operating System for the Internet of Things
nucleo32-common/include/board_common.h File Reference

Common pin definitions and board configuration options. More...

Detailed Description

#include "cpu.h"
#include "periph_conf.h"
#include "arduino_pinmap.h"
+ Include dependency graph for nucleo32-common/include/board_common.h:

Go to the source code of this file.

Macros

Macros for controlling the on-board LED (LD3).
#define LED0_PIN   GPIO_PIN(PORT_B, 3)
 
#define LED0_MASK   (1 << 3)
 
#define LED0_ON   (GPIOB->BSRR = LED0_MASK)
 
#define LED0_OFF   (GPIOB->BSRR = (LED0_MASK << 16))
 
#define LED0_TOGGLE   (GPIOB->ODR ^= LED0_MASK)
 

Functions

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