feather-m0/include/board.h File Reference

Board specific configuration of the Adafruit Feather M0. More...

Detailed Description

Board specific configuration of the Adafruit Feather M0.

Board specific configuration for the Adafruit Feather M0

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file feather-m0/include/board.h.

#include "cpu.h"
#include "periph_conf.h"
#include "periph_cpu.h"
+ Include dependency graph for feather-m0/include/board.h:

Go to the source code of this file.

Macros

LED pin definitions and handlers
#define LED0_PIN   GPIO_PIN(PA, 17)
 
#define LED_PORT   PORT->Group[PA]
 
#define LED0_MASK   (1 << 17)
 
#define LED0_ON   (LED_PORT.OUTSET.reg = LED0_MASK)
 
#define LED0_OFF   (LED_PORT.OUTCLR.reg = LED0_MASK)
 
#define LED0_TOGGLE   (LED_PORT.OUTTGL.reg = LED0_MASK)
 

Functions

void board_init (void)
 Initialize board specific hardware, including clock, LEDs and std-IO.