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 Loci Controls Inc.
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
17
#include "cpu.h"
18
#include "
periph/gpio.h
"
19
#include "
cc2538_eui_primary.h
"
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
29
#define LED0_PIN GPIO_PIN(2, 0)
30
#define LED1_PIN GPIO_PIN(2, 1)
31
#define LED2_PIN GPIO_PIN(2, 2)
32
#define LED3_PIN GPIO_PIN(2, 3)
33
34
#define LED_PORT GPIO_C
35
#define LED0_BIT (1 << 0)
36
#define LED1_BIT (1 << 1)
37
#define LED2_BIT (1 << 2)
38
#define LED3_BIT (1 << 3)
40
#define LED0_ON (LED_PORT->DATA |= LED0_BIT)
41
#define LED0_OFF (LED_PORT->DATA &= ~LED0_BIT)
42
#define LED0_TOGGLE (LED_PORT->DATA ^= LED0_BIT)
43
44
#define LED1_ON (LED_PORT->DATA |= LED1_BIT)
45
#define LED1_OFF (LED_PORT->DATA &= ~LED1_BIT)
46
#define LED1_TOGGLE (LED_PORT->DATA ^= LED1_BIT)
47
48
#define LED2_ON (LED_PORT->DATA |= LED2_BIT)
49
#define LED2_OFF (LED_PORT->DATA &= ~LED2_BIT)
50
#define LED2_TOGGLE (LED_PORT->DATA ^= LED2_BIT)
51
52
#define LED3_ON (LED_PORT->DATA |= LED3_BIT)
53
#define LED3_OFF (LED_PORT->DATA &= ~LED3_BIT)
54
#define LED3_TOGGLE (LED_PORT->DATA ^= LED3_BIT)
61
#ifndef UPDATE_CCA
62
#define UPDATE_CCA 1
63
#endif
64
65
#define CCA_BACKDOOR_ENABLE 1
66
#define CCA_BACKDOOR_PORT_A_PIN 3
67
#define CCA_BACKDOOR_ACTIVE_LEVEL 0
74
#define XTIMER_WIDTH (16)
75
#define XTIMER_BACKOFF (50)
76
#define XTIMER_ISR_BACKOFF (40)
79
#ifdef __cplusplus
80
}
/* end extern "C" */
81
#endif
82
cc2538_eui_primary.h
CC2538 EUI-64 provider.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Thu Jul 24 2025 16:03:56 by
1.9.1