Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2014 Freie Universität Berlin
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser General
5
* Public License v2.1. See the file LICENSE in the top level directory for more
6
* details.
7
*/
8
9
#pragma once
10
21
#include "cpu.h"
22
#include "
periph/gpio.h
"
23
#include "
cc2538_eui_primary.h
"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
33
#define LED0_PIN GPIO_PIN(2, 4)
34
#define LED1_PIN GPIO_PIN(2, 7)
35
#define LED2_PIN GPIO_PIN(2, 6)
36
#define LED3_PIN GPIO_PIN(2, 5)
37
38
#define LED_PORT GPIO_C
39
#define LED0_MASK (1 << 4)
40
#define LED1_MASK (1 << 7)
41
#define LED2_MASK (1 << 6)
42
#define LED3_MASK (1 << 5)
43
44
#define LED0_ON (LED_PORT->DATA |= LED0_MASK)
45
#define LED0_OFF (LED_PORT->DATA &= ~LED0_MASK)
46
#define LED0_TOGGLE (LED_PORT->DATA ^= LED0_MASK)
47
48
#define LED1_ON (LED_PORT->DATA |= LED1_MASK)
49
#define LED1_OFF (LED_PORT->DATA &= ~LED1_MASK)
50
#define LED1_TOGGLE (LED_PORT->DATA ^= LED1_MASK)
51
52
#define LED2_ON (LED_PORT->DATA |= LED2_MASK)
53
#define LED2_OFF (LED_PORT->DATA &= ~LED2_MASK)
54
#define LED2_TOGGLE (LED_PORT->DATA ^= LED2_MASK)
55
56
#define LED3_ON (LED_PORT->DATA |= LED3_MASK)
57
#define LED3_OFF (LED_PORT->DATA &= ~LED3_MASK)
58
#define LED3_TOGGLE (LED_PORT->DATA ^= LED3_MASK)
65
#define XTIMER_WIDTH (16)
66
#define XTIMER_BACKOFF (50)
67
#define XTIMER_ISR_BACKOFF (40)
74
#ifndef UPDATE_CCA
75
#define UPDATE_CCA (1)
76
#endif
77
78
#define CCA_BACKDOOR_ENABLE (1)
79
#define CCA_BACKDOOR_PORT_A_PIN (6)
80
#define CCA_BACKDOOR_ACTIVE_LEVEL (0)
87
#define CONFIG_CC2538_RF_OBS_SIG_0_PCX 5
/* PC5 */
88
#define CONFIG_CC2538_RF_OBS_SIG_1_PCX 6
/* PC6 */
89
#define CONFIG_CC2538_RF_OBS_SIG_2_PCX 7
/* PC7 */
92
#ifdef __cplusplus
93
}
/* end extern "C" */
94
#endif
95
cc2538_eui_primary.h
CC2538 EUI-64 provider.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Fri Jun 20 2025 21:02:35 by
1.9.1