Skip to content

Commit 9f8689e

Browse files
Include CMSIS/STM32L4xx core includes from Arduino.h
1 parent 61bafc2 commit 9f8689e

File tree

6 files changed

+6
-3
lines changed

6 files changed

+6
-3
lines changed

cores/stm32l4/Arduino.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ enum BitOrder {
8080
#define clockCyclesToMicroseconds(a) ( ((a) * 1000L) / (F_CPU / 1000L) )
8181
#define microsecondsToClockCycles(a) ( (a) * (F_CPU / 1000000L) )
8282

83+
#define ARM_MATH_CM4
84+
#include "stm32l4xx.h"
85+
#undef DAC1
86+
#undef SPI1
87+
#undef SPI2
8388
#include "stm32l4_wiring.h"
8489

8590
void yield( void ) ;

cores/stm32l4/stm32l4_wiring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static inline uint32_t millis(void)
5454
return armv7m_systick_millis();
5555
}
5656

57-
static inline uint64_t micros(void)
57+
static inline uint32_t micros(void)
5858
{
5959
return armv7m_systick_micros();
6060
}

cores/stm32l4/stm32l4_wiring_private.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
extern "C" {
3636
#endif
3737

38-
#include "stm32l4xx.h"
39-
4038
#include "stm32l4_adc.h"
4139
#include "stm32l4_dac.h"
4240
#include "stm32l4_exti.h"
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)