Browse Source

🎨 Update HAL/STM32 wrappers

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

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

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

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

@@ -19,7 +19,9 @@
19 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 27
  * PersistentStore for Arduino-style EEPROM interface
@@ -79,4 +81,4 @@ bool PersistentStore::read_data(int &pos, uint8_t *value, size_t size, uint16_t
79 81
 }
80 82
 
81 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,14 +19,15 @@
19 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 27
  * Platform-independent Arduino functions for I2C EEPROM.
25 28
  * Enable USE_SHARED_EEPROM if not supplied by the framework.
26 29
  */
27 30
 
28
-#ifdef STM32F1
29
-
30 31
 #include "../../inc/MarlinConfig.h"
31 32
 
32 33
 #if ENABLED(IIC_BL24CXX_EEPROM)
@@ -51,4 +52,4 @@ uint8_t eeprom_read_byte(uint8_t *pos) {
51 52
 }
52 53
 
53 54
 #endif // IIC_BL24CXX_EEPROM
54
-#endif // STM32F1
55
+#endif // HAL_STM32

Loading…
Cancel
Save