debug works in interrupt mode now, needs some refactoring, MBUSYield stops the whole system
This commit is contained in:
@ -206,7 +206,6 @@ void my_loop() {
|
||||
show(DEBUG_1, TOGGLE);
|
||||
|
||||
schExec();
|
||||
logExec();
|
||||
}
|
||||
|
||||
void SYSTICK_Callback() {
|
||||
@ -214,7 +213,7 @@ void SYSTICK_Callback() {
|
||||
schUpdate();
|
||||
|
||||
// MQTT Interface
|
||||
MilliTimer_Handler();
|
||||
// MilliTimer_Handler();
|
||||
}
|
||||
|
||||
void HAL_GPIO_EXTI_Callback(uint16_t pin) {
|
||||
@ -232,12 +231,9 @@ void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc) {
|
||||
void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) {
|
||||
if (huart == &mbusUart) {
|
||||
mbusCommTxCpltCallback(huart);
|
||||
}
|
||||
#ifdef LOGGER_INTERRUPT
|
||||
else if (huart == &debugUart) {
|
||||
} else if (huart == &debugUart) {
|
||||
debugTxCpltCallback(huart);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) {
|
||||
|
Reference in New Issue
Block a user