Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2013-2014 INRIA
3 * SPDX-FileCopyrightText: 2015 Freie Universität Berlin
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
24
25#include "cpu.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
34#ifndef __MSP430F1611__
35#define __MSP430F1611__
36#endif
37
42#ifndef STDIO_UART_BAUDRATE
43#define STDIO_UART_BAUDRATE (9600)
44#endif
46
51#define CONFIG_ZTIMER_USEC_WIDTH 16
55#define CONFIG_ZTIMER_USEC_BASE_FREQ MHZ(1)
64#define CONFIG_ZTIMER_PERIPH_TIMER_FORCE_CONVERSION 1
66
71#define XTIMER_WIDTH (16)
72#define XTIMER_BACKOFF (40)
74
79#define LED0_PIN GPIO_PIN(4, 0)
80#define LED1_PIN GPIO_PIN(4, 1)
81#define LED2_PIN GPIO_PIN(4, 2)
82
83#define LED_OUT_REG P5OUT
84#define LED0_MASK (0x10)
85#define LED1_MASK (0x20)
86#define LED2_MASK (0x40)
87
88#define LED0_ON (LED_OUT_REG &=~LED0_MASK)
89#define LED0_OFF (LED_OUT_REG |= LED0_MASK)
90#define LED0_TOGGLE (LED_OUT_REG ^= LED0_MASK)
91
92#define LED1_ON (LED_OUT_REG &=~LED1_MASK)
93#define LED1_OFF (LED_OUT_REG |= LED1_MASK)
94#define LED1_TOGGLE (LED_OUT_REG ^= LED1_MASK)
95
96#define LED2_ON (LED_OUT_REG &=~LED2_MASK)
97#define LED2_OFF (LED_OUT_REG |= LED2_MASK)
98#define LED2_TOGGLE (LED_OUT_REG ^= LED2_MASK)
100
105#define CC2420_PARAM_SPI_CLK (SPI_CLK_1MHZ)
106#define CC2420_PARAM_CS GPIO_PIN(P4, 2)
107#define CC2420_PARAM_FIFO GPIO_PIN(P1, 3)
108#define CC2420_PARAM_FIFOP GPIO_PIN(P1, 0)
109#define CC2420_PARAM_CCA GPIO_PIN(P1, 4)
110#define CC2420_PARAM_SFD GPIO_PIN(P4, 1)
111#define CC2420_PARAM_VREFEN GPIO_PIN(P4, 5)
112#define CC2420_PARAM_RESET GPIO_PIN(P4, 6)
114
115#ifdef __cplusplus
116}
117#endif
118