board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Loci Controls Inc.
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
20 #include "cpu.h"
21 #include "periph/gpio.h"
22 #include "cc2538_eui_primary.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #define LED0_PIN GPIO_PIN(2, 0)
33 #define LED1_PIN GPIO_PIN(2, 1)
34 #define LED2_PIN GPIO_PIN(2, 2)
35 #define LED3_PIN GPIO_PIN(2, 3)
36 
37 #define LED_PORT GPIO_C
38 #define LED0_BIT (1 << 0)
39 #define LED1_BIT (1 << 1)
40 #define LED2_BIT (1 << 2)
41 #define LED3_BIT (1 << 3)
43 #define LED0_ON (LED_PORT->DATA |= LED0_BIT)
44 #define LED0_OFF (LED_PORT->DATA &= ~LED0_BIT)
45 #define LED0_TOGGLE (LED_PORT->DATA ^= LED0_BIT)
46 
47 #define LED1_ON (LED_PORT->DATA |= LED1_BIT)
48 #define LED1_OFF (LED_PORT->DATA &= ~LED1_BIT)
49 #define LED1_TOGGLE (LED_PORT->DATA ^= LED1_BIT)
50 
51 #define LED2_ON (LED_PORT->DATA |= LED2_BIT)
52 #define LED2_OFF (LED_PORT->DATA &= ~LED2_BIT)
53 #define LED2_TOGGLE (LED_PORT->DATA ^= LED2_BIT)
54 
55 #define LED3_ON (LED_PORT->DATA |= LED3_BIT)
56 #define LED3_OFF (LED_PORT->DATA &= ~LED3_BIT)
57 #define LED3_TOGGLE (LED_PORT->DATA ^= LED3_BIT)
64 #ifndef UPDATE_CCA
65 #define UPDATE_CCA 1
66 #endif
67 
68 #define CCA_BACKDOOR_ENABLE 1
69 #define CCA_BACKDOOR_PORT_A_PIN 3
70 #define CCA_BACKDOOR_ACTIVE_LEVEL 0
77 #define XTIMER_WIDTH (16)
78 #define XTIMER_BACKOFF (50)
79 #define XTIMER_ISR_BACKOFF (40)
82 #ifdef __cplusplus
83 } /* end extern "C" */
84 #endif
85 
CC2538 EUI-64 provider.
Low-level GPIO peripheral driver interface definitions.