Embedded Wireless Framework
|
The Embedded Wireless Framework bare metal platform. More...
Go to the source code of this file.
Data Structures | |
struct | _ewf_platform_queue |
The platform queue structure. More... | |
Macros | |
#define | EWF_PLATFORM_TICKS_PER_SECOND (1000) |
#define | EWF_PLATFORM_BUSY_WAIT(count) |
The default platform busy wait macro. More... | |
#define | EWF_PLATFORM_QUEUE_STATIC_DECLARE(queue_ptr, queue_name_symb, item_type, item_count) |
Declare statically a queue for the platform and initialize its data. More... | |
The Embedded Wireless Framework bare metal platform.
#define EWF_PLATFORM_BUSY_WAIT | ( | count | ) |
The default platform busy wait macro.
This default implementation is not time accurate and very wasteful (power hungry, bus hungry). Override it with an implementation valid for your system, ideally sleeping the CPU for the requested number of ticks.
#define EWF_PLATFORM_QUEUE_STATIC_DECLARE | ( | queue_ptr, | |
queue_name_symb, | |||
item_type, | |||
item_count | |||
) |
Declare statically a queue for the platform and initialize its data.
[in,out] | queue_ptr | a pointer to a _ewf_platform_queue structure that will be made to point to the statically declared queue |
[in] | queue_name_symb | a symbol that will be used to uniquely declare and name the queue |
[in] | item_type | type queue item type |
[in] | item_count | the maximum number item the queue can contain |
#define EWF_PLATFORM_TICKS_PER_SECOND (1000) |
Define the number of ticks per second in the platform; this is used to calculate absolute times. This default value is only a recommendation, override with the right value for your system.