Skip to content

Commit 2907da3

Browse files
committed
DO NOT COMMIT: Work around PI clash with one of the mcr20a-rf-driver registers
1 parent f37d0ee commit 2907da3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cmsis/arm_math.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ extern "C"
345345
#define DELTA_Q31 (0x100)
346346
#define DELTA_Q15 0x5
347347
#define INDEX_MASK 0x0000003F
348-
#ifndef PI
349-
#define PI 3.14159265358979f
348+
#ifndef _PI
349+
#define _PI 3.14159265358979f
350350
#endif
351351

352352
/**

docs/cmsis_rtx.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Due to different use cases between mbed OS and CMSIS, we had to do some modifica
3333
Filename | Description |
3434
---------|-------------|
3535
cmsis_compiler.h | Added IAR architecture macros |
36+
arm_math.h | Rename `PI` to `_PI` to avoid name clash with a register name in mcr20a-rf-driver |
3637

3738
### RTX
3839

0 commit comments

Comments
 (0)