Skip to content

Commit

Permalink
cmsis: patch fpu in asm for armcc5
Browse files Browse the repository at this point in the history
For FPU, use armasm to select fpu selection. This will be fixed upstream in the next version of CMSIS. Meanwhile, we use our local patch.

Taken from --cpu selection for armasm:

--cpu           | {FPU}
Cortex-M4.fp.sp | VFPv4_SP_D16
Cortex-M7.fp.sp | FPv5-SP
Cortex-M7.fp.dp | FPv5_D16

Tracking issue: ARM-software/CMSIS_5#1266
  • Loading branch information
Martin Kojtal committed Jul 29, 2021
1 parent 4822ac5 commit 180eb75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
RTX_STACK_CHECK EQU 0
#endif

IF ({FPU}="FPv4-SP")
IF ({FPU}="FPv4-SP") || ({FPU}="VFPv4_SP_D16") || ({FPU}="FPv5-SP") || ({FPU}="FPv5_D16")
FPU_USED EQU 1
ELSE
FPU_USED EQU 0
Expand Down

0 comments on commit 180eb75

Please sign in to comment.