Skip to content

Commit dca773f

Browse files
pdg137Paul Grayson
andauthored
Add board definition for upcoming Pololu 3pi+ 2040 Robot (#1259)
Co-authored-by: Paul Grayson <[email protected]>
1 parent 0b285af commit dca773f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2023 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+
#ifndef _POLOLU_3PI_2040_ROBOT_H
13+
#define _POLOLU_3PI_2040_ROBOT_H
14+
15+
// For board detection
16+
#define POLOLU_3PI_2040_ROBOT
17+
18+
#define PICO_DEFAULT_LED_PIN 25
19+
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
20+
#define PICO_FLASH_SPI_CLKDIV 2
21+
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
22+
23+
// All boards have at least the B1 revision
24+
#define PICO_RP2040_B0_SUPPORTED 0
25+
26+
#endif

0 commit comments

Comments
 (0)