Return to previous page Return to menu Go to next page

  Title  
Function specifications
  Function  
Get A-Bus interrupt acknowledgment
  Function name  
INT_GetAck
No
7

 
format Uint32 INT_GetAck (void) Input None Output None Function value Acknowledge value

  Function  Acquires the acknowledge value of the A-Bus interrupt acknowledge register. 


[Register and refer to interrupt handling routine]

  Title  
Function specifications
  Function  
Interrupt function registration
  Function name  
INT_SetFunc
No
8

 
format void INT_SetFunc (Uint32 num, void * hdr) Input num: Vector number : hdr: Interrupt function address Output None Function value None Function Registers the interrupt function address to the interrupt vector indicated by the vector number. Registered interrupt The function is executed when an interrupt occurs. If the interrupt function address is NULL, a vector The function registered in the interrupt vector according to the contents of . number is as follows.
      • If the vector number is SCU: Reregister the SCU interrupt function.
      • If the vector number is not SCU: Register a dummy function. Dummy function returns This is a function that performs only processing.
Remarks The interrupt functions that can be specified are functions that end with register save, return, and RTE instructions (in C language) : You can specify a function that uses the #pragma interrupt declaration). This function can be used for both master and slave SH2. Execute this function on the CPU you want to register Please .


Return to previous page Return to menu Go to next page