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 INRIA
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
20
#ifndef BOARD_H
21
#define BOARD_H
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
31
#define XTIMER_WIDTH (16)
32
#define XTIMER_BACKOFF (19)
33
39
#define LED0_PIN GPIO_PIN(PORT_B, 9)
40
41
#define LED_PORT GPIOB
42
#define LED0_MASK (1 << 9)
43
44
#define LED0_ON (LED_PORT->BRR = LED0_MASK)
45
#define LED0_OFF (LED_PORT->BSRR = LED0_MASK)
46
#define LED0_TOGGLE (LED_PORT->ODR ^= LED0_MASK)
47
53
#define BTN0_PIN GPIO_PIN(PORT_C, 15)
54
#define BTN0_MODE GPIO_IN
55
64
#define DXL_DIR_PIN GPIO_PIN(PORT_B, 5)
65
69
#define STDIO_UART_DEV UART_DEV(0)
70
75
#ifndef STDIO_UART_BAUDRATE
76
#define STDIO_UART_BAUDRATE (921600UL)
77
#endif
78
83
void
board_init
(
void
);
84
85
#ifdef __cplusplus
86
}
87
#endif
88
89
#endif
/* BOARD_H */
90
board_init
void board_init(void)
Board level initialization.
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17