diff --git a/speeduino/board_avr2560.h b/speeduino/board_avr2560.h index c54f916b..936341b3 100644 --- a/speeduino/board_avr2560.h +++ b/speeduino/board_avr2560.h @@ -10,6 +10,7 @@ * General */ #define PORT_TYPE uint8_t //Size of the port variables (Eg inj1_pin_port). + #define PINMAKS_TYPE uint8_t void initBoard(); uint16_t freeRam(); diff --git a/speeduino/board_stm32.h b/speeduino/board_stm32.h index 8e062025..4ac36a28 100644 --- a/speeduino/board_stm32.h +++ b/speeduino/board_stm32.h @@ -6,7 +6,8 @@ *********************************************************************************************************** * General */ - #define PORT_TYPE uint8_t + #define PORT_TYPE uint32_t + #define PINMAKS_TYPE uint32_t #define micros_safe() micros() //timer5 method is not used on anything but AVR, the micros_safe() macro is simply an alias for the normal micros() #define USE_SERIAL3 void initBoard(); diff --git a/speeduino/board_teensy35.h b/speeduino/board_teensy35.h index 280aa69e..f5e26a27 100644 --- a/speeduino/board_teensy35.h +++ b/speeduino/board_teensy35.h @@ -9,6 +9,7 @@ void initBoard(); uint16_t freeRam(); #define PORT_TYPE uint8_t //Size of the port variables + #define PINMAKS_TYPE uint8_t #define BOARD_DIGITAL_GPIO_PINS 34 #define BOARD_NR_GPIO_PINS 34 #define USE_SERIAL3 diff --git a/speeduino/board_template.h b/speeduino/board_template.h index 7c9374e6..dbe057be 100644 --- a/speeduino/board_template.h +++ b/speeduino/board_template.h @@ -7,6 +7,7 @@ * General */ #define PORT_TYPE uint32_t //Size of the port variables (Eg inj1_pin_port). Most systems use a byte, but SAMD21 and possibly others are a 32-bit unsigned int + #define PINMAKS_TYPE uint32_t #define BOARD_NR_GPIO_PINS 52 //Not sure this is correct #define BOARD_DIGITAL_GPIO_PINS 52 //Pretty sure this isn't right #define micros_safe() micros() //timer5 method is not used on anything but AVR, the micros_safe() macro is simply an alias for the normal micros()