File tree Expand file tree Collapse file tree
CI/build/examples/BareMinimum Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 * It allows to test build of built-in libraries
44 * and can not be executed.
55 */
6-
6+ # if defined(HAL_FLASH_MODULE_ENABLED)
77#include < EEPROM.h>
8+ #endif
89#ifndef STM32MP1xx
910#include < IWatchdog.h>
1011#endif
@@ -91,10 +92,11 @@ void setup() {
9192 }
9293 swSerial.end ();
9394
95+ #if defined(HAL_FLASH_MODULE_ENABLED)
9496 // EEPROM
9597 byte value = EEPROM .read (0x01 );
9698 EEPROM .write (EEPROM .length () - 1 , value);
97-
99+ # endif
98100#ifndef STM32MP1xx
99101 // IWDG
100102 if (!IWatchdog.isReset (true )) {
Original file line number Diff line number Diff line change 2525extern " C" {
2626#include " utility/stm32_eeprom.h"
2727}
28-
28+ #if defined(USE_HALV2_DRIVER)
29+ #error "EEPROM library is not yet compatible with HALv2 driver."
30+ #endif
2931/* **
3032 EERef class.
3133
You can’t perform that action at this time.
0 commit comments