Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2025 Mesotic SAS
3
* This file is subject to the terms and conditions of the GNU Lesser
4
* General Public License v2.1. See the file LICENSE in the top level
5
* directory for more details.
6
*/
7
8
#pragma once
9
21
#include "cpu.h"
22
#include "
periph_conf.h
"
23
#include "periph_cpu.h"
24
#include "
periph/gpio.h
"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
34
#define CONFIG_ZTIMER_USEC_WIDTH (16)
41
#define LED0_PIN GPIO_PIN(PC, 23)
42
43
#define LED0_ON (PIOC->PIO_CODR = PIO_PC23)
44
#define LED0_OFF (PIOC->PIO_SODR = PIO_PC23)
45
#define LED0_TOGGLE ((PIOC->PIO_ODSR & PIO_PC23) ? LED0_ON : LED0_OFF)
52
#define BTN0_PIN GPIO_PIN(PA, 2)
53
#define BTN0_MODE GPIO_IN_PU
56
#ifdef __cplusplus
57
}
58
#endif
59
periph_conf.h
Peripheral MCU configuration for the Zigduino board.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Fri Jun 20 2025 21:02:35 by
1.9.1