Merge branch 'master' of ssh://home.hottis.de:2922/wolutator/mains-frequency-counter-stm32 into master

This commit is contained in:
2021-02-22 10:47:36 +01:00
7 changed files with 49 additions and 4 deletions

View File

@ -17,6 +17,9 @@
#include <config.h>
#include <counter.h>
#if NETWORK_STACK == 2
#include <modemCom.h>
#endif
@ -43,7 +46,7 @@ void my_setup_2() {
networkInit();
counterInit();
// counterInit();
logMsg("Application running");
}
@ -76,6 +79,17 @@ void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) {
#endif
}
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) {
#if NETWORK_STACK == 2
if (huart == &modemUart) {
modemRxCpltCallback(huart);
}
#endif
}
void HAL_SPI_TxCpltCallback(SPI_HandleTypeDef *hspi) {
if (hspi == &eepromSpi) {
eepromSpiTxCpltCallback(hspi);