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 RP2350 Launchpad. Additionally it
16// defines some macros for PSRAM usage.
17
18#ifndef RP2350_LAUNCHPAD_BOARD_H
19#define RP2350_LAUNCHPAD_BOARD_H
20
21#define PSRAM_CS_GPIO 8
22
23#define BC_UART_TX 26
24#define BC_UART_RX 27
25
26#define S1_GPIO 28
27#define S2_GPIO 29
28
29#define LED_RED_GPIO 38
30#define LED_RGB_GPIO 39
31#define LED_RGB_COUNT 8
32
33#define BATT_ADC 7
34
35// Use PSRAM without copying code/data or zeroing
36#define PSRAM __attribute__((section(".ps_noload")))
37
38// Use PSRAM and initialize with zeros
39#define PSRAM_BSS __attribute__((section(".ps_bss")))
40
41// Use PSRAM and copy code/data
42#define PSRAM_LOAD __attribute__((section(".ps_data")))
43
44#endif // RP2350_LAUNCHPAD_BOARD_H