Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f33d7a3

Browse filesBrowse 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
Copy full SHA for f33d7a3

File tree

1 file changed

+5
-2
lines changed
Filter options

1 file changed

+5
-2
lines changed

‎examples/NonReg/BufferedEEPROM/BufferedEEPROM.ino

Copy file name to clipboardExpand all lines: examples/NonReg/BufferedEEPROM/BufferedEEPROM.ino
+5-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.