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 11
11
* \param[in] millis milliseconds to delay
12
12
*/
13
13
static void delayMS (uint32_t millis ) {
14
- uint32_t iterations = millis * (SystemCoreClock /7000 );
14
+ uint32_t iterations = millis * (F_CPU /7000 );
15
15
uint32_t i ;
16
16
for (i = 0 ; i < iterations ; ++ i ) {
17
17
__asm__("nop\n\t" );
Original file line number Diff line number Diff line change 3
3
* @author Frederic Pillon <frederic.pillon@st.com> for STMicroelectronics.
4
4
* @brief Include source of FreeRTOS portable layer file to match Arduino library format
5
5
*/
6
- #include "stm32_def.h"
6
+ #include <Arduino.h>
7
7
8
8
#ifndef __CORTEX_M
9
9
#pragma GCC error "no \"__CORTEX_M\" definition"
Original file line number Diff line number Diff line change 6
6
7
7
#ifndef _PORTMACRO_H_
8
8
#define _PORTMACRO_H_
9
- #include "stm32_def.h"
9
+ #include <Arduino.h>
10
10
11
11
#ifndef __CORTEX_M
12
12
#pragma GCC error "no \"__CORTEX_M\" definition"
You can’t perform that action at this time.
0 commit comments