Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2017 Inria
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
19
#include "cpu.h"
20
#include "
periph_conf.h
"
21
#include "periph_cpu.h"
22
#include "
periph/gpio.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
32
#define LED0_PIN GPIO_PIN(PA, 17)
33
34
#define LED_PORT PORT->Group[PA]
35
#define LED0_MASK (1 << 17)
36
37
#define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
38
#define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)
39
#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
46
#define ATWINC15X0_PARAM_SPI SPI_DEV(0)
47
#define ATWINC15X0_PARAM_SSN_PIN GPIO_PIN(0, 6)
48
#define ATWINC15X0_PARAM_RESET_PIN GPIO_PIN(0, 8)
49
#define ATWINC15X0_PARAM_CHIP_EN_PIN GPIO_PIN(0, 14)
50
#define ATWINC15X0_PARAM_IRQ_PIN GPIO_PIN(0, 21)
51
#define ATWINC15X0_PARAM_WAKE_PIN GPIO_UNDEF
58
#define SX127X_PARAM_SPI SPI_DEV(0)
59
#if defined(BOARD_FEATHER_M0_LORA)
60
#define SX127X_PARAM_SPI_NSS GPIO_PIN(PA, 6)
61
#define SX127X_PARAM_RESET GPIO_PIN(PA, 8)
62
#define SX127X_PARAM_DIO0 GPIO_PIN(PA, 9)
63
#endif
64
#define SX127X_PARAM_DIO1 GPIO_UNDEF
65
#define SX127X_PARAM_DIO2 GPIO_UNDEF
66
#define SX127X_PARAM_DIO3 GPIO_UNDEF
67
#define SX127X_PARAM_PASELECT (SX127X_PA_BOOST)
70
#ifdef __cplusplus
71
}
72
#endif
73
periph_conf.h
Peripheral MCU configuration for the Zigduino board.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1