Add Pimoroni board headers #3161
No reviewers
Labels
No labels
bazel
bluetooth
board settings
boot_stage2
bug
build
c++
can't reproduce
clang
clib-interface
cmsis
code cleanliness
code size
compiler version issues
cyw43_driver
debug
discussion
documentation
duplicate
dynamic_clock
elf2uf2
enhancement
errata
filesystem
flash layout
floating point
FreeRTOS
hardware_adc
hardware_claim
hardware_clocks
hardware_dma
hardware_exception
hardware_flash
hardware_gpio
hardware_i2c
hardware_irq
hardware_pio
hardware_pwm
hardware_rcp
hardware_rtc
hardware_spi
hardware_sync
hardware_uart
hardware_vreg
hardware_watchdog
hardware_xosc
help wanted
host
IAR
installation
invalid
linker scripts
lto
lwip
mbedtls
missing API
needs reporter detail
networking
newlib
newlib-multicore
non-c
non-cmake
non-gcc
openocd
orphan PR
OS integration
pico_async_context
pico_base
pico_binary_info
pico_flash
picolibc
pico_lwip
pico_malloc
pico_multicore
pico_printf
pico_runtime
pico_stdio
pico_stdio_usb
pico_sync
pico_time
pico_util
pioasm
port
question
review
review2
rtos interop
runtime init
static library
svd
test
tinyusb
vscode
wifi integration
wontfix
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-raspberrypi/pico-sdk!3161
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/pimoroni-boards"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add all the Pimoroni boards we've neglected to upstream for the last forever. Draft because there might be more, or I might have bungled this.
@ZodiusInfuser I did a full sweep of everything we're currently missing, and might have got a bit carried away. Let me know if any of these should be dropped.
@ -0,0 +1,199 @@/*Just to be completely unambiguous, it might be worth specifying all of these GPIOs? E.g.
(This might also help indicate "Don't use these GPIOs for anything else".)
@ -0,0 +1,199 @@/*The same as
PRESTO_LCD_D0_PIN? Is that right?@ -0,0 +1,94 @@/*Probably makes more sense to list the defines in name-order, rather than in value-order? I.e.
@ -0,0 +36,4 @@#define TUFTY2040_SDA_PIN 4#define TUFTY2040_SCL_PIN 5// 8 bit parallel display interface, data on GPIO 14 through 21See earlier comment 😉
@ -0,0 +1,199 @@/*Agreed. Explicit is better than implicit. Thank you! (specially when it's not obvious how many pins there are)
@ -0,0 +1,94 @@/*My head hurts either way but I think you're right!
@ -0,0 +36,4 @@#define TUFTY2040_SDA_PIN 4#define TUFTY2040_SCL_PIN 5// 8 bit parallel display interface, data on GPIO 14 through 21Thank you! Agreed.
@ZodiusInfuser do you have any thoughts on these? (Yukon and Tiny in particular, since those are your babies)
@ -0,0 +1,199 @@/*...in which case it's probably worth adding defines for GPIOs 17 and 18 too? These board-header files describe the hardware and don't care what the software-driver does or doesn't do 😉
I haven't had a chance to look at this yet, will do so tomorrow.
@Gadgetoid I've made some edits across the range if you wish to double check.
FYI; hurry, hurry as 2.3.1 is coming probably tomorrow (Friday)... so if you want this to make that and not just land in develop, then get your changes in, and hope @lurch blesses them!!
presses the button
I won’t be able to make any changes today but hopefully Chris’ll pick up any last minute fixes! 👀
@ -0,0 +23,4 @@// --- BOARD SPECIFIC ---// PCF85063a real time clock#define BADGER2350_RTC_I2C 0#define BADGER2350_RTC_I2C_ADDR 0x51For the other boards that have on-board devices connected to their I2C pins, maybe it'd be useful if their headers included the I2C addresses too? 🤔
(I won't let that stop the merging of this PR though)
Not directly related to this PR, but whilst adding some additional checks to the
check_board_header.pyscript (which still need to be tidied up before PRing), I spotted that https://github.com/raspberrypi/pico-sdk/blob/develop/src/boards/include/boards/pimoroni_pico_plus2_w_rp2350.h is missing a define forCYW43_PIN_WL_DYNAMIC, so maybe you'd like to squeeze that fix into this PR too? 😉Blessed 👍