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

Board specific definitions for the GD32VF103C-START board. More...

Detailed Description

Board specific definitions for the GD32VF103C-START board.

Author
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@pos.nosp@m.teo..nosp@m.net

Definition in file board.h.

#include "board_common.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.

Button pin definitions

#define BTN0_PIN   GPIO_PIN(PORT_A, 0)
 
#define BTN0_MODE   GPIO_IN_PU
 
#define BTN0_INT_FLANK   GPIO_FALLING
 

LED (on-board) configuration

#define LED0_PIN   GPIO_PIN(PORT_A, 7)
 
#define LED0_MASK   (1 << 7)
 
#define LED0_ON   (GPIOA->BC = LED0_MASK)
 
#define LED0_OFF   (GPIOA->BOP = LED0_MASK)
 
#define LED0_TOGGLE   (GPIOA->OCTL ^= LED0_MASK)
 

Macro Definition Documentation

◆ BTN0_INT_FLANK

#define BTN0_INT_FLANK   GPIO_FALLING

Definition at line 34 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 33 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PORT_A, 0)

Definition at line 32 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 7)

Definition at line 42 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (GPIOA->BOP = LED0_MASK)

Definition at line 44 of file board.h.

◆ LED0_ON

#define LED0_ON   (GPIOA->BC = LED0_MASK)

Definition at line 43 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PORT_A, 7)

Definition at line 41 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (GPIOA->OCTL ^= LED0_MASK)

Definition at line 45 of file board.h.