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) 2013, 2014 INRIA
3
* 2015 Freie Universität Berlin
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser
6
* General Public License v2.1. See the file LICENSE in the top level
7
* directory for more details.
8
*/
9
10
#pragma once
11
28
#include "cpu.h"
29
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
37
#ifndef __MSP430F1611__
38
#define __MSP430F1611__
39
#endif
40
45
#ifndef STDIO_UART_BAUDRATE
46
#define STDIO_UART_BAUDRATE (9600)
47
#endif
54
#define CONFIG_ZTIMER_USEC_WIDTH 16
58
#define CONFIG_ZTIMER_USEC_BASE_FREQ MHZ(1)
67
#define CONFIG_ZTIMER_PERIPH_TIMER_FORCE_CONVERSION 1
74
#define XTIMER_WIDTH (16)
75
#define XTIMER_BACKOFF (40)
82
#define LED0_PIN GPIO_PIN(4, 0)
83
#define LED1_PIN GPIO_PIN(4, 1)
84
#define LED2_PIN GPIO_PIN(4, 2)
85
86
#define LED_OUT_REG P5OUT
87
#define LED0_MASK (0x10)
88
#define LED1_MASK (0x20)
89
#define LED2_MASK (0x40)
90
91
#define LED0_ON (LED_OUT_REG &=~LED0_MASK)
92
#define LED0_OFF (LED_OUT_REG |= LED0_MASK)
93
#define LED0_TOGGLE (LED_OUT_REG ^= LED0_MASK)
94
95
#define LED1_ON (LED_OUT_REG &=~LED1_MASK)
96
#define LED1_OFF (LED_OUT_REG |= LED1_MASK)
97
#define LED1_TOGGLE (LED_OUT_REG ^= LED1_MASK)
98
99
#define LED2_ON (LED_OUT_REG &=~LED2_MASK)
100
#define LED2_OFF (LED_OUT_REG |= LED2_MASK)
101
#define LED2_TOGGLE (LED_OUT_REG ^= LED2_MASK)
108
#define CC2420_PARAM_SPI_CLK (SPI_CLK_1MHZ)
109
#define CC2420_PARAM_CS GPIO_PIN(P4, 2)
110
#define CC2420_PARAM_FIFO GPIO_PIN(P1, 3)
111
#define CC2420_PARAM_FIFOP GPIO_PIN(P1, 0)
112
#define CC2420_PARAM_CCA GPIO_PIN(P1, 4)
113
#define CC2420_PARAM_SFD GPIO_PIN(P4, 1)
114
#define CC2420_PARAM_VREFEN GPIO_PIN(P4, 5)
115
#define CC2420_PARAM_RESET GPIO_PIN(P4, 6)
118
#ifdef __cplusplus
119
}
120
#endif
121
Generated on Mon Jun 30 2025 14:58:00 by
1.9.1