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
* 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
19
#ifndef BOARD_H
20
#define BOARD_H
21
22
#include "cpu.h"
23
#include "
periph_conf.h
"
24
#include "periph_cpu.h"
25
#include "
periph/gpio.h
"
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
35
#define CONFIG_ZTIMER_USEC_WIDTH (16)
42
#define LED0_PIN GPIO_PIN(PC, 23)
43
44
#define LED0_ON (PIOC->PIO_CODR = PIO_PC23)
45
#define LED0_OFF (PIOC->PIO_SODR = PIO_PC23)
46
#define LED0_TOGGLE ((PIOC->PIO_ODSR & PIO_PC23) ? LED0_ON : LED0_OFF)
53
#define BTN0_PIN GPIO_PIN(PA, 2)
54
#define BTN0_MODE GPIO_IN_PU
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
/* BOARD_H */
periph_conf.h
Peripheral MCU configuration for SAM4S Xplained pro.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Fri Feb 21 2025 13:51:06 by
1.12.0