Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Ken Rabold
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "cpu.h"
19#include "arduino_pinmap.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#define XTIMER_HZ (32768UL)
31
36#define LED0_PIN GPIO_PIN(0, 22) /* Red */
37#define LED1_PIN GPIO_PIN(0, 19) /* Green */
38#define LED2_PIN GPIO_PIN(0, 21) /* Blue */
39
40#define LED0_ON gpio_clear(LED0_PIN)
41#define LED0_OFF gpio_set(LED0_PIN)
42#define LED0_TOGGLE gpio_toggle(LED0_PIN)
43
44#define LED1_ON gpio_clear(LED1_PIN)
45#define LED1_OFF gpio_set(LED1_PIN)
46#define LED1_TOGGLE gpio_toggle(LED1_PIN)
47
48#define LED2_ON gpio_clear(LED2_PIN)
49#define LED2_OFF gpio_set(LED2_PIN)
50#define LED2_TOGGLE gpio_toggle(LED2_PIN)
52
57
58#ifdef __cplusplus
59}
60#endif
61
Compatibility wrapper for arduino_iomap.h.
void board_init_clock(void)
Initialize the board clock to use PLL and faster SPI access.