Browse Source

🎨 Update HAL/STM32 wrappers

Followup to #22537
Scott Lahteine 4 years ago
parent
commit
fc817feee3

+ 2
- 0
Marlin/src/HAL/STM32/MarlinSPI.cpp View File

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
+#include "../platforms.h"
23
+
22
 #if defined(HAL_STM32) && !defined(STM32H7xx)
24
 #if defined(HAL_STM32) && !defined(STM32H7xx)
23
 
25
 
24
 #include "MarlinSPI.h"
26
 #include "MarlinSPI.h"

+ 4
- 2
Marlin/src/HAL/STM32/eeprom_bl24cxx.cpp View File

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
-#ifdef STM32F1
22
+#include "../platforms.h"
23
+
24
+#ifdef HAL_STM32
23
 
25
 
24
 /**
26
 /**
25
  * PersistentStore for Arduino-style EEPROM interface
27
  * PersistentStore for Arduino-style EEPROM interface
79
 }
81
 }
80
 
82
 
81
 #endif // IIC_BL24CXX_EEPROM
83
 #endif // IIC_BL24CXX_EEPROM
82
-#endif // STM32F1
84
+#endif // HAL_STM32

+ 4
- 3
Marlin/src/HAL/STM32/eeprom_if_iic.cpp View File

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
+#include "../platforms.h"
23
+
24
+#ifdef HAL_STM32
22
 
25
 
23
 /**
26
 /**
24
  * Platform-independent Arduino functions for I2C EEPROM.
27
  * Platform-independent Arduino functions for I2C EEPROM.
25
  * Enable USE_SHARED_EEPROM if not supplied by the framework.
28
  * Enable USE_SHARED_EEPROM if not supplied by the framework.
26
  */
29
  */
27
 
30
 
28
-#ifdef STM32F1
29
-
30
 #include "../../inc/MarlinConfig.h"
31
 #include "../../inc/MarlinConfig.h"
31
 
32
 
32
 #if ENABLED(IIC_BL24CXX_EEPROM)
33
 #if ENABLED(IIC_BL24CXX_EEPROM)
51
 }
52
 }
52
 
53
 
53
 #endif // IIC_BL24CXX_EEPROM
54
 #endif // IIC_BL24CXX_EEPROM
54
-#endif // STM32F1
55
+#endif // HAL_STM32

Loading…
Cancel
Save