- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Where this define nned to be?
I use laird - Sterling EWB (Cypress 4343 ..and STM32f411)
I dont find where this define.
- Labels:
-
WICED Studio Wi-Fi Combo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@harelTur what do you mean by definition? Can you elaborate?
What is the error that you are getting in WICED? Can you post the error screenshot here?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I didn't get error.
I have some code that run over few platform and this code check the platform
#if defined (__ARMCC_VERSION)
WPRINT_INFO(("__ARMCC_VERSION"));
offset = SB_MAX(sizeof(uint16_t), __alignof__(SampleVal_t)); // starts after size member (uint16_t)
#elif defined (__ANDROID__)
offset = SB_MAX(sizeof(uint16_t), __alignof__(SampleVal_t)); // starts after size member (uint16_t)
#elif defined (_MSC_VER)
offset = SB_MAX(sizeof(uint16_t), _Alignof(SampleVal_t)); // starts after size member (uint16_t)
#endif
I notice that not inter to define __ARMCC_VERSION
How I cause to code to inter here ?
I dont want to add define __ARMCC_VERSION, this is the version of something..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@harelTur I don't think I understand what you are asking here.
In which file are you trying to add this data or make this modification?
Are you asking what the __ARMCC_VERSION is? If so, that is the ARM GCC compiler that you would be using during compilation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Its simple.
In my project I use some algorithem that can be run over few platform.
When I check this code on emmbeded platform I check this define ()__ARMCC_VERSION) to know that this platform is ARM and due to version I can know something about the MCU.
Now in our Algorithem a lot of time we check this define but I see that the Wiced not know about this define.
How to cause to Wiced to know it ?
for example :
#if defined (__ARMCC_VERSION)
WPRINT_INFO(("__ARMCC_VERSION"));
offset = SB_MAX(sizeof(uint16_t), __alignof__(SampleVal_t)); // starts after size member (uint16_t)
#elif defined (__ANDROID__)
offset = SB_MAX(sizeof(uint16_t), __alignof__(SampleVal_t)); // starts after size member (uint16_t)
#elif defined (_MSC_VER)
offset = SB_MAX(sizeof(uint16_t), _Alignof(SampleVal_t)); // starts after size member (uint16_t)
#endif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wiced seems to be in maintenance and not recommended for new designs.