Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2025 Mesotic SAS
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
18
19
#include "cpu.h"
20
#include "
periph_conf.h
"
21
#include "periph_cpu.h"
22
#include "
periph/gpio.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
32
#define CONFIG_ZTIMER_USEC_WIDTH (16)
34
39
#define LED0_PIN GPIO_PIN(PC, 23)
40
41
#define LED0_ON (PIOC->PIO_CODR = PIO_PC23)
42
#define LED0_OFF (PIOC->PIO_SODR = PIO_PC23)
43
#define LED0_TOGGLE ((PIOC->PIO_ODSR & PIO_PC23) ? LED0_ON : LED0_OFF)
45
50
#define BTN0_PIN GPIO_PIN(PA, 2)
51
#define BTN0_MODE GPIO_IN_PU
53
54
#ifdef __cplusplus
55
}
56
#endif
57
periph_conf.h
Peripheral MCU configuration for SAM4S Xplained pro.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Wed Aug 27 2025 20:40:39 by
1.13.2