Fixed some compilation issues

This commit is contained in:
Raphael Coeffic
2022-03-20 16:22:12 +01:00
parent 5fb369f052
commit e5c852ab37
17 changed files with 62 additions and 39 deletions
@@ -21,6 +21,10 @@
#include "mixer_scheduler.h"
#include "board.h"
#include "debug.h"
#include "heartbeat_driver.h"
#include "timers_driver.h"
#if defined(INTMODULE_HEARTBEAT_GPIO)
@@ -79,9 +83,7 @@ void stop_intmodule_heartbeat()
void check_intmodule_heartbeat()
{
if (EXTI_GetITStatus(INTMODULE_HEARTBEAT_EXTI_LINE) != RESET) {
#if !defined(INTMODULE_USART)
heartbeatCapture.timestamp = getTmr2MHz();
#endif
#if defined(DEBUG_LATENCY)
heartbeatCapture.count++;
#endif