Interfaces RTOS


Each product has a number of interfaces, see the image below:


We focus on the interface to the RTOS - please refer to the description on all interfaces on details for non-RTOS interfaces. All RXF source files always include WSTRTOS.h

Example:

#include "RxfConstants.h"
#include "WSTProduct.h"
#include "WSTProlog.h"
#include "WSTCompiler.h"
#include "WSTTarget.h"
#include "WSTRTOS.h"
#include "WSTPMF.h"
#include "RxfDimensions.h"

..  (include files for ANSI-C like stddef.h, include files for RXF)

#include "WSTEpilog.h"


Interface RTOS


Files Description
WSTRTOS.h This file may set the constant WSTRTOS_INIT_AND_CLEANUP_AS_EMPTY_MACROS to disable true implementations of WSTRTOS_Init() and WSTRTOS_Cleanup().

This file defines the following functions:
  • WSTRTOS_Init
Its prototype is:

void     WSTRTOS_Init( void );
  • WSTRTOS_Cleanup
Its prototype is:

void     WSTRTOS_Cleanup( void );
  • WSTRTOS_incrementRxfTicks
Its prototype is:

void        WSTRTOS_incrementRxfTicks( void );
  • WSTRTOS_getRxfTicks
Its prototype is:

timeUnit WSTRTOS_getRxfTicks( void );
  • WSTRTOS_sleep
Its prototype is:

void             WSTRTOS_sleep( timeUnit aTime );    
         
WSTRTOS.c This file is used in the GettingStarted example. It implements the following functions:
  • WSTRTOS_Init
This function is left empty.
  • WSTRTOS_Cleanup
This function is left empty.
  • WSTRTOS_incrementRxfTicks
This function increments the local static rxfTicks
  • WSTRTOS_getRxfTicks
This function returns the local static rxfTicks
  • WSTRTOS_sleep
This function is left empty.





Copyright (c) Willert Software Tools GmbH. All rights reserved.