Skip to content

Commit

Permalink
🎨 Update HAL/STM32 wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and Darred committed Dec 1, 2021
1 parent f869e18 commit 540faf7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Marlin/src/HAL/STM32/MarlinSPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#include "../platforms.h"

#if defined(HAL_STM32) && !defined(STM32H7xx)

#include "MarlinSPI.h"
Expand Down
6 changes: 4 additions & 2 deletions Marlin/src/HAL/STM32/eeprom_bl24cxx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#ifdef STM32F1
#include "../platforms.h"

#ifdef HAL_STM32

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

#endif // IIC_BL24CXX_EEPROM
#endif // STM32F1
#endif // HAL_STM32
7 changes: 4 additions & 3 deletions Marlin/src/HAL/STM32/eeprom_if_iic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#include "../platforms.h"

#ifdef HAL_STM32

/**
* Platform-independent Arduino functions for I2C EEPROM.
* Enable USE_SHARED_EEPROM if not supplied by the framework.
*/

#ifdef STM32F1

#include "../../inc/MarlinConfig.h"

#if ENABLED(IIC_BL24CXX_EEPROM)
Expand All @@ -51,4 +52,4 @@ uint8_t eeprom_read_byte(uint8_t *pos) {
}

#endif // IIC_BL24CXX_EEPROM
#endif // STM32F1
#endif // HAL_STM32

0 comments on commit 540faf7

Please sign in to comment.