diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-06-15 13:39:44 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-06-15 13:39:44 +0300 |
commit | b382d69758f56afe21e08355438795a45f4bb40d (patch) | |
tree | 4a9dcdd72f0fc7e55c680d88f0508bf20f3dbcd6 /src/RepRapFirmware.h | |
parent | 97c229cd32c9e5c637ff2d69576f9218b70958e7 (diff) |
Fixed interrupt priority for TMC22xx UART
Diffstat (limited to 'src/RepRapFirmware.h')
-rw-r--r-- | src/RepRapFirmware.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/RepRapFirmware.h b/src/RepRapFirmware.h index 4f4ff360..8f5cc5f5 100644 --- a/src/RepRapFirmware.h +++ b/src/RepRapFirmware.h @@ -491,7 +491,7 @@ typedef uint32_t FilePosition; const FilePosition noFilePosition = 0xFFFFFFFF; //------------------------------------------------------------------------------------------------- -// Interrupt priorities - must be chosen with care! 0 is the highest priority, 15 is the lowest. +// Interrupt priorities - must be chosen with care! 0 is the highest priority, 7 or 15 is the lowest. // This interacts with FreeRTOS config constant configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY which is currently defined as 3 for the SAME70 and 5 for the SAM4x. // ISRs with better (numerically lower) priorities than this value cannot make FreeRTOS calls, but those interrupts wont be disabled even in FreeRTOS critical sections. @@ -505,6 +505,7 @@ const uint32_t NvicPriorityWiFiUart = 2; // UART used to receive debug data fro const uint32_t NvicPriorityMCan = 3; // CAN interface const uint32_t NvicPriorityPins = 3; // priority for GPIO pin interrupts - filament sensors must be higher than step +const uint32_t NvicPriorityDriversSerialTMC = 3; // USART or UART used to control and monitor the smart drivers const uint32_t NvicPriorityStep = 4; // step interrupt is next highest, it can preempt most other interrupts const uint32_t NvicPriorityUSB = 5; // USB interrupt const uint32_t NvicPriorityHSMCI = 5; // HSMCI command complete interrupt @@ -526,13 +527,13 @@ const uint32_t NvicPriorityWatchdog = 0; // the secondary watchdog has the high # endif const uint32_t NvicPriorityPanelDueUart = 1; // UART is highest to avoid character loss (it has only a 1-character receive buffer) -const uint32_t NvicPriorityDriversSerialTMC = 2; // USART or UART used to control and monitor the smart drivers # if defined(__LPC17xx__) constexpr uint32_t NvicPriorityTimerPWM = 4; constexpr uint32_t NvicPriorityTimerServo = 5; # endif +const uint32_t NvicPriorityDriversSerialTMC = 5; // USART or UART used to control and monitor the smart drivers const uint32_t NvicPriorityPins = 5; // priority for GPIO pin interrupts - filament sensors must be higher than step const uint32_t NvicPriorityStep = 6; // step interrupt is next highest, it can preempt most other interrupts const uint32_t NvicPriorityWiFiUart = 7; // UART used to receive debug data from the WiFi module |