Horus fixes

This commit is contained in:
Raphael Coeffic
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent cf06efea87
commit f6565c6826
15 changed files with 41 additions and 12 deletions
@@ -132,13 +132,6 @@ void delay_ms(uint32_t count);
}
#endif
#if !defined(BOOT)
void watchdogSuspend(uint32_t timeout);
#define WATCHDOG_SUSPEND(x) watchdogSuspend(x)
#else
#define WATCHDOG_SUSPEND(...)
#endif
#define INIT_KEYS_PINS(GPIO) \
GPIO_InitStructure.GPIO_Pin = KEYS_ ## GPIO ## _PINS; \
GPIO_Init(GPIO, &GPIO_InitStructure)
@@ -35,4 +35,6 @@ void stop1msTimer();
static inline uint16_t getTmr2MHz() { return TIMER_2MHz_TIMER->CNT; }
void watchdogSuspend(uint32_t timeout);
#endif
@@ -30,6 +30,7 @@ extern "C" {
#include "usbd_desc.h"
#include "usbd_usr.h"
#include "usbd_hid_core.h"
#include "usbd_cdc_core.h"
}
#include "board.h"
@@ -28,6 +28,13 @@
#include <string.h>
#if !defined(BOOT)
#include "timers_driver.h"
#define WATCHDOG_SUSPEND(x) watchdogSuspend(x)
#else
#define WATCHDOG_SUSPEND(...)
#endif
#if defined(__cplusplus) && !defined(SIMU)
extern "C" {
#endif