|
| 1 | +/* |
| 2 | + * Copyright (c) 2022 Raspberry Pi (Trading) Ltd. |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: BSD-3-Clause |
| 5 | + */ |
| 6 | + |
| 7 | +// ----------------------------------------------------- |
| 8 | +// NOTE: THIS HEADER IS ALSO INCLUDED BY ASSEMBLER SO |
| 9 | +// SHOULD ONLY CONSIST OF PREPROCESSOR DIRECTIVES |
| 10 | +// ----------------------------------------------------- |
| 11 | +// |
| 12 | +//------------------------------------------------------------------------------------------ |
| 13 | +// Board definition for the opendec02 open source dcc decoder |
| 14 | +// |
| 15 | +#ifndef _BOARDS_ILABS_OPENDEC02_H |
| 16 | +#define _BOARDS_ILABS_OPENDEC02_H |
| 17 | + |
| 18 | +// For board detection |
| 19 | +#define ILABS_OPENDEC02 |
| 20 | + |
| 21 | +// --- UART --- |
| 22 | +#ifndef PICO_DEFAULT_UART |
| 23 | +#define PICO_DEFAULT_UART 0 |
| 24 | +#endif |
| 25 | + |
| 26 | +#ifndef PICO_DEFAULT_UART_TX_PIN |
| 27 | +#define PICO_DEFAULT_UART_TX_PIN 0 |
| 28 | +#endif |
| 29 | + |
| 30 | +#ifndef PICO_DEFAULT_UART_RX_PIN |
| 31 | +#define PICO_DEFAULT_UART_RX_PIN 1 |
| 32 | +#endif |
| 33 | + |
| 34 | +// --- LED --- |
| 35 | +// Included so basic examples will work. |
| 36 | +#ifndef PICO_DEFAULT_LED_PIN |
| 37 | +#define PICO_DEFAULT_LED_PIN 15 |
| 38 | +#endif |
| 39 | + |
| 40 | +#ifndef PICO_DEFAULT_LED_PIN_INVERTED |
| 41 | +#define PICO_DEFAULT_LED_PIN_INVERTED 0 |
| 42 | +#endif |
| 43 | + |
| 44 | +// --- FLASH --- |
| 45 | +#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1 |
| 46 | + |
| 47 | +#ifndef PICO_FLASH_SPI_CLKDIV |
| 48 | +#define PICO_FLASH_SPI_CLKDIV 2 |
| 49 | +#endif |
| 50 | + |
| 51 | +#ifndef PICO_FLASH_SIZE_BYTES |
| 52 | +#define PICO_FLASH_SIZE_BYTES (8 * 1024 * 1024) |
| 53 | +#endif |
| 54 | + |
| 55 | +// All boards have B1 RP2040 |
| 56 | +#ifndef PICO_RP2040_B0_SUPPORTED |
| 57 | +#define PICO_RP2040_B0_SUPPORTED 0 |
| 58 | +#endif |
| 59 | + |
| 60 | +#endif |
0 commit comments