File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1111 * \param[in] millis milliseconds to delay
1212 */
1313static void delayMS (uint32_t millis ) {
14- uint32_t iterations = millis * (SystemCoreClock /7000 );
14+ uint32_t iterations = millis * (F_CPU /7000 );
1515 uint32_t i ;
1616 for (i = 0 ; i < iterations ; ++ i ) {
1717 __asm__("nop\n\t" );
Original file line number Diff line number Diff line change 33 * @author Frederic Pillon <frederic.pillon@st.com> 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"
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments