Skip to content

Avoid use internal core header file use Arduino.h instead #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 30, 2018

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Jan 25, 2018

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

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 stm32duino#3

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistm fpistm self-assigned this Jan 25, 2018
F_CPU is equal to SystemCoreClock

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistm fpistm merged commit b191654 into stm32duino:master Jan 30, 2018
@fpistm fpistm deleted the Header_usage branch January 30, 2018 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant