Skip to content

Commit 6624098

Browse files
authored
Add board file for Pi-Plates MICROPi (#1487)
1 parent 41b4d3a commit 6624098

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/*
2+
* Copyright (c) 2020 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+
// Board definition for the Pi-Plates MICROPi processor board
13+
14+
#ifndef _BOARDS_PI_PLATES_MICROPI_H
15+
#define _BOARDS_PI_PLATES_MICROPI_H
16+
17+
// For board detection
18+
#define PI_PLATES_MICROPI
19+
20+
// --- UART ---
21+
#ifndef PICO_DEFAULT_UART
22+
#define PICO_DEFAULT_UART 0
23+
#endif
24+
#ifndef PICO_DEFAULT_UART_TX_PIN
25+
#define PICO_DEFAULT_UART_TX_PIN 0
26+
#endif
27+
#ifndef PICO_DEFAULT_UART_RX_PIN
28+
#define PICO_DEFAULT_UART_RX_PIN 1
29+
#endif
30+
31+
// --- LED ---
32+
#ifndef PICO_DEFAULT_LED_PIN
33+
#define PICO_DEFAULT_LED_PIN 25
34+
#endif
35+
// no PICO_DEFAULT_WS2812_PIN
36+
37+
// --- I2C ---
38+
#ifndef PICO_DEFAULT_I2C
39+
#define PICO_DEFAULT_I2C 0
40+
#endif
41+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
42+
#define PICO_DEFAULT_I2C_SDA_PIN 4
43+
#endif
44+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
45+
#define PICO_DEFAULT_I2C_SCL_PIN 5
46+
#endif
47+
48+
// --- SPI ---
49+
#ifndef PICO_DEFAULT_SPI
50+
#define PICO_DEFAULT_SPI 0
51+
#endif
52+
#ifndef PICO_DEFAULT_SPI_SCK_PIN
53+
#define PICO_DEFAULT_SPI_SCK_PIN 18
54+
#endif
55+
#ifndef PICO_DEFAULT_SPI_TX_PIN
56+
#define PICO_DEFAULT_SPI_TX_PIN 19
57+
#endif
58+
#ifndef PICO_DEFAULT_SPI_RX_PIN
59+
#define PICO_DEFAULT_SPI_RX_PIN 16
60+
#endif
61+
#ifndef PICO_DEFAULT_SPI_CSN_PIN
62+
#define PICO_DEFAULT_SPI_CSN_PIN 17
63+
#endif
64+
65+
// --- FLASH ---
66+
67+
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
68+
69+
#ifndef PICO_FLASH_SPI_CLKDIV
70+
#define PICO_FLASH_SPI_CLKDIV 2
71+
#endif
72+
73+
#ifndef PICO_FLASH_SIZE_BYTES
74+
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024) //change to (16 * 1024 * 1024) on final product
75+
#endif
76+
77+
78+
#ifndef PICO_RP2040_B0_SUPPORTED
79+
#define PICO_RP2040_B0_SUPPORTED 1
80+
#endif
81+
82+
83+
#endif

0 commit comments

Comments
 (0)