Browse Source

STM32F439i-Eval board file cleanup

Joel Bodenmann 3 years ago
parent
commit
91f537c91c
1 changed files with 7 additions and 4 deletions
  1. 7 4
      boards/base/STM32F439i-Eval/CubeHal/gmouse_lld_EXC7200_board.h

+ 7 - 4
boards/base/STM32F439i-Eval/CubeHal/gmouse_lld_EXC7200_board.h

@@ -14,10 +14,13 @@
14 14
 #ifndef _GINPUT_LLD_MOUSE_BOARD_H
15 15
 #define _GINPUT_LLD_MOUSE_BOARD_H
16 16
 
17
-#include "stm32f4xx_hal_rcc.h"
18
-#include "stm32f4xx_hal_dma.h"
19
-#include "stm32f4xx_hal_gpio.h"
20
-#include "stm32f4xx_hal_i2c.h"
17
+// Avoid naming collisions with CubeHAL
18
+#undef Red
19
+#undef Green
20
+#undef Blue
21
+
22
+// Include CubeHAL
23
+#include "stm32f4xx_hal.h"
21 24
 
22 25
 // Resolution and Accuracy Settings
23 26
 #define GMOUSE_EXC7200_PEN_CALIBRATE_ERROR		8