YAHAL
Yet Another Hardware Abstraction Library
Loading...
Searching...
No Matches
board.h
1// ---------------------------------------------
2// This file is part of
3// _ _ __ _ _ __ __
4// ( \/ ) /__\ ( )_( ) /__\ ( )
5// \ / /(__)\ ) _ ( /(__)\ )(__
6// (__)(__)(__)(_) (_)(__)(__)(____)
7//
8// Yet Another HW Abstraction Library
9// Copyright (C) Andreas Terstegge
10// BSD Licensed (see file LICENSE)
11//
12// ---------------------------------------------
13//
14// This file defines the hardware components
15// on the RP2xxx Launchpad Probe.
16//
17#ifndef RP2xxx_LAUNCHPAD_PROBE_BOARD_H
18#define RP2xxx_LAUNCHPAD_PROBE_BOARD_H
19
20#define YAHAL_BOARD_RP2xxx_LAUNCHPAD_PROBE
21
22// The BC UART is available on a (non-populated) header.
23#define BC_UART_TX 0
24#define BC_UART_RX 1
25
26// The LEDs for UART RX/TX and SWD activity
27#define LED_RED_GPIO 4
28#define LED_GREEN_GPIO 3
29#define LED_BLUE_GPIO 2
30
31// The SWD signals
32#define SWCLK_GPIO 6
33#define SWDIO_GPIO 7
34
35// The UART interface to the target MCU
36#define TARGET_UART_TX 8
37#define TARGET_UART_RX 9
38
39// Generic defines
40#define COPY_TO_RAM __attribute__((section(".move_to_ram")))
41#define NO_INLINE __attribute__((__noinline__))
42#define FORCE_INLINE __attribute__((always_inline))
43#define CONSTRUCTOR __attribute__((constructor))
44
45#endif // RP2xxx_LAUNCHPAD_PROBE_BOARD_H