1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +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:
Michael Keller 2019-07-28 10:21:30 +12:00 committed by GitHub
commit 93b842c566
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,8 +59,10 @@ motorDevice_t *dshotPwmDevInit(const struct motorDevConfig_s *motorConfig, uint1
#define PROSHOT_TELEMETRY_INPUT_LEN 8
// 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
#elif defined(STM32F7)
#define DSHOT_DMA_BUFFER_ATTRIBUTE FAST_RAM_ZERO_INIT
#else
#define DSHOT_DMA_BUFFER_ATTRIBUTE // None
#endif