board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2019 Mesotic SAS
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
21 #include "cpu.h"
22 #include "periph/gpio.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #define ATCA_DEVTYPE ATECC508A
33 #define ATCA_PARAM_I2C I2C_DEV(0)
40 #ifdef CPU_FAM_SAML11
41 #define _PORT PORT_SEC
42 #else
43 #define _PORT PORT
44 #endif
51 #define LED0_PIN GPIO_PIN(PA, 7)
52 
53 #define LED_PORT _PORT->Group[PA]
54 #define LED0_MASK (1 << 7)
55 
56 #define LED0_ON (LED_PORT.OUTCLR.reg = LED0_MASK)
57 #define LED0_OFF (LED_PORT.OUTSET.reg = LED0_MASK)
58 #define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
65 #define BTN0_PIN GPIO_PIN(PA, 27)
66 #define BTN0_MODE GPIO_IN_PU
73 #define XTIMER_BACKOFF (40)
76 #ifdef __cplusplus
77 }
78 #endif
79 
Low-level GPIO peripheral driver interface definitions.