You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: speeduino/board_avr2560.h
-7Lines changed: 0 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -32,13 +32,6 @@
32
32
voidjumpToBootloader(void);
33
33
uint8_tgetSystemTemp();
34
34
35
-
#if defined(TIMER5_MICROS)
36
-
/*#define micros() (((timer5_overflow_count << 16) + TCNT5) * 4) *///Fast version of micros() that uses the 4uS tick of timer5. See timers.ino for the overflow ISR of timer5
37
-
#definemillis() (ms_counter) //Replaces the standard millis() function with this macro. It is both faster and more accurate. See timers.ino for its counter increment.
38
-
staticinlineunsigned longmicros_safe(); //A version of micros() that is interrupt safe
39
-
#else
40
-
#definemicros_safe() micros() //If the timer5 method is not used, the micros_safe() macro is simply an alias for the normal micros()
41
-
#endif
42
35
#definepinIsReserved(pin) ( ((pin) == 0) ) //Forbidden pins like USB on other boards
Copy file name to clipboardExpand all lines: speeduino/board_same51.h
-7Lines changed: 0 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,6 @@
37
37
voidjumpToBootloader();
38
38
uint8_tgetSystemTemp();
39
39
40
-
#if defined(TIMER5_MICROS)
41
-
/*#define micros() (((timer5_overflow_count << 16) + TCNT5) * 4) *///Fast version of micros() that uses the 4uS tick of timer5. See timers.ino for the overflow ISR of timer5
42
-
#definemillis() (ms_counter) //Replaces the standard millis() function with this macro. It is both faster and more accurate. See timers.ino for its counter increment.
43
-
staticinlineunsigned longmicros_safe(); //A version of micros() that is interrupt safe
44
-
#else
45
-
#definemicros_safe() micros() //If the timer5 method is not used, the micros_safe() macro is simply an alias for the normal micros()
46
-
#endif
47
40
#definepinIsReserved(pin) ( ((pin) == 0) ) //Forbidden pins like USB on other boards
48
41
49
42
//Additional analog pins (These won't work without other changes)
Copy file name to clipboardExpand all lines: speeduino/board_stm32_official.h
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,6 @@
35
35
#defineCOMPARE_TYPE uint16_t
36
36
#defineSERIAL_BUFFER_SIZE 517 //Size of the serial buffer used by new comms protocol. For SD transfers this must be at least 512 + 1 (flag) + 4 (sector)
37
37
#defineFPU_MAX_SIZE 32 //Size of the FPU buffer. 0 means no FPU.
38
-
#definemicros_safe() micros() //timer5 method is not used on anything but AVR, the micros_safe() macro is simply an alias for the normal micros()
39
38
#defineTIMER_RESOLUTION 4
40
39
41
40
//Select one for EEPROM,the default is EEPROM emulation on internal flash.
if (abs(currentStatus.mapDOT) > configPage2.maeThresh)
347
347
{
348
348
activateMAPDOT = abs(currentStatus.mapDOT);
349
-
currentStatus.AEEndTime = micros_safe() + ((unsignedlong)configPage2.aeTime * 10000); //Set the time in the future where the enrichment will be turned off. taeTime is stored as mS / 10, so multiply it by 100 to get it in uS
349
+
currentStatus.AEEndTime = micros() + ((unsignedlong)configPage2.aeTime * 10000); //Set the time in the future where the enrichment will be turned off. taeTime is stored as mS / 10, so multiply it by 100 to get it in uS
350
350
//Check if the MAP rate of change is negative or positive. Negative means decelarion.
if (abs(currentStatus.tpsDOT) > configPage2.taeThresh)
413
413
{
414
414
activateTPSDOT = abs(currentStatus.tpsDOT);
415
-
currentStatus.AEEndTime = micros_safe() + ((unsignedlong)configPage2.aeTime * 10000); //Set the time in the future where the enrichment will be turned off. taeTime is stored as mS / 10, so multiply it by 100 to get it in uS
415
+
currentStatus.AEEndTime = micros() + ((unsignedlong)configPage2.aeTime * 10000); //Set the time in the future where the enrichment will be turned off. taeTime is stored as mS / 10, so multiply it by 100 to get it in uS
416
416
//Check if the TPS rate of change is negative or positive. Negative means decelarion.
0 commit comments