Loading...
Searching...
No Matches
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
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 54 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PA, 2)

Definition at line 53 of file board.h.

◆ CONFIG_ZTIMER_USEC_WIDTH

#define CONFIG_ZTIMER_USEC_WIDTH   (16)

Definition at line 35 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (PIOC->PIO_SODR = PIO_PC23)

Definition at line 45 of file board.h.

◆ LED0_ON

#define LED0_ON   (PIOC->PIO_CODR = PIO_PC23)

Definition at line 44 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PC, 23)

Definition at line 42 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   ((PIOC->PIO_ODSR & PIO_PC23) ? LED0_ON : LED0_OFF)

Definition at line 46 of file board.h.