Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.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
#include "cpu.h"
22
#include "board_common.h"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
32
#define LED0_PIN GPIO_PIN(3, 5)
33
#define LED1_PIN GPIO_PIN(3, 4)
34
#define LED2_PIN GPIO_PIN(3, 3)
35
36
#define LED0_MASK (1 << 5)
37
#define LED1_MASK (1 << 4)
38
#define LED2_MASK (1 << 3)
39
40
#define LED0_ON (GPIO_D->DATA |= LED0_MASK)
41
#define LED0_OFF (GPIO_D->DATA &= ~LED0_MASK)
42
#define LED0_TOGGLE (GPIO_D->DATA ^= LED0_MASK)
43
44
#define LED1_ON (GPIO_D->DATA |= LED1_MASK)
45
#define LED1_OFF (GPIO_D->DATA &= ~LED1_MASK)
46
#define LED1_TOGGLE (GPIO_D->DATA ^= LED1_MASK)
47
48
#define LED2_ON (GPIO_D->DATA |= LED2_MASK)
49
#define LED2_OFF (GPIO_D->DATA &= ~LED2_MASK)
50
#define LED2_TOGGLE (GPIO_D->DATA ^= LED2_MASK)
57
#define BTN0_PIN GPIO_PIN(0, 3)
58
#define BTN0_MODE GPIO_IN_PU
81
#define RF_SWITCH_GPIO GPIO_PD2
82
#define RF_SWITCH_SUB_GHZ gpio_set(RF_SWITCH_GPIO)
83
#define RF_SWITCH_2_4_GHZ gpio_clear(RF_SWITCH_GPIO)
84
#define RF_SWITCH_TOGGLE gpio_toggle(RF_SWITCH_GPIO)
91
#define SHUTDOWN_DONE_GPIO GPIO_PD0
92
#define SHUTDOWN_EN_GPIO GPIO_PD1
99
#define CC1200_SPI_DEV SSI0
100
#define CC1200_MOSI_GPIO GPIO_PB1
101
#define CC1200_MISO_GPIO GPIO_PB3
102
#define CC1200_SCLK_GPIO GPIO_PB2
103
#define CC1200_CSN_GPIO GPIO_PB5
104
#define CC1200_RESET_GPIO GPIO_PC7
105
#define CC1200_GPD0_GPIO GPIO_PB4
106
#define CC1200_GPD2_GPIO GPIO_PB0
109
#ifdef __cplusplus
110
}
/* end extern "C" */
111
#endif
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1