Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Ken Rabold
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "periph/gpio.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
28#define XTIMER_HZ (32768UL)
30
35#define LED0_PIN GPIO_PIN(0, 22) /* Red */
36#define LED1_PIN GPIO_PIN(0, 19) /* Green */
37#define LED2_PIN GPIO_PIN(0, 21) /* Blue */
38
39#define LED0_ON gpio_clear(LED0_PIN)
40#define LED0_OFF gpio_set(LED0_PIN)
41#define LED0_TOGGLE gpio_toggle(LED0_PIN)
42
43#define LED1_ON gpio_clear(LED1_PIN)
44#define LED1_OFF gpio_set(LED1_PIN)
45#define LED1_TOGGLE gpio_toggle(LED1_PIN)
46
47#define LED2_ON gpio_clear(LED2_PIN)
48#define LED2_OFF gpio_set(LED2_PIN)
49#define LED2_TOGGLE gpio_toggle(LED2_PIN)
51
56
57#ifdef __cplusplus
58}
59#endif
60
Low-level GPIO peripheral driver interface definitions.
void board_init_clock(void)
Initialize the board clock to use PLL and faster SPI access.