board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2020 Bruno Chianca <brunobcf@gmail.com>
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #include "cpu.h"
19 #include "board_common.h"
20 #include "periph/gpio.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
31 #define LED0_PIN GPIO_PIN(0, 6)
32 
41 #define LED0_ON gpio_clear(LED0_PIN)
43 #define LED0_OFF gpio_set(LED0_PIN)
45 #define LED0_TOGGLE gpio_toggle(LED0_PIN)
46 
53 #define APA102_PARAM_LED_NUMOF (1)
54 #define APA102_PARAM_DATA_PIN GPIO_PIN(0, 8)
55 #define APA102_PARAM_CLK_PIN GPIO_PIN(1, 9)
63 #define BTN0_PIN GPIO_PIN(0, 29)
65 #define BTN0_MODE GPIO_IN_PU
68 #ifdef __cplusplus
69 }
70 #endif
71 
Low-level GPIO peripheral driver interface definitions.