Skip to content

Commit 242671d

Browse files
committed
Move the STM32 eeprom driver from core to library
Avoid to build it when EEPROM is not used. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent e5d9368 commit 242671d

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

cores/arduino/board.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "digital_io.h"
1313
#include "dwt.h"
1414
#include "hw_config.h"
15-
#include "stm32_eeprom.h"
1615
#include "timer.h"
1716
#include "uart.h"
1817

libraries/EEPROM/src/EEPROM.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
#define EEPROM_h
2323

2424
#include "Arduino.h"
25+
extern "C" {
26+
#include "utility/stm32_eeprom.h"
27+
}
2528

2629
/***
2730
EERef class.

0 commit comments

Comments
 (0)