Embedded Wireless Framework
Modules | Data Structures | Macros
The WIN32 platform

The WIN32 platform. More...

Modules

 Platform configuration (WIN32)
 The definitions used to configure the Azure SD-NET WIN32 platform.
 

Data Structures

struct  _ewf_platform_thread
 The platform thread structure. More...
 
struct  _ewf_platform_mutex
 The platform mutex structure. More...
 
struct  _ewf_platform_queue
 The platform queue structure. More...
 

Macros

#define EWF_PLATFORM_THREAD_STATIC_DECLARE(thread_ptr, thread_name_symb, thread_function_ptr_param, thread_function_data_param, stack_size_param, thread_priority_param)
 
#define EWF_PLATFORM_MUTEX_STATIC_DECLARE(mutex_ptr, mutex_name_symb)
 
#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...
 

Detailed Description

The WIN32 platform.

Macro Definition Documentation

◆ EWF_PLATFORM_MUTEX_STATIC_DECLARE

#define EWF_PLATFORM_MUTEX_STATIC_DECLARE (   mutex_ptr,
  mutex_name_symb 
)
Value:
do { \
static struct _ewf_platform_mutex _ewf_platform_mutex__##mutex_name_symb = {0}; \
mutex_ptr = &(_ewf_platform_mutex__##mutex_name_symb); \
} while(0)
The platform mutex structure.
Definition: ewf_platform_freertos.h:69

◆ EWF_PLATFORM_QUEUE_STATIC_DECLARE

#define EWF_PLATFORM_QUEUE_STATIC_DECLARE (   queue_ptr,
  queue_name_symb,
  item_type,
  item_count 
)
Value:
do { \
static item_type ewf_platform_queue__data__##queue_name_symb[item_count]; \
static ewf_platform_queue ewf_platform_queue__##queue_name_symb = {0}; \
ewf_platform_queue__##queue_name_symb.data = ewf_platform_queue__data__##queue_name_symb; \
ewf_platform_queue__##queue_name_symb.item_size = sizeof(item_type); \
ewf_platform_queue__##queue_name_symb.queue_size = item_count; \
ewf_platform_queue__##queue_name_symb.tail_index = 0; \
ewf_platform_queue__##queue_name_symb.used_count = 0; \
queue_ptr = &(ewf_platform_queue__##queue_name_symb); \
} while(0)
The platform queue structure.
Definition: ewf_platform_bare_metal.h:74

Declare statically a queue for the platform and initialize its data.

Parameters
[in,out]queue_ptra pointer to a _ewf_platform_queue structure that will be made to point to the statically declared queue
[in]queue_name_symba symbol that will be used to uniquely declare and name the queue
[in]item_typetype queue item type
[in]item_countthe maximum number item the queue can contain

◆ EWF_PLATFORM_THREAD_STATIC_DECLARE

#define EWF_PLATFORM_THREAD_STATIC_DECLARE (   thread_ptr,
  thread_name_symb,
  thread_function_ptr_param,
  thread_function_data_param,
  stack_size_param,
  thread_priority_param 
)
Value:
do { \
static ULONG _ewf_platform_thread__stack__##thread_name_symb[stack_size_param / sizeof(ULONG)]; \
static struct _ewf_platform_thread _ewf_platform_thread__##thread_name_symb = {0}; \
_ewf_platform_thread__##thread_name_symb.thread_function_ptr = thread_function_ptr_param; \
_ewf_platform_thread__##thread_name_symb.thread_function_data = thread_function_data_param; \
thread_ptr = &(_ewf_platform_thread__##thread_name_symb); \
} while(0)
The platform thread structure.
Definition: ewf_platform_freertos.h:43