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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/STM32FreeRTOS.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \param[in] millis milliseconds to delay
*/
static void delayMS(uint32_t millis) {
uint32_t iterations = millis * (SystemCoreClock/7000);
uint32_t iterations = millis * (F_CPU/7000);
uint32_t i;
for(i = 0; i < iterations; ++i) {
__asm__("nop\n\t");
Expand Down
2 changes: 1 addition & 1 deletion src/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author Frederic Pillon <frederic.pillon@st.com> for STMicroelectronics.
* @brief Include source of FreeRTOS portable layer file to match Arduino library format
*/
#include "stm32_def.h"
#include <Arduino.h>

#ifndef __CORTEX_M
#pragma GCC error "no \"__CORTEX_M\" definition"
Expand Down
2 changes: 1 addition & 1 deletion src/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#ifndef _PORTMACRO_H_
#define _PORTMACRO_H_
#include "stm32_def.h"
#include <Arduino.h>

#ifndef __CORTEX_M
#pragma GCC error "no \"__CORTEX_M\" definition"
Expand Down