Wiced Macros

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
RoMc_863046
Level 3
Level 3
25 sign-ins 10 replies posted 10 sign-ins

Hello,

I have shared code that has some compiler specific blocks.

I am looking for pre-defined compiler macros in Wiced.

GCC typically uses:  __GNUC__

ARM uses: __CC_ARM

What does Wiced use?  My platform is the Cypress CYW4343W, STM32F4

 

Thanks.

 

 

 

0 Likes
1 Solution
RoMc_863046
Level 3
Level 3
25 sign-ins 10 replies posted 10 sign-ins

Hello,

There are zero occurrences of ARM_GNU defined.

I'll just make my own:

#define __WICED_SDK__

I though I could use something that was already common but this will work too.

 

-Rocko

View solution in original post

0 Likes
2 Replies
YashM
Moderator
Moderator
Moderator
First question asked 250 sign-ins 100 replies posted

Hi

WICED uses ARM_GNU -> you can check the ARM_GNU related files under C:\<installation directory>\WICED-Studio-6.x\43xxx_Wi-Fi\tools\ARM_GNU\Win32.

"I have shared code that has some compiler specific blocks" -> if you have attached any files then it has not come up, please attach it again.

Thanks and regards

0 Likes
RoMc_863046
Level 3
Level 3
25 sign-ins 10 replies posted 10 sign-ins

Hello,

There are zero occurrences of ARM_GNU defined.

I'll just make my own:

#define __WICED_SDK__

I though I could use something that was already common but this will work too.

 

-Rocko

0 Likes