Skip to content

Commit 540faf7

Browse files
thinkyheadDarred
authored andcommitted
🎨 Update HAL/STM32 wrappers
Followup to MarlinFirmware#22537
1 parent f869e18 commit 540faf7

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

Marlin/src/HAL/STM32/MarlinSPI.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
*
2121
*/
22+
#include "../platforms.h"
23+
2224
#if defined(HAL_STM32) && !defined(STM32H7xx)
2325

2426
#include "MarlinSPI.h"

Marlin/src/HAL/STM32/eeprom_bl24cxx.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
* along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
*
2121
*/
22-
#ifdef STM32F1
22+
#include "../platforms.h"
23+
24+
#ifdef HAL_STM32
2325

2426
/**
2527
* PersistentStore for Arduino-style EEPROM interface
@@ -79,4 +81,4 @@ bool PersistentStore::read_data(int &pos, uint8_t *value, size_t size, uint16_t
7981
}
8082

8183
#endif // IIC_BL24CXX_EEPROM
82-
#endif // STM32F1
84+
#endif // HAL_STM32

Marlin/src/HAL/STM32/eeprom_if_iic.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@
1919
* along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
*
2121
*/
22+
#include "../platforms.h"
23+
24+
#ifdef HAL_STM32
2225

2326
/**
2427
* Platform-independent Arduino functions for I2C EEPROM.
2528
* Enable USE_SHARED_EEPROM if not supplied by the framework.
2629
*/
2730

28-
#ifdef STM32F1
29-
3031
#include "../../inc/MarlinConfig.h"
3132

3233
#if ENABLED(IIC_BL24CXX_EEPROM)
@@ -51,4 +52,4 @@ uint8_t eeprom_read_byte(uint8_t *pos) {
5152
}
5253

5354
#endif // IIC_BL24CXX_EEPROM
54-
#endif // STM32F1
55+
#endif // HAL_STM32

0 commit comments

Comments
 (0)