board.h File Reference

Board specific definitions for the STM32G0316-DISCO. More...

Detailed Description

Board specific definitions for the STM32G0316-DISCO.

Author
Dave VanKampen david.nosp@m..van.nosp@m.kampe.nosp@m.n@bi.nosp@m.ssell.nosp@m..com

Definition in file board.h.

#include "cpu.h"
#include "periph_conf.h"
#include "periph_cpu.h"
+ Include dependency graph for board.h:

Go to the source code of this file.

#define LED0_PIN   GPIO_PIN(PORT_A, 12)
 
#define LED0_MODE   GPIO_OUT
 
#define LED0_MASK   (1 << 12)
 
#define LED0_ON   (GPIOA->BSRR = LED0_MASK)
 
#define LED0_OFF   (GPIOA->BSRR = (LED0_MASK << 16))
 
#define LED0_TOGGLE   (GPIOA->ODR ^= LED0_MASK)
 
#define BTN0_PIN   GPIO_PIN(PORT_A, 0)
 
#define BTN0_MODE   GPIO_IN
 
void board_init (void)
 Initialize board specific hardware.