modem stuff

This commit is contained in:
2021-02-19 21:21:08 +01:00
parent 12d8f9a9fe
commit 1dd4d35530
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");
}
@ -75,6 +78,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);