Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 INRIA
3 * SPDX-FileCopyrightText: 2016 Freie Universität Berlin
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
20
21#include "cpu.h"
22#include "periph_conf.h"
23#include "periph/gpio.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#define LED0_PIN GPIO_PIN(1, 18)
34#define LED1_PIN GPIO_PIN(1, 20)
35#define LED2_PIN GPIO_PIN(1, 21)
36#define LED3_PIN GPIO_PIN(1, 23)
37
38#define LED0_ON gpio_clear(LED0_PIN)
39#define LED0_OFF gpio_set(LED0_PIN)
40#define LED0_TOGGLE gpio_toggle(LED0_PIN)
41#define LED1_ON gpio_clear(LED1_PIN)
42#define LED1_OFF gpio_set(LED1_PIN)
43#define LED1_TOGGLE gpio_toggle(LED1_PIN)
44#define LED2_ON gpio_clear(LED2_PIN)
45#define LED2_OFF gpio_set(LED2_PIN)
46#define LED2_TOGGLE gpio_toggle(LED2_PIN)
47#define LED3_ON gpio_clear(LED3_PIN)
48#define LED3_OFF gpio_set(LED3_PIN)
49#define LED3_TOGGLE gpio_toggle(LED3_PIN)
51
52#ifdef __cplusplus
53}
54#endif
55
Peripheral MCU configuration for the Seeeduino Archo Pro board.
Low-level GPIO peripheral driver interface definitions.