Skip to content

Commit 40ab74f

Browse files
committed
Fix IAR compilation for cortex-m0
Include arm_math.h so __CLZ is defined for cortex-m0 when compiling for IAR. This fixes "__cmsis_iar_clz" is undefined errors.
1 parent 5079bbf commit 40ab74f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rtos/rtx2/TARGET_CORTEX_M/core_cm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <stdint.h>
3232
#include "cmsis.h"
3333
#include "cmsis_compiler.h"
34+
#include "arm_math.h"
3435

3536
#ifndef __ARM_ARCH_6M__
3637
#define __ARM_ARCH_6M__ 0U

0 commit comments

Comments
 (0)