Skip to content

Commit

Permalink
Limit STM32F411 to use 32 leds only. (betaflight#13249)
Browse files Browse the repository at this point in the history
* Add USE_LIMITED_LED_STRIP_OUTPUTS to limit certain MCUs to use maximum 32 outputs

* Fixes per review from Steve

* Use target.h gate
  • Loading branch information
haslinghuis authored Feb 27, 2024
1 parent 37d27ad commit 47f3c31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/target/STM32F411/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,8 @@

#define USE_PID_DENOM_CHECK

#ifdef USE_LED_STRIP_64
#error USE_LED_STRIP_64 is not supported for this MCU, please use USE_LED_STRIP_32
#endif

#define FLASH_PAGE_SIZE ((uint32_t)0x4000) // 16K sectors

0 comments on commit 47f3c31

Please sign in to comment.