include arm_math with annoying cmsis_rtos bug fix

This commit is contained in:
Oskar Weigl
2016-12-10 21:03:13 +09:00
parent 7985973590
commit 337f474526
+9 -2
View File
@@ -1,9 +1,16 @@
/* Includes ------------------------------------------------------------------*/
// Because of broken cmsis_os.h, we need to include arm_math first,
// otherwise chip specific defines are ommited
#include <stm32f4xx_hal.h> //Sets up the correct chip specifc defines required by arm_math
#define ARM_MATH_CM4
#include <arm_math.h>
#include <low_level.h>
#include <cmsis_os.h>
#include <math.h>
#include <stdlib.h>
#include <math.h>
#include <cmsis_os.h>
#include <main.h>
#include <adc.h>