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 "periph/gpio.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)