Skip to content

Commit 3da7ef3

Browse files
committed
Revert "DO NOT COMMIT: Work around PI clash with one of the mcr20a-rf-driver registers"
This reverts commit 2907da3.
1 parent 78d28ff commit 3da7ef3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmsis/arm_math.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@ extern "C"
361361
#define DELTA_Q31 (0x100)
362362
#define DELTA_Q15 0x5
363363
#define INDEX_MASK 0x0000003F
364-
#ifndef _PI
365-
#define _PI 3.14159265358979f
364+
#ifndef PI
365+
#define PI 3.14159265358979f
366366
#endif
367367

368368
/**

docs/cmsis_rtx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Due to different use cases between mbed OS and CMSIS, we had to do some modifica
3434
Filename | Description |
3535
---------|-------------|
3636
cmsis_compiler.h | Added IAR missing __ALIGNED attribute for earlier (less than 7.8.4) versions |
37-
arm_math.h | Rename `PI` to `_PI` to avoid name clash with a register name in mcr20a-rf-driver |
37+
3838

3939
### RTX
4040

0 commit comments

Comments
 (0)