Return to previous page Return to menu Go to next page

  Title  
Function specifications
  Function  
Acquire a semaphore
Function Name
SYS_TASSEM
No
3.1

 format  Uint32 SYS_TASSEM (Uint32 Num);
 Input  Num: Semaphore number (0 to FFH)
 Output  None
 function value  result (1: acquired, 0: already acquired by others)
 Function  Executes TAS instruction for memory (1 byte) associated with Num number and returns the result to function value
 .
  Range check is not performed. Do not specify a value outside the range.
  This routine can be used for both master and slave SH2. 

  Title  
Function specifications
  Function  
Release semaphore
Function Name
SYS_CLRSEM
No
3.2

 format  void SYS_CLRSEM (Uint32 Num);
 Input  Num: Semaphore number (0 to FFH)
 Output  None
 No function value 
 Function Clears the memory (1 byte) associated with the  Num number.
  Range check is not performed. Do not specify a value outside the range.
  This routine can be used for both master and slave SH2. 

  Title  
Function specifications
  Function  
Switch system clock
Function Name
SYS_CHGSYSCK
No
4.1

 format  void SYS_CHGSYSCK (Uint32 CkMode);
 Input  CkMode: 0: CPU 26MHz, 320/640 mode
  1: CPU 28MHz, 352/704 mode
 Output  None
 No function value 
 Function  Switches the system clock to the value specified in CkMode.
 Remarks  Please refer to the overview and SMPC manual regarding the reset device and processing time.
  If this routine is called on slave SH2, the system will hang up. Always master SH2
Please call  . 


Return to previous page Return to menu Go to next page