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
19
20#include "periph/gpio.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#define XTIMER_HZ (32768UL)
32
37#define LED0_PIN GPIO_PIN(0, 22) /* Red */
38#define LED1_PIN GPIO_PIN(0, 19) /* Green */
39#define LED2_PIN GPIO_PIN(0, 21) /* Blue */
40
41#define LED0_ON gpio_clear(LED0_PIN)
42#define LED0_OFF gpio_set(LED0_PIN)
43#define LED0_TOGGLE gpio_toggle(LED0_PIN)
44
45#define LED1_ON gpio_clear(LED1_PIN)
46#define LED1_OFF gpio_set(LED1_PIN)
47#define LED1_TOGGLE gpio_toggle(LED1_PIN)
48
49#define LED2_ON gpio_clear(LED2_PIN)
50#define LED2_OFF gpio_set(LED2_PIN)
51#define LED2_TOGGLE gpio_toggle(LED2_PIN)
53
58
59#ifdef __cplusplus
60}
61#endif
62
Low-level GPIO peripheral driver interface definitions.
void board_init_clock(void)
Initialize the board clock to use PLL and faster SPI access.