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

📄 dpi.h62

📁 SEED的VPM642测试程序-板级支持库
💻 H62
字号:
;
;  Copyright 2003 by Texas Instruments Incorporated.
;  All rights reserved. Property of Texas Instruments Incorporated.
;  Restricted rights to use, duplicate or disclose this code are
;  granted through contract.
;  
;
; "@(#) DSP/BIOS 4.90.270 12-18-03 (barracuda-o04)"
;
;  ======== dpi.h62 ========
;
;

	.if ($isdefed("DPI_H62") = 0)  ; prevent multiple includes of this file
DPI_H62	.set	1

	.include dev.h62

;
;# ======== DPI_Obj ========
;
;#
;# Preconditions:
;#      none
;#
;# Postconditions:
;#      none
;#
;

	.asg    "", DPI_Obj$regs
DPI_Obj	.macro cflag, name, id, devid, isVirtual

	.global	_DPI_FXNS

; This label matches SIO_:_device:$params in sio.h62
;
SIO_:name:$params	.set 0

	.sect	".const"
DPI_:name:	.byte	"/:name:", 0	; Set up string "/<devName>"

;
; This adds an entry to the device table, DEV_devtab, and init table DEV_devinit
;

	.if (isVirtual)
	    .asg -1, newdevid
	.else
	    .asg :devid:, newdevid
	.endif

	DEV_addDevice DPI_:name:, _DPI_FXNS, newdevid, 0, _DPI_init, DEV_SIOTYPE, 0

	.endm

;
;# ======== DPI_config ========
;  Static configuration of the DPI module
;
;#
;# Preconditions:
;#      none
;#
;# Postconditions:
;#      none
;#
;
	.asg    "", DPI_config$regs
DPI_config	.macro _enabled
	.asg	0, DPI$devid
        .endm

;
;# ======== DPI_end ========
;  Invoked at the end of all other configuration
;  declarations.  
;
;#
;# Preconditions:
;#      none
;#
;# Postconditions:
;#      none
;#
;
        .asg    "", DPI_end$regs
DPI_end .macro
        .endm

;
;# ======== DPI_init ========
;  Runtime initialization of the DPI module
;
;#
;# Preconditions: 
;#	none
;#
;# Postconditions:
;#	none
;#
;
	.asg    "", DPI_init$regs
DPI_init	.macro
	.endm

;
;# ======== DPI_startup ========
;
;#
;# Preconditions:
;#      none
;#
;# Postconditions:
;#      none
;#
	.asg    "", DPI_startup$regs
DPI_startup        .macro
	.if	DPI$NUMOF != 0
	.endif
	.endm

	.endif		; if DPI_H62 is not defined

⌨️ 快捷键说明

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