Coma FW-C2800 User's Guide Page 129

  • Download
  • Add to my manuals
  • Print
  • Page
    / 276
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 128
Hardware Interrupts
4-24
Example 4-3. Constructing a Minimal ISR on C6000 Platform
Example 4-4. HWI Example on C54x Platform
;
; ======== myclk.s62 ========
;
.include "hwi.h62" ; macro header file
IEMASK .set 0
CCMASK .set c62_PCC_DISABLE
.text
;
; ======== myclkisr ========
;
global _myclkisr
_myclkisr:
; save all C run-time environment registers
HWI_enter C62_ABTEMPS, C62_CTEMPS, IEMASK, CCMASK
b _TSK_itick ; call TSK itick (C function)
mvkl tiret, b3
mvkh tiret, b3
nop 3
tiret:
; restore saved registers and call DSP/BIOS scheduler
HWI_exit C62_ABTEMPS, C62_CTEMPS, IEMASK, CCMASK
.end
;
; ======== _DSS_isr ========
;
; Calls the C ISR code after setting cpl
; and saving C54_CNOTPRESERVED
;
.include "hwi.h54" ; macro header file
_DSS_isr:
HWI_enter C54_CNOTPRESERVED, 0fff7h
; cpl = 0
; dp = GBL_A_SYSPAGE
; We need to set cpl bit when going to C
ssbx cpl
nop ; cpl latency
nop ; cpl latency
call _DSS_cisr
rsbx cpl ; HWI_exit precondition
nop ; cpl latency
nop ; cpl latency
ld #GBL_A_SYSPAGE, dp
HWI_exit C54_CNOTPRESERVED, 0fff7h
Page view 128
1 2 ... 124 125 126 127 128 129 130 131 132 133 134 ... 275 276

Comments to this Manuals

No comments