This commit is contained in:
2020-11-17 15:38:11 +01:00
parent 8e5ece822c
commit e3c16ef712
4 changed files with 199 additions and 157 deletions

View File

@ -6,6 +6,8 @@
#include <stdbool.h>
// Disabling this option is preferred. However, when debugging system hangs
// this option needs to be enabled.
// #define LOGGER_OUTPUT_BY_INTERRUPT
typedef enum {

View File

@ -35,7 +35,8 @@ typedef struct {
uint32_t errorCnt;
} t_mbusCommStats;
e_mbusCommRequestResult mbusCommRequest(t_mbusDevice *mbusDevice);
// e_mbusCommRequestResult mbusCommRequest(t_mbusDevice *mbusDevice);
void mbusCommInit();
void mbusCommEnable(bool enable);
void mbusCommTxCpltCallback(UART_HandleTypeDef *huart);
void mbusCommRxCpltCallback(UART_HandleTypeDef *huart);