Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2014 Freie Universität Berlin
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
17
18
#include "cpu.h"
19
#include "
periph/gpio.h
"
20
#include "
cc2538_eui_primary.h
"
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
30
#define LED0_PIN GPIO_PIN(2, 4)
31
#define LED1_PIN GPIO_PIN(2, 7)
32
#define LED2_PIN GPIO_PIN(2, 6)
33
#define LED3_PIN GPIO_PIN(2, 5)
34
35
#define LED_PORT GPIO_C
36
#define LED0_MASK (1 << 4)
37
#define LED1_MASK (1 << 7)
38
#define LED2_MASK (1 << 6)
39
#define LED3_MASK (1 << 5)
40
41
#define LED0_ON (LED_PORT->DATA |= LED0_MASK)
42
#define LED0_OFF (LED_PORT->DATA &= ~LED0_MASK)
43
#define LED0_TOGGLE (LED_PORT->DATA ^= LED0_MASK)
44
45
#define LED1_ON (LED_PORT->DATA |= LED1_MASK)
46
#define LED1_OFF (LED_PORT->DATA &= ~LED1_MASK)
47
#define LED1_TOGGLE (LED_PORT->DATA ^= LED1_MASK)
48
49
#define LED2_ON (LED_PORT->DATA |= LED2_MASK)
50
#define LED2_OFF (LED_PORT->DATA &= ~LED2_MASK)
51
#define LED2_TOGGLE (LED_PORT->DATA ^= LED2_MASK)
52
53
#define LED3_ON (LED_PORT->DATA |= LED3_MASK)
54
#define LED3_OFF (LED_PORT->DATA &= ~LED3_MASK)
55
#define LED3_TOGGLE (LED_PORT->DATA ^= LED3_MASK)
57
62
#define XTIMER_WIDTH (16)
63
#define XTIMER_BACKOFF (50)
64
#define XTIMER_ISR_BACKOFF (40)
66
71
#ifndef UPDATE_CCA
72
#define UPDATE_CCA (1)
73
#endif
74
75
#define CCA_BACKDOOR_ENABLE (1)
76
#define CCA_BACKDOOR_PORT_A_PIN (6)
77
#define CCA_BACKDOOR_ACTIVE_LEVEL (0)
79
84
#define CONFIG_CC2538_RF_OBS_SIG_0_PCX 5
/* PC5 */
85
#define CONFIG_CC2538_RF_OBS_SIG_1_PCX 6
/* PC6 */
86
#define CONFIG_CC2538_RF_OBS_SIG_2_PCX 7
/* PC7 */
88
89
#ifdef __cplusplus
90
}
/* end extern "C" */
91
#endif
92
cc2538_eui_primary.h
CC2538 EUI-64 provider.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Wed Aug 27 2025 20:40:39 by
1.13.2