board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2025 Tom Hert <git@annsann.eu>
3  * SPDX-FileCopyrightText: 2025 HAW Hamburg
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
19 #include "cpu.h"
20 #include "periph_conf.h"
21 
22 #include "periph/gpio.h"
23 
25 #define LED0_PIN_ID 25u
26 #define LED0_ON gpio_set(LED0_PIN_ID)
27 #define LED0_OFF gpio_clear(LED0_PIN_ID)
28 #define LED0_TOGGLE gpio_toggle(LED0_PIN_ID)
29 #define LED0_NAME "LED(Green)"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
36 void board_init(void);
37 
38 #ifdef __cplusplus
39 }
40 #endif
41 
Peripheral MCU configuration for the Zigduino board.
void board_init(void)
Initialize the board, called from the cpu startup code.
Low-level GPIO peripheral driver interface definitions.