Merged in raiden00/nuttx_pe (pull request #822)

Improvements for STM32 PWM

arch/arm/src/stm32/stm32_pwm: fix polarity and IDLE state configuration for advanced timer PWM

include/dsp.h: raise error if math.h not present

Approved-by: GregoryN <gnutt@nuttx.org>
This commit is contained in:
raiden00pl
2019-01-23 17:52:27 +00:00
committed by GregoryN
parent f546801fb3
commit f841175540
3 changed files with 61 additions and 56 deletions
+4
View File
@@ -72,6 +72,10 @@
# define CONFIG_LIBDSP_PRECISION 0
#endif
#if !defined(CONFIG_LIBM) && !defined(CONFIG_ARCH_MATH_H)
# error math.h not defined!
#endif
/* Phase rotation direction */
#define DIR_CW (1.0f)