⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hellocfg.s54

📁 C/C++语言硬件程序设计——基于TMS320C5000系列DSP一书中的源程序
💻 S54
📖 第 1 页 / 共 3 页
字号:

;; ======== MEM_Obj IDATA ========
;; <add comments here>
;;
;; MEM_Obj IDATA (len, iAllocHeap, iSegZero, iHeapId)
        .global IDATA
        .asg 01f80H, _len
        .asg 01H, _iAllocHeap
        .asg IDATA, _iSegZero
        .asg segment_name, _iHeapId
        MEM_Obj 1, IDATA, 0, _len, _iAllocHeap, _iSegZero, _iHeapId

;; ======== MEM_Obj IPROG ========
;; <add comments here>
;;
;; MEM_Obj IPROG (len, iAllocHeap, iSegZero, iHeapId)
        .global IPROG
        .asg 02000H, _len
        .asg 00H, _iAllocHeap
        .asg IDATA, _iSegZero
        .asg segment_name, _iHeapId
        MEM_Obj 1, IPROG, 0, _len, _iAllocHeap, _iSegZero, _iHeapId

;; ======== MEM_Obj EDATA ========
;; <add comments here>
;;
;; MEM_Obj EDATA (len, iAllocHeap, iSegZero, iHeapId)
        .global EDATA
        .asg 04000H, _len
        .asg 00H, _iAllocHeap
        .asg IDATA, _iSegZero
        .asg segment_name, _iHeapId
        MEM_Obj 1, EDATA, 0, _len, _iAllocHeap, _iSegZero, _iHeapId

;; ======== MEM_Obj EPROG ========
;; <add comments here>
;;
;; MEM_Obj EPROG (len, iAllocHeap, iSegZero, iHeapId)
        .global EPROG
        .asg 03f80H, _len
        .asg 00H, _iAllocHeap
        .asg IDATA, _iSegZero
        .asg segment_name, _iHeapId
        MEM_Obj 1, EPROG, 0, _len, _iAllocHeap, _iSegZero, _iHeapId

;; ======== CLK_Obj PRD_clock ========
;; This clock function calls PRD_tick from within the on-chip timer ISR
;;
;; CLK_Obj PRD_clock (function)
        .global PRD_clock
        .asg PRD_F_tick, _function
        CLK_Obj 1, PRD_clock, 0, _function

;; ======== HST_Obj RTA_fromHost ========
;; Used to access LOG and STS data
;;
;; HST_Obj RTA_fromHost (mode, buf, framesize, numframes, stsflg, notify, arg0, arg1, lnk)
        .global RTA_fromHost
        .asg "input", _mode
        .asg "<NULL>", _buf
        .asg 04H, _framesize
        .asg 01H, _numframes
        .asg 00H, _stsflg
        .asg _FXN_F_nop, _notify
        .asg 00H, _arg0
        .asg 00H, _arg1
        .asg "RTDX", _lnk
        HST_Obj 1, RTA_fromHost, 1, _mode, _buf, _framesize, _numframes, _stsflg, _notify, _arg0, _arg1, _lnk

;; ======== HST_Obj RTA_toHost ========
;; Used to access LOG and STS data
;;
;; HST_Obj RTA_toHost (mode, buf, framesize, numframes, stsflg, notify, arg0, arg1, lnk)
        .global RTA_toHost
        .asg "output", _mode
        .asg "<NULL>", _buf
        .asg 040H, _framesize
        .asg 01H, _numframes
        .asg 00H, _stsflg
        .asg _FXN_F_nop, _notify
        .asg 00H, _arg0
        .asg 00H, _arg1
        .asg "RTDX", _lnk
        HST_Obj 1, RTA_toHost, 0, _mode, _buf, _framesize, _numframes, _stsflg, _notify, _arg0, _arg1, _lnk

;; ======== HWI_Obj HWI_RS ========
;; defines function for the RS ISR
;;
;; HWI_Obj HWI_RS (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_RS
        .asg _c_int00, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_RS, 0, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_NMI ========
;; defines function for the NMI ISR
;;
;; HWI_Obj HWI_NMI (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_NMI
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_NMI, 1, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_SINT17 ========
;; defines function for the SINT17 ISR
;;
;; HWI_Obj HWI_SINT17 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_SINT17
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_SINT17, 2, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_SINT18 ========
;; defines function for the SINT18 ISR
;;
;; HWI_Obj HWI_SINT18 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_SINT18
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_SINT18, 3, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_SINT19 ========
;; defines function for the SINT19 ISR
;;
;; HWI_Obj HWI_SINT19 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_SINT19
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_SINT19, 4, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_SINT20 ========
;; defines function for the SINT20 ISR
;;
;; HWI_Obj HWI_SINT20 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_SINT20
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_SINT20, 5, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_SINT21 ========
;; defines function for the SINT21 ISR
;;
;; HWI_Obj HWI_SINT21 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_SINT21
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_SINT21, 6, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_SINT22 ========
;; defines function for the SINT22 ISR
;;
;; HWI_Obj HWI_SINT22 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_SINT22
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_SINT22, 7, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_SINT23 ========
;; defines function for the SINT23 ISR
;;
;; HWI_Obj HWI_SINT23 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_SINT23
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_SINT23, 8, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_SINT24 ========
;; defines function for the SINT24 ISR
;;
;; HWI_Obj HWI_SINT24 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_SINT24
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_SINT24, 9, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_SINT25 ========
;; defines function for the SINT25 ISR
;;
;; HWI_Obj HWI_SINT25 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_SINT25
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_SINT25, 10, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_SINT26 ========
;; defines function for the SINT26 ISR
;;
;; HWI_Obj HWI_SINT26 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_SINT26
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_SINT26, 11, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_SINT27 ========
;; defines function for the SINT27 ISR
;;
;; HWI_Obj HWI_SINT27 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_SINT27
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_SINT27, 12, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_SINT28 ========
;; defines function for the SINT28 ISR
;;
;; HWI_Obj HWI_SINT28 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_SINT28
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_SINT28, 13, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_SINT29 ========
;; RESERVED for RTDX
;;
;; HWI_Obj HWI_SINT29 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_SINT29
        .asg RESERVED, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "RTDX", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_SINT29, 14, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_SINT30 ========
;; RESERVED for RTDX
;;
;; HWI_Obj HWI_SINT30 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_SINT30
        .asg RESERVED, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "RTDX", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 00H, _IntrMask
        HWI_Obj 1, HWI_SINT30, 15, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_INT0 ========
;; defines function for the INT0 ISR
;;
;; HWI_Obj HWI_INT0 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_INT0
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 01H, _IntrMask
        HWI_Obj 1, HWI_INT0, 16, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_INT1 ========
;; defines function for the INT1 ISR
;;
;; HWI_Obj HWI_INT1 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_INT1
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 02H, _IntrMask
        HWI_Obj 1, HWI_INT1, 17, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_INT2 ========
;; defines function for the INT2 ISR
;;
;; HWI_Obj HWI_INT2 (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_INT2
        .asg HWI_unused, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType
        .asg "STS_add(*addr)", _operation
        .asg "USER", _client
        .asg 00H, _iUseDispatcher
        .asg 00H, _iArg
        .asg 04H, _IntrMask
        HWI_Obj 1, HWI_INT2, 18, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask

;; ======== HWI_Obj HWI_TINT ========
;; defines function for the TINT ISR
;;
;; HWI_Obj HWI_TINT (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask)
        .global HWI_TINT
        .asg CLK_F_isr, _function
        .asg "Nothing", _monitor
        .asg 00H, _addr
        .asg "signed", _dataType

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -