Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-06-28 22:52:58 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-06-28 22:52:58 +0300
commitcc0598a528f1bdad375c7b07973aaf0037cda51f (patch)
treeaf0f6998fc328458f67c88cdde3d9f07a920de43 /src/RepRapFirmware.h
parentac7792d868136e371c640af1ec5484812a2f2065 (diff)
UARTs on 5LC now use separate Tx and Rx interrupt priorities
Also implemented temperature sensor on 5LC but disabled it due to chip errata
Diffstat (limited to 'src/RepRapFirmware.h')
-rw-r--r--src/RepRapFirmware.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/RepRapFirmware.h b/src/RepRapFirmware.h
index 5bb7529c..d67837c3 100644
--- a/src/RepRapFirmware.h
+++ b/src/RepRapFirmware.h
@@ -507,8 +507,10 @@ const FilePosition noFilePosition = 0xFFFFFFFF;
const uint32_t NvicPriorityWatchdog = 0; // the secondary watchdog has the highest priority
#if SAME5x
-const uint32_t NvicPriorityPanelDueUart = 3; // the SAME5x driver makes FreeRTOS calls
-const uint32_t NvicPriorityWiFiUart = 3; // UART used to receive debug data from the WiFi module
+const uint32_t NvicPriorityPanelDueUartRx = 1; // UART used to receive data from PanelDue or other serial input
+const uint32_t NvicPriorityPanelDueUartTx = 3; // the SAME5x driver makes FreeRTOS calls during transmission, so use a lower priority
+const uint32_t NvicPriorityWiFiUartRx = 2; // UART used to receive debug data from the WiFi module
+const uint32_t NvicPriorityWiFiUartTx = 3; // the SAME5x driver makes FreeRTOS calls during transmission, so use a lower priority
#else
const uint32_t NvicPriorityPanelDueUart = 1; // UART is highest to avoid character loss (it has only a 1-character receive buffer)
const uint32_t NvicPriorityWiFiUart = 2; // UART used to receive debug data from the WiFi module