Skip to content

Commit d1d80bb

Browse files
committed
Avoid use internal core header file use Arduino.h instead
Up to the used core to define properly what the library need. Mainly the cortex M core to use: Ex: for STM32F103 based board: #define __CORTEX_M (0x03U) /*!< Cortex-M Core */ https://github.com/stm32duino/Arduino_Core_STM32 uses the CMSIS which defined it. https://github.com/ARM-software/CMSIS/blob/6891719834ac6ca2a79e8ded00620faffae10ae8/CMSIS/Include/core_cm3.h#L79 Fix #3 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 24cd55d commit d1d80bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Frederic Pillon <[email protected]> for STMicroelectronics.
44
* @brief Include source of FreeRTOS portable layer file to match Arduino library format
55
*/
6-
#include "stm32_def.h"
6+
#include <Arduino.h>
77

88
#ifndef __CORTEX_M
99
#pragma GCC error "no \"__CORTEX_M\" definition"

src/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#ifndef _PORTMACRO_H_
88
#define _PORTMACRO_H_
9-
#include "stm32_def.h"
9+
#include <Arduino.h>
1010

1111
#ifndef __CORTEX_M
1212
#pragma GCC error "no \"__CORTEX_M\" definition"

0 commit comments

Comments
 (0)