board.h File Reference

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

Detailed Description

Board specific definitions for the Microchip SAM E54 Xplained Pro board.

Author
Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com

Definition in file board.h.

#include "cpu.h"
#include "at24mac.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.

Functions

static int _at24mac_get_eui48 (const void *arg, eui48_t *addr)
 AT24Mac provides a EUI-48.
 
void board_init (void)
 Initialize board specific hardware, including clock, LEDs and std-IO.
 

AT24MAC402 configuration

#define AT24MAC_PARAM_I2C_DEV   I2C_DEV(1)
 
#define AT24MAC_PARAM_I2C_ADDR   (0x5E)
 
#define AT24MAC_PARAM_TYPE   AT24MAC4XX
 
#define AT24CXXX_PARAM_ADDR   (0x56)
 

ATECC508A configuration

#define ATCA_PARAM_I2C   I2C_DEV(1)
 

EUI-48 sources on the board

AT24Mac is present on the board

#define EUI48_PROVIDER_FUNC   _at24mac_get_eui48
 

LED pin definitions and handlers

#define LED0_PIN   GPIO_PIN(PC, 18)
 
#define LED_PORT   PORT->Group[PC]
 
#define LED0_MASK   (1 << 18)
 
#define LED0_ON   (LED_PORT.OUTCLR.reg = LED0_MASK)
 
#define LED0_OFF   (LED_PORT.OUTSET.reg = LED0_MASK)
 
#define LED0_TOGGLE   (LED_PORT.OUTTGL.reg = LED0_MASK)
 

SW0 (Button) pin definitions

#define BTN0_PORT   PORT->Group[PB]
 
#define BTN0_PIN   GPIO_PIN(PB, 31)
 
#define BTN0_MODE   GPIO_IN_PU
 

Xtimer configuration

#define XTIMER_WIDTH   (32)
 
#define XTIMER_HZ   (1000000ul)