Skip to content

Commit 5e7f7a1

Browse files
committed
Standardize pins count
Arduino framework doesn't force unsigned (checked in different boards). This also prevent undesired warnings in Marlin Firmware
1 parent 0b069c1 commit 5e7f7a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: variants/grand_central_m4/variant.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ extern "C"
5757
*----------------------------------------------------------------------------*/
5858

5959
// Number of pins defined in PinDescription array
60-
#define PINS_COUNT (94u)
61-
#define NUM_DIGITAL_PINS (53u)
62-
#define NUM_ANALOG_INPUTS (19u)
63-
#define NUM_ANALOG_OUTPUTS (2u)
60+
#define PINS_COUNT (94)
61+
#define NUM_DIGITAL_PINS (53)
62+
#define NUM_ANALOG_INPUTS (19)
63+
#define NUM_ANALOG_OUTPUTS (2)
6464
#define analogInputToDigitalPin(p) ((p < 8) ? 67 + (p) : (p < 16) ? 54 + (p) - 8 : (p < 18) ? 12 + (p) - 16 : (p == 18) ? 9 : -1)
6565

6666
#define digitalPinToPort(P) ( &(PORT->Group[g_APinDescription[P].ulPort]) )

0 commit comments

Comments
 (0)