diff options
author | Stefan Kerkmann <karlk90@pm.me> | 2022-08-15 19:00:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-15 18:00:22 +0100 |
commit | f74ed5fc5331b6131538b347dd001e0e6acd23e0 (patch) | |
tree | a63eb6eb8a425700fe9401a133c798a89dcbb9d4 /platforms/chibios | |
parent | 8ce946b5c8e7026b5d7337becf4719e2795af9bb (diff) |
Fix GD32VF103 WS2812 PWM driver (#18067)
...by adding the missing STM32 DMA defines.
Diffstat (limited to 'platforms/chibios')
-rw-r--r-- | platforms/chibios/gd32v_compatibility.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platforms/chibios/gd32v_compatibility.h b/platforms/chibios/gd32v_compatibility.h index a3148fb6d2..d01c3d00a2 100644 --- a/platforms/chibios/gd32v_compatibility.h +++ b/platforms/chibios/gd32v_compatibility.h @@ -35,7 +35,9 @@ #define STM32_DMA_STREAM_ID(peripheral, channel) GD32_DMA_STREAM_ID(peripheral - 1, channel - 1) #define STM32_DMA_CR_DIR_M2P GD32_DMA_CTL_DIR_M2P #define STM32_DMA_CR_PSIZE_WORD GD32_DMA_CTL_PWIDTH_WORD +#define STM32_DMA_CR_PSIZE_HWORD GD32_DMA_CTL_PWIDTH_HWORD #define STM32_DMA_CR_MSIZE_WORD GD32_DMA_CTL_MWIDTH_WORD +#define STM32_DMA_CR_MSIZE_BYTE GD32_DMA_CTL_MWIDTH_BYTE #define STM32_DMA_CR_MINC GD32_DMA_CTL_MNAGA #define STM32_DMA_CR_CIRC GD32_DMA_CTL_CMEN #define STM32_DMA_CR_PL GD32_DMA_CTL_PRIO |