🧑‍💻 Fix pins debug / FastIO issues (#27261)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
ellensp 2024-07-14 16:33:11 +12:00 committed by GitHub
parent ad4de747ad
commit ce796cec97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 212 additions and 212 deletions

View file

@ -58,7 +58,7 @@ extern "C"{
#define PINS_COUNT 79
#define NUM_DIGITAL_PINS 66
#define NUM_ANALOG_INPUTS 12
#define analogInputToDigitalPin(p) ((p < 12) ? (p) + 54 : -1)
#define analogInputToDigitalPin(p) pin_t((p < 12) ? (p) + 54 : -1)
#define digitalPinToPort(P) ( g_APinDescription[P].pPort )
#define digitalPinToBitMask(P) ( g_APinDescription[P].ulPin )

View file

@ -27,7 +27,7 @@
#define NUM_DIGITAL_PINS 86
#define NUM_ANALOG_INPUTS 16
#define analogInputToDigitalPin(p) ((p < 16) ? (p) + 54 : -1)
#define analogInputToDigitalPin(p) pin_t((p < 16) ? (p) + 54 : -1)
#define digitalPinHasPWM(p) (((p) >= 2 && (p) <= 13) || ((p) >= 44 && (p)<= 46))
#define PIN_SPI_SS (53)