Skip to content

Commit f33d7a3

Browse files
committed
eeprom buffered API only available when flash is used
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent ddef7e5 commit f33d7a3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/NonReg/BufferedEEPROM/BufferedEEPROM.ino

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#include "Arduino.h"
2-
#include <stdint.h>
1+
#include <EEPROM.h>
32

43
/**
54
* Most STM32 devices don't have an integrated EEPROM.
@@ -17,6 +16,10 @@
1716
* it's strongly suggested to use the buffered API anyhow.
1817
*/
1918

19+
#if defined(DATA_EEPROM_BASE)
20+
#error "STM32 devices have an integrated EEPROM. No buffered API available."
21+
#endif
22+
2023
#define DATA_LENGTH E2END
2124

2225
void setup() {

0 commit comments

Comments
 (0)