Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2020 Oppila Microsystems - http://www.oppila.in
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
15
16
#include "cpu.h"
17
#include "
periph/gpio.h
"
18
#include "
periph/spi.h
"
19
#include "
cc2538_eui_primary.h
"
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
29
#define LED0_PIN GPIO_PIN(3, 0)
30
#define LED1_PIN GPIO_PIN(3, 4)
31
32
#define LED0_MASK (1 << 0)
33
#define LED1_MASK (1 << 4)
34
35
#define LED0_ON (GPIO_D->DATA |= LED0_MASK)
36
#define LED0_OFF (GPIO_D->DATA &= ~LED0_MASK)
37
#define LED0_TOGGLE (GPIO_D->DATA ^= LED0_MASK)
38
39
#define LED1_ON (GPIO_B->DATA |= LED1_MASK)
40
#define LED1_OFF (GPIO_B->DATA &= ~LED1_MASK)
41
#define LED1_TOGGLE (GPIO_B->DATA ^= LED1_MASK)
42
43
#define LED_ALL_OFF LED0_OFF; \
44
LED1_OFF;
45
#define LED_ALL_ON LED0_ON; \
46
LED1_ON;
48
53
#define BTN0_PIN GPIO_PIN(1, 0)
54
#define BTN0_MODE GPIO_IN_PU
56
61
#ifndef UPDATE_CCA
62
#define UPDATE_CCA (1)
63
#endif
64
#define CCA_BACKDOOR_ENABLE (1)
65
#define CCA_BACKDOOR_PORT_A_PIN (3)
66
#define CCA_BACKDOOR_ACTIVE_LEVEL (0)
67
68
#define BOOT_PIN GPIO_PIN(0, CCA_BACKDOOR_PORT_A_PIN)
70
75
#define XTIMER_WIDTH (16)
76
#define XTIMER_BACKOFF (50)
77
#define XTIMER_ISR_BACKOFF (40)
79
84
#define INTERNAL_PERIPHERAL_VID (0x0451)
85
#define INTERNAL_PERIPHERAL_PID (0x16C8)
87
88
#ifdef __cplusplus
89
}
/* end extern "C" */
90
#endif
91
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 Wed Aug 27 2025 20:40:39 by
1.13.2