Interfaces Target

Analog Devices Blackfin

To interface with a Blackfin target, the files WSTTarget.h and WSTTarget.c have been implemented as follows:

Files Description
WSTTarget.h This file defines the following constant when the constant WST_RTOS_NONE is set:
  • RIC_MS_PER_TICK
The constant RIC_MS_PER_TICK is used to match the timing in your Rhapsody model with your hardware.
The interrupt mask must be stored in the handling of critical regions

This file defines prototypes for the following functions:
  • WSTTarget_Init
Its prototype is:

void     WSTTarget_Init( void );
  • WSTTarget_Cleanup
Its prototype is:

void     WSTTarget_Cleanup( void );

This file also defines the following functions when the constant WST_RTOS_NONE is set:
  • WSTTarget_enterCriticalRegion
This function is called by the RXF on entering a critical region and should prevent any interrupts which can come thru in your application to disturb housekeeping in the OO RTX.

Tthe prototype of the function is:

isrmask_t WSTTarget_enterCriticalRegion( void );
  • WSTTarget_exitCriticalRegion
Its prototype is:

void  WSTTarget_exitCriticalRegion( isrmask_t mask );
WSTTarget.c This file WSTTarget.c implements the following functions:
  • WSTTarget_Init
This function is left empty.
Depending on the startup or board initialization code, you may need to initialize the ISR for WSTTarget_timerInterrupt() here.
  • WSTTarget_Cleanup
This function is left empty.
  • WSTTarget_timerInterrupt


This file also defines the following functions when the constant WST_RTOS_NONE is set:
  • WSTTarget_enterCriticalRegion
This function is implemented as saving the interrupt mask and disabling interrupts via the cli() intrinsic.
  • WSTTarget_exitCriticalRegion
This function is implemented as restoring the interrupt mask and enabling interrupts via the sti() intrinsic.
  • WSTTarget_timerInterrupt
This function cserves as wrapper to WSTRTOS_incrementRxfTicks()

It is implemented as EX_INTERRUPT_HANDLER( 
 WSTTarget_timerInterrupt )


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