Fix for SITL target
This commit is contained in:
parent
7ad44e3712
commit
3cfcf8a4b3
3
Makefile
3
Makefile
|
@ -1016,7 +1016,8 @@ STM32F7xx_COMMON_SRC = \
|
|||
drivers/serial_uart_stm32f7xx.c \
|
||||
drivers/serial_uart_hal.c
|
||||
|
||||
F7EXCLUDES = drivers/bus_spi.c \
|
||||
F7EXCLUDES = \
|
||||
drivers/bus_spi.c \
|
||||
drivers/bus_i2c.c \
|
||||
drivers/timer.c \
|
||||
drivers/serial_uart.c
|
||||
|
|
|
@ -31,7 +31,7 @@ typedef struct statusLedConfig_s {
|
|||
PG_DECLARE(statusLedConfig_t, statusLedConfig);
|
||||
|
||||
// Helpful macros
|
||||
#ifdef UNIT_TEST
|
||||
#if defined(UNIT_TEST) || defined(USE_FAKE_LED)
|
||||
|
||||
#define LED0_TOGGLE NOOP
|
||||
#define LED0_OFF NOOP
|
||||
|
|
|
@ -223,7 +223,9 @@ void init(void)
|
|||
targetPreInit();
|
||||
#endif
|
||||
|
||||
#if !defined(UNIT_TEST) && !defined(USE_FAKE_LED)
|
||||
ledInit(statusLedConfig());
|
||||
#endif
|
||||
LED2_ON;
|
||||
|
||||
#ifdef USE_EXTI
|
||||
|
|
|
@ -45,6 +45,8 @@
|
|||
#undef SCHEDULER_DELAY_LIMIT
|
||||
#define SCHEDULER_DELAY_LIMIT 1
|
||||
|
||||
#define USE_FAKE_LED
|
||||
|
||||
#define ACC
|
||||
#define USE_FAKE_ACC
|
||||
|
||||
|
|
Loading…
Reference in New Issue