Loading...
Searching...
No Matches
board_common.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Freie Universität Berlin
3 * SPDX-FileCopyrightText: 2015 Zolertia SL
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
21
22#include "cpu.h"
23#include "periph/gpio.h"
24#include "periph/spi.h"
25#include "cc2538_eui_primary.h"
26
27#ifdef __cplusplus
28 extern "C" {
29#endif
30
35#define LED_ALL_OFF LED0_OFF; \
36 LED1_OFF; \
37 LED2_OFF
38/* Output is color white */
39#define LED_ALL_ON LED0_ON; \
40 LED1_ON; \
41 LED2_ON
42
43/* Yellow */
44#define LED3_ON LED2_OFF; \
45 LED0_ON; \
46 LED1_ON
47#define LED3_OFF LED1_OFF; \
48 LED0_OFF
49#define LED3_TOGGLE LED1_TOGGLE; \
50 LED0_TOGGLE
51
52/* Purple */
53#define LED4_ON LED1_OFF; \
54 LED2_ON; \
55 LED0_ON
56#define LED4_OFF LED2_OFF; \
57 LED0_OFF
58#define LED4_TOGGLE LED2_TOGGLE; \
59 LED0_TOGGLE
61
66#ifndef UPDATE_CCA
67#define UPDATE_CCA (1)
68#endif
69#define CCA_BACKDOOR_ENABLE (1)
70#define CCA_BACKDOOR_PORT_A_PIN (3)
71#define CCA_BACKDOOR_ACTIVE_LEVEL (0)
73
78#define XTIMER_WIDTH (16)
79#define XTIMER_BACKOFF (50)
80#define XTIMER_ISR_BACKOFF (40)
82
83#ifdef __cplusplus
84} /* end extern "C" */
85#endif
CC2538 EUI-64 provider.
Low-level GPIO peripheral driver interface definitions.
Low-level SPI peripheral driver interface definition.