Fix for SITL target

This commit is contained in:
blckmn 2017-06-19 06:35:40 +10:00
parent 7ad44e3712
commit 3cfcf8a4b3
4 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -45,6 +45,8 @@
#undef SCHEDULER_DELAY_LIMIT
#define SCHEDULER_DELAY_LIMIT 1
#define USE_FAKE_LED
#define ACC
#define USE_FAKE_ACC