| WSTTarget.h |
This file defines the following constant if the
constant WST_RTOS_NONE
is
set,
This file defines prototypes for the following
functions:
|
|
Its prototype is:
void
WSTTarget_Init( void );
|
|
|
Its
prototype is:
void
WSTTarget_Cleanup( void );
|
This file defines prototypes for the following
functions if the constant WST_RTOS_NONE
is
set:
- WSTTarget_enterCriticalRegion
|
Its prototype is:
void
WSTTarget_enterCriticalRegion( void ); |
- WSTTarget_exitCriticalRegion
|
Its prototype is:
void
WSTTarget_exitCriticalRegion( void ); |
|
|
This function is added as wrapper to
WSTRTOS_incrementRxfTicks()
Its prototype
is:
void
WSTTarget_timerInterrupt( void ) __irq;
|
You can use the constant WST_TARGET_ARM_USE_SWI_FOR_CRITICAL_REGIONS when you want to use software interrupt handlers for your critical regions. By default, this constant is not set. If you want to use it, please refer to RXFDeployerGuide.pdf to learn how you can use your own instances of :
- WSTProduct.h. You must define the constant
WST_TARGET_ARM_USE_SWI_FOR_CRITICAL_REGIONS in WSTProduct.h so the RXF
sources relying on the critical region handlers use the SWI handlers.
- WSTTarget.h and WSTTarget.c - we have implemented the SWI
handlers for Keil ARM RealView only, so the WSTTarget.h and WSTTarget.c
which comes with your product serve as an example.
- your own copy of a SWI table like for example SWI.s as part
of the Keil ARM toolchain or a swi_handler.s which is part of the IAR
ARM toolchain.
If the constant WST_TARGET_ARM_USE_SWI_FOR_CRITICAL_REGIONS is defined, the handlers are defined as:
|
|
- WSTTarget_enterCriticalRegion
|
Its prototype is:
void
__swi(0) WSTTarget_enterCriticalRegion( void ); |
- WSTTarget_exitCriticalRegion
|
Its prototype is:
void
__swi(1) WSTTarget_exitCriticalRegion( void ); |
Part of the Target installation is a directory CriticalRegionsAsSWI which may serve as an example.
|