Skip to content

Commit 2cc7c22

Browse files
clean up Arduino.h to avoid naming conflicts with stm32l4xx.h defines
1 parent d354657 commit 2cc7c22

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

cores/stm32l4/Arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ enum BitOrder {
8282

8383
#define ARM_MATH_CM4
8484
#include "stm32l4xx.h"
85+
#undef RTC
8586
#undef DAC1
8687
#undef SPI1
8788
#undef SPI2

libraries/RTC/src/RTC.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
#include "Arduino.h"
3030
#include "stm32l4_wiring_private.h"
31-
#undef RTC
3231
#include "RTC.h"
3332
#include <time.h>
3433

libraries/SPI/src/SPI.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828

2929
#include "Arduino.h"
3030
#include "stm32l4_wiring_private.h"
31-
#undef SPI1
32-
#undef SPI2
3331
#include "SPI.h"
3432

3533
/* The code below deserves some explanation. The SPIClass has really 2 modes of operation.

0 commit comments

Comments
 (0)