From a531c01889c408fc40bdf1e2e5867355bfacd49f Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 18 Nov 2024 19:48:21 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Update=20RP2040=20pins=20debuggi?= =?UTF-8?q?ng?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/HAL/RP2040/pinsDebug.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Marlin/src/HAL/RP2040/pinsDebug.h b/Marlin/src/HAL/RP2040/pinsDebug.h index 50d7391f92..964fb71086 100644 --- a/Marlin/src/HAL/RP2040/pinsDebug.h +++ b/Marlin/src/HAL/RP2040/pinsDebug.h @@ -112,7 +112,7 @@ uint8_t get_pin_mode(const pin_t Ard_num) { } -bool GET_PINMODE(const pin_t Ard_num) { +bool getValidPinMode(const pin_t Ard_num) { const uint8_t pin_mode = get_pin_mode(Ard_num); return pin_mode == MODE_PIN_OUTPUT || pin_mode == MODE_PIN_ALT; // assume all alt definitions are PWM } @@ -122,7 +122,7 @@ int8_t digital_pin_to_analog_pin(pin_t Ard_num) { return (Ard_num >= 0 && Ard_num < NUM_ANALOG_INPUTS) ? Ard_num : -1; } -bool IS_ANALOG(const pin_t Ard_num) { +bool isAnalogPin(const pin_t Ard_num) { return digital_pin_to_analog_pin(Ard_num) != -1; } @@ -131,7 +131,7 @@ bool is_digital(const pin_t x) { return pin_mode == MODE_PIN_INPUT || pin_mode == MODE_PIN_OUTPUT; } -void print_port(const pin_t Ard_num) { +void printPinPort(const pin_t Ard_num) { SERIAL_ECHOPGM("Pin: "); SERIAL_ECHO(Ard_num); } @@ -140,7 +140,7 @@ bool pwm_status(const pin_t Ard_num) { return get_pin_mode(Ard_num) == MODE_PIN_ALT; } -void pwm_details(const pin_t Ard_num) { +void printPinPWM(const pin_t Ard_num) { if (PWM_PIN(Ard_num)) { } }