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);

12
cube/User/Src/modemCom.c Normal file
View File

@ -0,0 +1,12 @@
#include <modemCom.h>
#include <usart.h>
void modemTxCpltCallback(UART_HandleTypeDef *huart) {
}
void modemRxCpltCallback(UART_HandleTypeDef *huart) {
}

View File

@ -3,7 +3,7 @@
#include <utils.h>
#include <stdint.h>
#include <main.h>
uint64_t networkSntpQuery() {