board.h File Reference

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

Detailed Description

Common pin definitions and board configuration options.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file board.h.

#include "board_nucleo.h"
#include "arduino_pinmap.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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)