Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 DAI Labor Technische Universität Berlin
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser General
5
* Public License v2.1. See the file LICENSE in the top level directory for more
6
* details.
7
*/
8
9
#pragma once
10
22
#include "cpu.h"
23
#include "board_common.h"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
33
#define LED0_PIN GPIO_PIN(PORT_D, 5)
34
#define LED0_MASK (1 << 5)
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_PIN GPIO_PIN(PORT_D, 4)
40
#define LED1_MASK (1 << 4)
41
#define LED1_ON (GPIO_D->DATA |= LED1_MASK)
42
#define LED1_OFF (GPIO_D->DATA &= ~LED1_MASK)
43
#define LED1_TOGGLE (GPIO_D->DATA ^= LED1_MASK)
44
45
#define LED2_PIN GPIO_PIN(PORT_D, 3)
46
#define LED2_MASK (1 << 3)
47
#define LED2_ON (GPIO_D->DATA |= LED2_MASK)
48
#define LED2_OFF (GPIO_D->DATA &= ~LED2_MASK)
49
#define LED2_TOGGLE (GPIO_D->DATA ^= LED2_MASK)
56
#define BTN0_PIN GPIO_PIN(PORT_A, 3)
57
#define BTN0_MODE GPIO_IN_PU
64
#define CC1200_SPI_DEV SSI0
65
#define CC1200_MOSI_GPIO GPIO_PIN(PORT_B, 1)
66
#define CC1200_MISO_GPIO GPIO_PIN(PORT_B, 3)
67
#define CC1200_SCLK_GPIO GPIO_PIN(PORT_B, 2)
68
#define CC1200_CSN_GPIO GPIO_PIN(PORT_B, 5)
69
#define CC1200_RESET_GPIO GPIO_PIN(PORT_C, 7)
70
#define CC1200_GPD0_GPIO GPIO_PIN(PORT_B, 4)
71
#define CC1200_GPD2_GPIO GPIO_PIN(PORT_B, 0)
74
#ifdef __cplusplus
75
}
/* end extern "C" */
76
#endif
77
Generated on Fri Jun 20 2025 21:02:35 by
1.9.1