mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
[F7] Set DShot DMA buffer attribute to FAST_RAM_ZERO_INIT (#8610)
[F7] Set DShot DMA buffer attribute to FAST_RAM_ZERO_INIT
This commit is contained in:
commit
93b842c566
1 changed files with 3 additions and 1 deletions
|
@ -59,8 +59,10 @@ motorDevice_t *dshotPwmDevInit(const struct motorDevConfig_s *motorConfig, uint1
|
||||||
#define PROSHOT_TELEMETRY_INPUT_LEN 8
|
#define PROSHOT_TELEMETRY_INPUT_LEN 8
|
||||||
|
|
||||||
// For H7, DMA buffer is placed in a dedicated segment for coherency management
|
// For H7, DMA buffer is placed in a dedicated segment for coherency management
|
||||||
#ifdef STM32H7
|
#if defined(STM32H7)
|
||||||
#define DSHOT_DMA_BUFFER_ATTRIBUTE DMA_RAM
|
#define DSHOT_DMA_BUFFER_ATTRIBUTE DMA_RAM
|
||||||
|
#elif defined(STM32F7)
|
||||||
|
#define DSHOT_DMA_BUFFER_ATTRIBUTE FAST_RAM_ZERO_INIT
|
||||||
#else
|
#else
|
||||||
#define DSHOT_DMA_BUFFER_ATTRIBUTE // None
|
#define DSHOT_DMA_BUFFER_ATTRIBUTE // None
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue