Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
board_common.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2014 Freie Universität Berlin
3
* Copyright (C) 2015 Zolertia SL
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser General
6
* Public License v2.1. See the file LICENSE in the top level directory for more
7
* details.
8
*/
9
23
#ifndef BOARD_COMMON_H
24
#define BOARD_COMMON_H
25
26
#include "cpu.h"
27
#include "
periph/gpio.h
"
28
#include "
periph/spi.h
"
29
#include "
cc2538_eui_primary.h
"
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
39
#define LED_ALL_OFF LED0_OFF; \
40
LED1_OFF; \
41
LED2_OFF
42
/* Output is color white */
43
#define LED_ALL_ON LED0_ON; \
44
LED1_ON; \
45
LED2_ON
46
47
/* Yellow */
48
#define LED3_ON LED2_OFF; \
49
LED0_ON; \
50
LED1_ON
51
#define LED3_OFF LED1_OFF; \
52
LED0_OFF
53
#define LED3_TOGGLE LED1_TOGGLE; \
54
LED0_TOGGLE
55
56
/* Purple */
57
#define LED4_ON LED1_OFF; \
58
LED2_ON; \
59
LED0_ON
60
#define LED4_OFF LED2_OFF; \
61
LED0_OFF
62
#define LED4_TOGGLE LED2_TOGGLE; \
63
LED0_TOGGLE
70
#ifndef UPDATE_CCA
71
#define UPDATE_CCA (1)
72
#endif
73
#define CCA_BACKDOOR_ENABLE (1)
74
#define CCA_BACKDOOR_PORT_A_PIN (3)
75
#define CCA_BACKDOOR_ACTIVE_LEVEL (0)
82
#define XTIMER_WIDTH (16)
83
#define XTIMER_BACKOFF (50)
84
#define XTIMER_ISR_BACKOFF (40)
87
#ifdef __cplusplus
88
}
/* end extern "C" */
89
#endif
90
#endif
/* BOARD_COMMON_H */
cc2538_eui_primary.h
CC2538 EUI-64 provider.
gpio.h
Low-level GPIO peripheral driver interface definitions.
spi.h
Low-level SPI peripheral driver interface definition.
Generated on Sun Dec 22 2024 10:22:27 by
1.9.8