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 
20 #include "cpu.h"
21 #include "arduino_pinmap.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 #define XTIMER_HZ (32768UL)
38 #define LED0_PIN GPIO_PIN(0, 22) /* Red */
39 #define LED1_PIN GPIO_PIN(0, 19) /* Green */
40 #define LED2_PIN GPIO_PIN(0, 21) /* Blue */
41 
42 #define LED0_ON gpio_clear(LED0_PIN)
43 #define LED0_OFF gpio_set(LED0_PIN)
44 #define LED0_TOGGLE gpio_toggle(LED0_PIN)
45 
46 #define LED1_ON gpio_clear(LED1_PIN)
47 #define LED1_OFF gpio_set(LED1_PIN)
48 #define LED1_TOGGLE gpio_toggle(LED1_PIN)
49 
50 #define LED2_ON gpio_clear(LED2_PIN)
51 #define LED2_OFF gpio_set(LED2_PIN)
52 #define LED2_TOGGLE gpio_toggle(LED2_PIN)
58 void board_init_clock(void);
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
Compatibility wrapper for arduino_iomap.h.
void board_init_clock(void)
Initialize the board clock to use PLL and faster SPI access.