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 <[email protected]>
1 parent e5d9368 commit 242671d

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

Diff for: cores/arduino/board.h

-1
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

Diff for: libraries/EEPROM/src/EEPROM.h

+3
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.
File renamed without changes.

0 commit comments

Comments
 (0)