Loading...
Searching...
No Matches
board.h File Reference

Pin definitions and board configuration options. More...

Detailed Description

Pin definitions and board configuration options.

Author
Hudson C. Dalpra dalpr.nosp@m.a.hc.nosp@m.d@gma.nosp@m.il.c.nosp@m.om

Definition in file board.h.

#include "board_nucleo.h"
#include "arduino_pinmap.h"
#include "stm32_leds.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_NUM   6
 
#define LED0_PORT   GPIO_PORT_C
 GPIO port of LED 3.
 
#define LED0_PORT_NUM   PORT_C
 

Macros for controlling the on-board button (B1).

Note
PF2 is shared with NRST so the behaviour depends on NRST_MODE. See boards/nucleo-g031k8/doc.md (Reset configuration).
#define BTN0_PIN   GPIO_PIN(PORT_F, 2)
 Button B1 pin.
 
#define BTN0_MODE   GPIO_IN_PU
 Button B1 mode (released = HIGH)
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Button B1 mode (released = HIGH)

Definition at line 42 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PORT_F, 2)

Button B1 pin.

Definition at line 41 of file board.h.

◆ LED0_PIN_NUM

#define LED0_PIN_NUM   6

Definition at line 29 of file board.h.

◆ LED0_PORT

#define LED0_PORT   GPIO_PORT_C

GPIO port of LED 3.

Definition at line 30 of file board.h.

◆ LED0_PORT_NUM

#define LED0_PORT_NUM   PORT_C

Definition at line 31 of file board.h.