YAHAL
Yet Another Hardware Abstraction Library
Loading...
Searching...
No Matches
include
board
rp2040-launchpad
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 RP2040 Launchpad.
16
//
17
#ifndef RP2040_LAUNCHPAD_BOARD_H
18
#define RP2040_LAUNCHPAD_BOARD_H
19
20
#define YAHAL_BOARD_RP2040_LAUNCHPAD
21
22
#define BC_UART_TX 0
23
#define BC_UART_RX 1
24
25
#define S1_GPIO 16
26
#define S2_GPIO 17
27
28
#define LED_RED_GPIO 13
29
#define LED_RGB_GPIO 29
30
#define LED_RGB_COUNT 8
31
32
#define ADC_MUX_GPIO 18
33
34
#define BATT_ADC 5
35
36
// Generic defines
37
#define COPY_TO_RAM __attribute__((section(".move_to_ram")))
38
#define NO_INLINE __attribute__((__noinline__))
39
#define FORCE_INLINE __attribute__((always_inline))
40
#define CONSTRUCTOR __attribute__((constructor))
41
42
#endif
// RP2040_LAUNCHPAD_BOARD_H
Generated by
1.12.0