Return to previous page Return to menu Go to next page

2.2 Function specification

  Title  
Function specifications
  Function  
Register the interrupt processing routine
to the interrupt vector
Function Name
SYS_SETSINT
No
1.1

 format  void SYS_SETSINT (Uint32 Num, void * Hdr);
 Input  Num: Vector number (0..7FH)
:  Hdr: Interrupt processing routine address (if 0, dummy routine or Num is SCU interrupt vector
(If . , it will be the interrupt processing routine.)
 Output  None
 No function value 
 Function  Hdr must be a processing routine that ends with register save, restore, and RTE instruction (C language
  Raba (with #pragma interrupt declaration).
  When HDR is 0, if Num is SCU interrupt (40H..4DH, 50H..5FH), SCU interrupt routine is re-registered
 Record , otherwise register a dummy routine.
  Range check is not performed. Do not specify a value outside the limit.
 Remarks  This routine can be used for both master and slave SH2, and to each VBR based vector address
 Register . 

  Title  
Function specifications
  Function  
Register the processing function
in the SCU interrupt routine
Function Name
SYS_SETUINT
No
1.2

 format  void SYS_SETUINT (Uint32 Num, void * Hdr);
 Input  Num: Vector number (SCU vector number)
:  Hdr: Function routine address (if 0, dummy routine)
 Output  None
 No function value 
 Function  Hdr must be an SHC function. If the routine was created by assembler, the SHC register
  Must comply with star storage rules.
  Num is limited to SCU interrupt vectors (40H..4DH, 50H..5FH).
  If Hdr is 0, register a dummy routine.
  Range check is not performed. Do not specify a value outside the limit.
 Remarks  When a routine is registered in a vector with SYS_SETSINT, the SCU interrupt processing routine for that vector is invalid
  and the registration function is not called.
  If this routine is called on slave SH2, the results are not guaranteed. 


Return to previous page Return to menu Go to next page