From 132f15df25b206d92efd604cc4b796b6fae13b9e Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Thu, 21 Nov 2024 00:26:29 +0000 Subject: [PATCH] Update max PIN descriptions --- src/common/pico_stdlib_headers/include/pico/stdlib.h | 6 +++--- src/rp2_common/hardware_gpio/include/hardware/gpio.h | 10 +++++----- src/rp2_common/hardware_i2c/include/hardware/i2c.h | 4 ++-- src/rp2_common/hardware_spi/include/hardware/spi.h | 8 ++++---- src/rp2_common/hardware_uart/include/hardware/uart.h | 4 ++-- .../pico_bootsel_via_double_reset.c | 2 +- .../pico_cyw43_driver/include/pico/cyw43_driver.h | 12 ++++++------ .../pico_stdio_usb/include/pico/stdio_usb.h | 2 +- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/common/pico_stdlib_headers/include/pico/stdlib.h b/src/common/pico_stdlib_headers/include/pico/stdlib.h index 26ec026e5..5ebad89aa 100644 --- a/src/common/pico_stdlib_headers/include/pico/stdlib.h +++ b/src/common/pico_stdlib_headers/include/pico/stdlib.h @@ -57,15 +57,15 @@ extern "C" { #include "pico/stdio_semihosting.h" #endif -// PICO_CONFIG: PICO_DEFAULT_LED_PIN, Optionally define a pin that drives a regular LED on the board, default=Usually provided via board header, type=int, min=0, max=NUM_BANK0_GPIOS - 1, group=pico_stdlib +// PICO_CONFIG: PICO_DEFAULT_LED_PIN, Optionally define a pin that drives a regular LED on the board, default=Usually provided via board header, type=int, min=0, max=47 on RP2350B, 29 otherwise, group=pico_stdlib // PICO_CONFIG: PICO_DEFAULT_LED_PIN_INVERTED, 1 if LED is inverted or 0 if not, type=int, default=0, group=pico_stdlib #ifndef PICO_DEFAULT_LED_PIN_INVERTED #define PICO_DEFAULT_LED_PIN_INVERTED 0 #endif -// PICO_CONFIG: PICO_DEFAULT_WS2812_PIN, Optionally define a pin that controls data to a WS2812 compatible LED on the board, type=int, min=0, max=NUM_BANK0_GPIOS - 1, group=pico_stdlib -// PICO_CONFIG: PICO_DEFAULT_WS2812_POWER_PIN, Optionally define a pin that controls power to a WS2812 compatible LED on the board, type=int, min=0, max=NUM_BANK0_GPIOS - 1, group=pico_stdlib +// PICO_CONFIG: PICO_DEFAULT_WS2812_PIN, Optionally define a pin that controls data to a WS2812 compatible LED on the board, type=int, min=0, max=47 on RP2350B, 29 otherwise, group=pico_stdlib +// PICO_CONFIG: PICO_DEFAULT_WS2812_POWER_PIN, Optionally define a pin that controls power to a WS2812 compatible LED on the board, type=int, min=0, max=47 on RP2350B, 29 otherwise, group=pico_stdlib /*! \brief Set up the default UART and assign it to the default GPIOs * \ingroup pico_stdlib diff --git a/src/rp2_common/hardware_gpio/include/hardware/gpio.h b/src/rp2_common/hardware_gpio/include/hardware/gpio.h index fd1c7ddc6..795da8a4b 100644 --- a/src/rp2_common/hardware_gpio/include/hardware/gpio.h +++ b/src/rp2_common/hardware_gpio/include/hardware/gpio.h @@ -1403,12 +1403,12 @@ extern void gpio_debug_pins_init(void); #endif -// PICO_CONFIG: PICO_DEBUG_PIN_BASE, First pin to use for debug output (if enabled), min=0, max=NUM_BANK0_GPIOS - 1, default=19, group=hardware_gpio +// PICO_CONFIG: PICO_DEBUG_PIN_BASE, First pin to use for debug output (if enabled), min=0, max=47 on RP2350B, 29 otherwise, default=19, group=hardware_gpio #ifndef PICO_DEBUG_PIN_BASE #define PICO_DEBUG_PIN_BASE 19u #endif -// PICO_CONFIG: PICO_DEBUG_PIN_COUNT, Number of pins to use for debug output (if enabled), min=1, max=NUM_BANK0_GPIOS, default=3, group=hardware_gpio +// PICO_CONFIG: PICO_DEBUG_PIN_COUNT, Number of pins to use for debug output (if enabled), min=1, max=48 on RP2350B, 30 otherwise, default=3, group=hardware_gpio #ifndef PICO_DEBUG_PIN_COUNT #define PICO_DEBUG_PIN_COUNT 3u #endif @@ -1428,8 +1428,8 @@ extern void gpio_debug_pins_init(void); #define CU_SELECT_DEBUG_PINS(x) template<> inline bool __debug_pin_settings::enabled() { return true; }; #define DEBUG_PINS_ENABLED(p) (__debug_pin_settings

::enabled()) #endif -#define DEBUG_PINS_SET(p, v) if (DEBUG_PINS_ENABLED(p)) gpio_set_mask((unsigned)(v)<