mirror of
https://github.com/anklimov/lighthub
synced 2026-01-29 09:39:06 +03:00
decrease Timer0 int priority
This commit is contained in:
@@ -39,4 +39,5 @@
|
|||||||
-D CORS=\"*\"
|
-D CORS=\"*\"
|
||||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||||
-D MERCURY_ENABLE
|
-D MERCURY_ENABLE
|
||||||
#-D IPMODBUS
|
#-D IPMODBUS
|
||||||
|
-D CONFIG_CLEAN_PIN=2
|
||||||
@@ -2003,6 +2003,10 @@ int16_t attachTimer(double microseconds, timerCallback callback, const char* Tim
|
|||||||
dueTimerInterrupt.attachInterruptInterval(microseconds, callback);
|
dueTimerInterrupt.attachInterruptInterval(microseconds, callback);
|
||||||
timerNumber = dueTimerInterrupt.getTimerNumber();
|
timerNumber = dueTimerInterrupt.getTimerNumber();
|
||||||
debugSerial<<TimerName<<F(" attached to Timer(")<<timerNumber<<F(")")<<endl;
|
debugSerial<<TimerName<<F(" attached to Timer(")<<timerNumber<<F(")")<<endl;
|
||||||
|
//DueTimer.Timers[timerNumber].irq
|
||||||
|
NVIC_SetPriority(TC0_IRQn,2);
|
||||||
|
debugSerial << "USART0 prio:" << NVIC_GetPriority (USART0_IRQn)<< " TC0 prio:" << NVIC_GetPriority (TC0_IRQn)<<endl;
|
||||||
|
|
||||||
return timerNumber;
|
return timerNumber;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -2832,6 +2836,7 @@ configLocked--;
|
|||||||
|
|
||||||
|
|
||||||
void inputSetup(void) {
|
void inputSetup(void) {
|
||||||
|
infoSerial<<F("Initializing Inputs")<<endl;
|
||||||
if (!inputs) return;
|
if (!inputs) return;
|
||||||
configLocked++;
|
configLocked++;
|
||||||
aJsonObject *input = inputs->child;
|
aJsonObject *input = inputs->child;
|
||||||
|
|||||||
Reference in New Issue
Block a user