board.h File Reference

Board specific definitions for the Microchip SAM 4S Xplained Pro board. More...

Detailed Description

Board specific definitions for the Microchip SAM 4S Xplained Pro board.

Author
Dylan Laduranty dylan.nosp@m..lad.nosp@m.urant.nosp@m.y@me.nosp@m.sotic.nosp@m..com

Definition in file board.h.

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

Go to the source code of this file.

ztimer configuration

#define CONFIG_ZTIMER_USEC_WIDTH   (16)
 

LED pin definitions and handlers

#define LED0_PIN   GPIO_PIN(PC, 23)
 
#define LED0_ON   (PIOC->PIO_CODR = PIO_PC23)
 
#define LED0_OFF   (PIOC->PIO_SODR = PIO_PC23)
 
#define LED0_TOGGLE   ((PIOC->PIO_ODSR & PIO_PC23) ? LED0_ON : LED0_OFF)
 

SW0 (Button) pin definitions

#define BTN0_PIN   GPIO_PIN(PA, 2)
 
#define BTN0_MODE   GPIO_IN_PU