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
10#pragma once
11
24
25#include "cpu.h"
26#include "periph/gpio.h"
27#include "periph/spi.h"
28#include "cc2538_eui_primary.h"
29
30#ifdef __cplusplus
31 extern "C" {
32#endif
33
38#define LED_ALL_OFF LED0_OFF; \
39 LED1_OFF; \
40 LED2_OFF
41/* Output is color white */
42#define LED_ALL_ON LED0_ON; \
43 LED1_ON; \
44 LED2_ON
45
46/* Yellow */
47#define LED3_ON LED2_OFF; \
48 LED0_ON; \
49 LED1_ON
50#define LED3_OFF LED1_OFF; \
51 LED0_OFF
52#define LED3_TOGGLE LED1_TOGGLE; \
53 LED0_TOGGLE
54
55/* Purple */
56#define LED4_ON LED1_OFF; \
57 LED2_ON; \
58 LED0_ON
59#define LED4_OFF LED2_OFF; \
60 LED0_OFF
61#define LED4_TOGGLE LED2_TOGGLE; \
62 LED0_TOGGLE
64
69#ifndef UPDATE_CCA
70#define UPDATE_CCA (1)
71#endif
72#define CCA_BACKDOOR_ENABLE (1)
73#define CCA_BACKDOOR_PORT_A_PIN (3)
74#define CCA_BACKDOOR_ACTIVE_LEVEL (0)
76
81#define XTIMER_WIDTH (16)
82#define XTIMER_BACKOFF (50)
83#define XTIMER_ISR_BACKOFF (40)
85
86#ifdef __cplusplus
87} /* end extern "C" */
88#endif
CC2538 EUI-64 provider.
Low-level GPIO peripheral driver interface definitions.
Low-level SPI peripheral driver interface definition.