Skip to content

Commit

Permalink
fix led strip for h7 (betaflight#12890) (betaflight#12976)
Browse files Browse the repository at this point in the history
* fix led strip for h7 (betaflight#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>
  • Loading branch information
haslinghuis and freasy committed Aug 6, 2023
1 parent c8e6124 commit 96ffb3a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/main/drivers/light_ws2811strip.c
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion src/main/target/STM32H723/target.h
Expand Up @@ -78,7 +78,6 @@
#define USE_SDCARD_SDIO
#endif


#define USE_VCP

#define USE_SOFTSERIAL1
Expand All @@ -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
4 changes: 4 additions & 0 deletions src/main/target/STM32H730/target.h
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/main/target/STM32H750/target.h
Expand Up @@ -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
Expand Down

0 comments on commit 96ffb3a

Please sign in to comment.