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

Board specific definitions for the pyboard board. More...

Detailed Description

Board specific definitions for the pyboard board.

Author
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e

Definition in file board.h.

#include <stdint.h>
#include "cpu.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.

LED pin definitions and handlers

#define LED0_PIN_NUM   4
 
#define LED0_PORT   GPIO_PORT_B
 GPIO port of LED 0.
 
#define LED0_PORT_NUM   PORT_B
 

User button pin configuration

#define BTN0_PIN   GPIO_PIN(PORT_B, 3)
 User button pin.
 
#define BTN0_MODE   GPIO_IN_PU
 User button pin mode.
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

User button pin mode.

Definition at line 46 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PORT_B, 3)

User button pin.

Definition at line 45 of file board.h.

◆ LED0_PIN_NUM

#define LED0_PIN_NUM   4

Definition at line 36 of file board.h.

◆ LED0_PORT

#define LED0_PORT   GPIO_PORT_B

GPIO port of LED 0.

Definition at line 37 of file board.h.

◆ LED0_PORT_NUM

#define LED0_PORT_NUM   PORT_B

Definition at line 38 of file board.h.