From dd9f513aa59e61051f8c3ab61a93cd17f7104b5e Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Fri, 17 Sep 2021 20:06:33 +0530 Subject: [PATCH] AP_HAL_ChibiOS: setup led control via lua script for HerePro --- libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat | 6 ++++-- .../hwdef/HerePro/scripts}/hereproled.lua | 0 2 files changed, 4 insertions(+), 2 deletions(-) rename libraries/{AP_Scripting/examples => AP_HAL_ChibiOS/hwdef/HerePro/scripts}/hereproled.lua (100%) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat index c4f86347d2..38cd352da9 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat @@ -25,8 +25,8 @@ FLASH_SIZE_KB 2048 # the H743 has 128k sectors, we leave 2 sectors for BL FLASH_BOOTLOADER_LOAD_KB 256 -PB15 LED_2 OUTPUT LOW -PB14 LED OUTPUT LOW +PB15 LED_SWITCH_2 OUTPUT HIGH +PB14 LED_SWITCH_1 OUTPUT HIGH # board voltage STM32_VDD 330U @@ -55,6 +55,8 @@ PA14 JTCK-SWCLK SWD define BUILD_DEFAULT_LED_TYPE Notify_LED_ProfiLED_SPI define NOTIFY_LED_LEN_DEFAULT 16 define CONFIGURE_PPS_PIN TRUE +define HAL_PERIPH_ENABLE_NOTIFY +define HAL_PERIPH_NOTIFY_WITHOUT_RCOUT FLASH_RESERVE_START_KB 256 diff --git a/libraries/AP_Scripting/examples/hereproled.lua b/libraries/AP_HAL_ChibiOS/hwdef/HerePro/scripts/hereproled.lua similarity index 100% rename from libraries/AP_Scripting/examples/hereproled.lua rename to libraries/AP_HAL_ChibiOS/hwdef/HerePro/scripts/hereproled.lua