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: 2014 Freie Universität Berlin
3
* SPDX-FileCopyrightText: 2015 PHYTEC Messtechnik GmbH
4
* SPDX-License-Identifier: LGPL-2.1-only
5
*/
6
7
#pragma once
8
20
#include "cpu.h"
21
#include "
periph_conf.h
"
22
23
#ifdef __cplusplus
24
extern
"C"
25
{
26
#endif
27
32
#define LED0_PIN GPIO_PIN(PORT_D, 6)
33
#define LED1_PIN GPIO_PIN(PORT_D, 4)
34
#define LED2_PIN GPIO_PIN(PORT_A, 4)
35
36
#define LED0_MASK (1 << 6)
37
#define LED1_MASK (1 << 4)
38
#define LED2_MASK (1 << 4)
39
40
#define LED0_ON (GPIOD->PCOR = LED0_MASK)
41
#define LED0_OFF (GPIOD->PSOR = LED0_MASK)
42
#define LED0_TOGGLE (GPIOD->PTOR = LED0_MASK)
43
44
#define LED1_ON (GPIOD->PCOR = LED1_MASK)
45
#define LED1_OFF (GPIOD->PSOR = LED1_MASK)
46
#define LED1_TOGGLE (GPIOD->PTOR = LED1_MASK)
47
48
#define LED2_ON (GPIOA->PCOR = LED2_MASK)
49
#define LED2_OFF (GPIOA->PSOR = LED2_MASK)
50
#define LED2_TOGGLE (GPIOA->PTOR = LED2_MASK)
57
#define BTN0_PIN GPIO_PIN(PORT_D, 1)
58
#define BTN0_MODE GPIO_IN_PU
65
#define BTN1_PORT PORTC
66
#define BTN1_PIN GPIO_PIN(PORT_C, 6)
67
#define BTN1_MODE GPIO_IN
76
#define KW2XRF_PARAM_SPI SPI_DEV(1)
77
#define KW2XRF_PARAM_SPI_CLK (SPI_CLK_10MHZ)
78
#define KW2XRF_PARAM_CS GPIO_PIN(KW2XDRF_PORT, KW2XDRF_PCS0_PIN)
79
#define KW2XRF_PARAM_INT GPIO_PIN(KW2XDRF_PORT, KW2XDRF_IRQ_PIN)
80
#define KW2XRF_PARAM_RESET GPIO_PIN(KW2XDRF_IRQ_PIN, KW2XDRF_RST_PIN)
81
#define KW2XRF_SHARED_SPI (0)
89
#define TMP00X_PARAM_ADDR (0x41)
92
#ifdef __cplusplus
93
}
94
#endif
95
periph_conf.h
Peripheral MCU configuration for the Zigduino board.
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1