1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

fix led strip for h7 (#12890) (#12976)

* fix led strip for h7 (#12890)

* fix led strip for h7

* account for cloud build custom defines

* remove unused code

* Fix per review

---------

Co-authored-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
This commit is contained in:
Mark Haslinghuis 2023-08-06 10:07:29 +02:00 committed by GitHub
parent c8e6124300
commit 96ffb3aa3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 3 deletions

View file

@ -59,8 +59,6 @@ DMA_RW_AXI __attribute__((aligned(32))) uint32_t ledStripDMABuffer[WS2811_DMA_BU
#else
#if defined(STM32F7)
FAST_DATA_ZERO_INIT uint32_t ledStripDMABuffer[WS2811_DMA_BUFFER_SIZE];
#elif defined(STM32H7)
DMA_RAM uint32_t ledStripDMABuffer[WS2811_DMA_BUFFER_SIZE];
#else
uint32_t ledStripDMABuffer[WS2811_DMA_BUFFER_SIZE];
#endif

View file

@ -78,7 +78,6 @@
#define USE_SDCARD_SDIO
#endif
#define USE_VCP
#define USE_SOFTSERIAL1
@ -92,6 +91,10 @@
#define USE_ADC
#if defined(USE_LED_STRIP) && !defined(USE_LEDSTRIP_CACHE_MGMT)
#define USE_LEDSTRIP_CACHE_MGMT
#endif
#if !defined(USE_EXST)
#define USE_CUSTOM_DEFAULTS
#endif

View file

@ -103,6 +103,10 @@
#define USE_ADC
#if defined(USE_LED_STRIP) && !defined(USE_LEDSTRIP_CACHE_MGMT)
#define USE_LEDSTRIP_CACHE_MGMT
#endif
// Provide a default so that this target builds on the build server.
#if !defined(CONFIG_IN_RAM) && !defined(CONFIG_IN_SDCARD) && !defined(CONFIG_IN_EXTERNAL_FLASH)
#define CONFIG_IN_RAM

View file

@ -110,6 +110,10 @@
#define USE_ADC
#if defined(USE_LED_STRIP) && !defined(USE_LEDSTRIP_CACHE_MGMT)
#define USE_LEDSTRIP_CACHE_MGMT
#endif
// Provide a default so that this target builds on the build server.
#if !defined(CONFIG_IN_RAM) && !defined(CONFIG_IN_SDCARD) && !defined(CONFIG_IN_EXTERNAL_FLASH)
#define CONFIG_IN_RAM