Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 Franz Freitag, Justus Krebs, Nick Weiler
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
22#ifndef BOARD_H
23#define BOARD_H
24
25#include "cpu.h"
26#include "periph_conf.h"
27#include "periph/gpio.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
37#define LED_PORT PORT->Group[PA]
38
39#define LED0_PIN GPIO_PIN(PA, 18)
40#define LED0_MASK (1 << 18)
41#define LED0_NAME "LED(BLUE_RX)"
42
43#define LED0_OFF (LED_PORT.OUTSET.reg = LED0_MASK)
44#define LED0_ON (LED_PORT.OUTCLR.reg = LED0_MASK)
45#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
46
47#define LED1_PIN GPIO_PIN(PA, 19)
48#define LED1_MASK (1 << 19)
49#define LED1_NAME "LED(BLUE_TX)"
50
51#define LED1_OFF (LED_PORT.OUTSET.reg = LED1_MASK)
52#define LED1_ON (LED_PORT.OUTCLR.reg = LED1_MASK)
53#define LED1_TOGGLE (LED_PORT.OUTTGL.reg = LED1_MASK)
54
55#define LED2_PIN GPIO_PIN(PA, 17)
56#define LED2_MASK (1 << 17)
57#define LED2_NAME "LED(YELLOW_USER)"
58
59#define LED2_OFF (LED_PORT.OUTSET.reg = LED2_MASK)
60#define LED2_ON (LED_PORT.OUTCLR.reg = LED2_MASK)
61#define LED2_TOGGLE (LED_PORT.OUTTGL.reg = LED2_MASK)
68#define INTERNAL_PERIPHERAL_VID (0x239A)
69#define INTERNAL_PERIPHERAL_PID (0x0057)
72#ifdef __cplusplus
73}
74#endif
75
76#endif /* BOARD_H */
Native CPU peripheral configuration.
Low-level GPIO peripheral driver interface definitions.