modem stuff
This commit is contained in:
@ -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
12
cube/User/Src/modemCom.c
Normal file
@ -0,0 +1,12 @@
|
||||
#include <modemCom.h>
|
||||
#include <usart.h>
|
||||
|
||||
|
||||
|
||||
void modemTxCpltCallback(UART_HandleTypeDef *huart) {
|
||||
|
||||
}
|
||||
|
||||
void modemRxCpltCallback(UART_HandleTypeDef *huart) {
|
||||
|
||||
}
|
@ -3,7 +3,7 @@
|
||||
#include <utils.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <main.h>
|
||||
|
||||
|
||||
uint64_t networkSntpQuery() {
|
||||
|
Reference in New Issue
Block a user