democfg.s54

来自「使用在TI 系列dsk5402 的很多可用例子」· S54 代码 · 共 1,497 行 · 第 1/4 页

S54
1,497
字号
;;   Do *not* directly modify this file.  It was   

;;   generated by the Configuration Tool; any 

;;   changes risk being overwritten.               



;; INPUT demo.cdb



;; CONFIGURATION/VERSION INFORMATION

	.asg "Sat Nov 29 15:35:25 2003", VERS$DATE



;; PROLOGUE

	.include democfg.h54

	.copy confbeg.s54



;; TYPE HEADERS

	.include gbl.h54

	.include mem.h54

	.include obj.h54

	.include buf.h54

	.include clk.h54

	.include prd.h54

	.include rtdx.h54

	.include hst.h54

	.include hwi.h54

	.include swi.h54

	.include tsk.h54

	.include idl.h54

	.include log.h54

	.include pip.h54

	.include sem.h54

	.include mbx.h54

	.include que.h54

	.include lck.h54

	.include sio.h54

	.include sts.h54

	.include sys.h54

	.include gio.h54

	.include dev.h54

	.include udev.h54

	.include dgn.h54

	.include dhl.h54

	.include dpi.h54

	.include hook.h54

	.include dio.h54



;; TYPE ATTRIBUTES

MEM$NUMOF           .set 8

MEM$SETOF           .set 00H

OBJ$NUMOF           .set 0

OBJ$SETOF           .set 00H

BUF$NUMOF           .set 0

BUF$SETOF           .set 00H

CLK$NUMOF           .set 1

CLK$SETOF           .set 00H

PRD$NUMOF           .set 1

PRD$SETOF           .set 00H

RTDX$NUMOF          .set 0

RTDX$SETOF          .set 00H

HST$NUMOF           .set 2

HST$SETOF           .set 03H

HWI$NUMOF           .set 32

HWI$SETOF           .set 0ffffH

SWI$NUMOF           .set 5

SWI$SETOF           .set 00H

TSK$NUMOF           .set 1

TSK$SETOF           .set 00H

IDL$NUMOF           .set 4

IDL$SETOF           .set 00H

LOG$NUMOF           .set 2

LOG$SETOF           .set 00H

PIP$NUMOF           .set 5

PIP$SETOF           .set 00H

SEM$NUMOF           .set 0

SEM$SETOF           .set 00H

MBX$NUMOF           .set 0

MBX$SETOF           .set 00H

QUE$NUMOF           .set 0

QUE$SETOF           .set 00H

LCK$NUMOF           .set 0

LCK$SETOF           .set 00H

SIO$NUMOF           .set 0

SIO$SETOF           .set 00H

STS$NUMOF           .set 8

STS$SETOF           .set 00H

DEV$NUMOF           .set 0

DEV$SETOF           .set 00H

UDEV$NUMOF          .set 0

UDEV$SETOF          .set 00H

DGN$NUMOF           .set 0

DGN$SETOF           .set 00H

DHL$NUMOF           .set 0

DHL$SETOF           .set 00H

DPI$NUMOF           .set 0

DPI$SETOF           .set 00H

HOOK$NUMOF          .set 0

HOOK$SETOF          .set 00H

DIO$NUMOF           .set 0

DIO$SETOF           .set 00H



;; module GBL (ROM, CHIPTYPE5441, CHIPPRSC, PMST, SWWSR, MODIFYSWCR, SWCR, BSCR, MODIFYCLKMD, CLKMD, USERINIT, USERINITFXN, ENABLEINST, FARMODE, SUPPORTCSL, TRCMASKVALUE, CALLCSLCFGINIT)

	.global GBL$                     ; == 1

	.global GBL_ROM                  ; democfg.h54

	.global GBL_CHIPTYPE5441         ; democfg.h54

	.global GBL_CHIPPRSC             ; democfg.h54

	.global GBL_PMST                 ; democfg.h54

	.global GBL_SWWSR                ; democfg.h54

	.global GBL_MODIFYSWCR           ; democfg.h54

	.global GBL_SWCR                 ; democfg.h54

	.global GBL_BSCR                 ; democfg.h54

	.global GBL_MODIFYCLKMD          ; democfg.h54

	.global GBL_CLKMD                ; democfg.h54

	.global GBL_USERINIT             ; democfg.h54

	.global GBL_USERINITFXN          ; democfg.cmd

	.global GBL_ENABLEINST           ; democfg.h54

	.global GBL_FARMODE              ; democfg.h54

	.global GBL_SUPPORTCSL           ; democfg.h54

	.global GBL_TRCMASKVALUE         ; democfg.h54

	.global GBL_CALLCSLCFGINIT       ; democfg.h54



;; module MEM (gNumHeap, SEGZERO, MALLOCSEG)

	.global MEM$                     ; == 1

	.global MEM_gNumHeap             ; democfg.h54

	.global MEM_SEGZERO              ; democfg.cmd

	.global MEM_MALLOCSEG            ; democfg.cmd



;; module OBJ ()

	.global OBJ$                     ; == 0



;; module BUF (ENABLED)

	.global BUF$                     ; == 0

	.global BUF_ENABLED              ; democfg.h54



;; module CLK (REGS, TIMERNUM, USETIMER, TCR, TDDR, TDDRHIGH, PRD, PRDHIGH, COUNTSPMS, COUNTSPMSHIGH, TIMEFXN, HOOKFXN)

	.global CLK$                     ; == 1

	.global CLK_REGS                 ; democfg.h54

	.global CLK_TIMERNUM             ; democfg.h54

	.global CLK_USETIMER             ; democfg.h54

	.global CLK_TCR                  ; democfg.h54

	.global CLK_TDDR                 ; democfg.h54

	.global CLK_TDDRHIGH             ; democfg.h54

	.global CLK_PRD                  ; democfg.h54

	.global CLK_PRDHIGH              ; democfg.h54

	.global CLK_COUNTSPMS            ; democfg.h54

	.global CLK_COUNTSPMSHIGH        ; democfg.h54

	.global CLK_TIMEFXN              ; democfg.cmd

	.global CLK_HOOKFXN              ; democfg.cmd



;; module PRD (SCALAR, THOOKFXN)

	.global PRD$                     ; == 1

	.global PRD_SCALAR               ; democfg.h54

	.global PRD_THOOKFXN             ; democfg.cmd



;; module RTDX (USERTDX, USERTEXECUTION, DATAMEMSEG, BUFMEMSIZE)

	.global RTDX$                    ; == 1

	.global RTDX_USERTDX             ; democfg.h54

	.global RTDX_USERTEXECUTION      ; democfg.h54

	.global RTDX_DATAMEMSEG          ; democfg.cmd

	.global RTDX_BUFMEMSIZE          ; democfg.h54



;; module HST (RTDX, DSM, NONE, MAXFRAMESET, MAXFRAMEALLOWED, DSMBUFSEG, DSMMEMSIZE)

	.global HST$                     ; == 1

	.global HST_RTDX                 ; democfg.h54

	.global HST_DSM                  ; democfg.h54

	.global HST_NONE                 ; democfg.h54

	.global HST_MAXFRAMESET          ; democfg.h54

	.global HST_MAXFRAMEALLOWED      ; democfg.h54

	.global HST_DSMBUFSEG            ; democfg.cmd

	.global HST_DSMMEMSIZE           ; democfg.h54



;; module HWI ()

	.global HWI$                     ; == 1



;; module SWI (EHOOKFXN, IHOOKFXN, EXECFXN, RUNFXN)

	.global SWI$                     ; == 1

	.global SWI_EHOOKFXN             ; democfg.cmd

	.global SWI_IHOOKFXN             ; democfg.cmd

	.global SWI_EXECFXN              ; democfg.cmd

	.global SWI_RUNFXN               ; democfg.cmd



;; module TSK (STACKSIZE, STACKSEG, PRIORITY, VCREATEFXN, VDELETEFXN, VEXITFXN, SWITCHFXN, READYFXN, NUM_HOOKS)

	.global TSK$                     ; == 1

	.global TSK_STACKSIZE            ; democfg.h54

	.global TSK_STACKSEG             ; democfg.cmd

	.global TSK_PRIORITY             ; democfg.h54

	.global TSK_VCREATEFXN           ; democfg.cmd

	.global TSK_VDELETEFXN           ; democfg.cmd

	.global TSK_VEXITFXN             ; democfg.cmd

	.global TSK_SWITCHFXN            ; democfg.h54

	.global TSK_READYFXN             ; democfg.h54

	.global TSK_NUM_HOOKS            ; democfg.h54



;; module IDL (USECLKIDLTIME, CALIBRFXN)

	.global IDL$                     ; == 1

	.global IDL_USECLKIDLTIME        ; democfg.h54

	.global IDL_CALIBRFXN            ; democfg.cmd



;; module LOG (ENABLED)

	.global LOG$                     ; == 1

	.global LOG_ENABLED              ; democfg.h54



;; module PIP (gNumEmbed, gNextId)

	.global PIP$                     ; == 1

	.global PIP_gNumEmbed            ; democfg.h54

	.global PIP_gNextId              ; democfg.h54



;; module SEM ()

	.global SEM$                     ; == 0



;; module MBX ()

	.global MBX$                     ; == 0



;; module QUE ()

	.global QUE$                     ; == 1



;; module LCK ()

	.global LCK$                     ; == 1



;; module SIO ()

	.global SIO$                     ; == 0



;; module STS ()

	.global STS$                     ; == 1



;; module SYS (ABORTFXN, ERRORFXN, EXITFXN, PUTCFXN)

	.global SYS$                     ; == 1

	.global SYS_ABORTFXN             ; democfg.cmd

	.global SYS_ERRORFXN             ; democfg.cmd

	.global SYS_EXITFXN              ; democfg.cmd

	.global SYS_PUTCFXN              ; democfg.cmd



;; module GIO (CREATEFXN, DELETEFXN, PENDFXN, POSTFXN)

	.global GIO$                     ; == 0

	.global GIO_CREATEFXN            ; democfg.cmd

	.global GIO_DELETEFXN            ; democfg.cmd

	.global GIO_PENDFXN              ; democfg.cmd

	.global GIO_POSTFXN              ; democfg.cmd



;; module DEV ()

	.global DEV$                     ; == 0



;; module UDEV ()

	.global UDEV$                    ; == 0



;; module DGN ()

	.global DGN$                     ; == 0



;; module DHL (gChannelsAvailable)

	.global DHL$                     ; == 0

	.global DHL_gChannelsAvailable   ; democfg.h54



;; module DPI ()

	.global DPI$                     ; == 0



;; module HOOK (KNLID)

	.global HOOK$                    ; == 0

	.global HOOK_KNLID               ; democfg.h54



;; module DIO (STATIC, NUMTSKBASE, NUMSWIBASE)

	.global DIO$                     ; == 0

	.global DIO_STATIC               ; democfg.h54

	.global DIO_NUMTSKBASE           ; democfg.h54

	.global DIO_NUMSWIBASE           ; democfg.h54



;; MODULE CONFIGURATION



;; ======== GBL_config ========

	.asg 00H, _ROM

	.asg 00H, _CHIPTYPE5441

	.asg 00H, _CHIPPRSC

	.asg 0ffe0H, _PMST

	.asg 01208H, _SWWSR

	.asg 01H, _MODIFYSWCR

	.asg 00H, _SWCR

	.asg 08806H, _BSCR

	.asg 01H, _MODIFYCLKMD

	.asg 04007H, _CLKMD

	.asg 00H, _USERINIT

	.asg _FXN_F_nop, _USERINITFXN

	.asg 01H, _ENABLEINST

	.asg 01H, _FARMODE

	.asg 01H, _SUPPORTCSL

	.asg 0dbefH, _TRCMASKVALUE

	.asg 00H, _CALLCSLCFGINIT

	GBL_config  _ROM, _CHIPTYPE5441, _CHIPPRSC, _PMST, _SWWSR, _MODIFYSWCR, _SWCR, _BSCR, _MODIFYCLKMD, _CLKMD, _USERINIT, _USERINITFXN, _ENABLEINST, _FARMODE, _SUPPORTCSL, _TRCMASKVALUE, _CALLCSLCFGINIT



;; ======== MEM_config ========

	.asg 02H, _gNumHeap

	.asg IDATA, _SEGZERO

	.asg IDATA, _MALLOCSEG

	MEM_config  _gNumHeap, _SEGZERO, _MALLOCSEG



;; ======== OBJ_config ========

	OBJ_config



;; ======== BUF_config ========

	.asg 01H, _ENABLED

	BUF_config  _ENABLED



;; ======== CLK_config ========

	.asg 00H, _REGS

	.asg 00H, _TIMERNUM

	.asg 01H, _USETIMER

	.asg 021H, _TCR

	.asg 01H, _TDDR

	.asg 00H, _TDDRHIGH

	.asg 0c34fH, _PRD

	.asg 00H, _PRDHIGH

	.asg 0c350H, _COUNTSPMS

	.asg 00H, _COUNTSPMSHIGH

	.asg CLK_F_getshtime, _TIMEFXN

	.asg CLK_F_run, _HOOKFXN

	CLK_config  _REGS, _TIMERNUM, _USETIMER, _TCR, _TDDR, _TDDRHIGH, _PRD, _PRDHIGH, _COUNTSPMS, _COUNTSPMSHIGH, _TIMEFXN, _HOOKFXN



;; ======== PRD_config ========

	.asg 02H, _SCALAR

	.asg KNL_tick_stub, _THOOKFXN

	PRD_config  _SCALAR, _THOOKFXN



;; ======== RTDX_config ========

	.asg 01H, _USERTDX

	.asg 00H, _USERTEXECUTION

	.asg IDATA, _DATAMEMSEG

	.asg 0102H, _BUFMEMSIZE

	RTDX_config  _USERTDX, _USERTEXECUTION, _DATAMEMSEG, _BUFMEMSIZE



;; ======== HST_config ========

	.asg 01H, _RTDX

	.asg 00H, _DSM

	.asg 00H, _NONE

	.asg 040H, _MAXFRAMESET

	.asg 0100H, _MAXFRAMEALLOWED

	.asg IDATA, _DSMBUFSEG

	.asg 0400H, _DSMMEMSIZE

	HST_config  _RTDX, _DSM, _NONE, _MAXFRAMESET, _MAXFRAMEALLOWED, _DSMBUFSEG, _DSMMEMSIZE



;; ======== HWI_config ========

	HWI_config



;; ======== SWI_config ========

	.asg GBL_NULL, _EHOOKFXN

	.asg GBL_NULL, _IHOOKFXN

	.asg SWI_F_exec, _EXECFXN

	.asg SWI_F_run, _RUNFXN

	SWI_config  _EHOOKFXN, _IHOOKFXN, _EXECFXN, _RUNFXN



;; ======== TSK_config ========

	.asg 0100H, _STACKSIZE

	.asg EDATA, _STACKSEG

	.asg 01H, _PRIORITY

	.asg _FXN_F_nop, _VCREATEFXN

	.asg _FXN_F_nop, _VDELETEFXN

	.asg _FXN_F_nop, _VEXITFXN

	.asg 00H, _SWITCHFXN

	.asg 00H, _READYFXN

	.asg 00H, _NUM_HOOKS

	TSK_config  _STACKSIZE, _STACKSEG, _PRIORITY, _VCREATEFXN, _VDELETEFXN, _VEXITFXN, _SWITCHFXN, _READYFXN, _NUM_HOOKS



;; ======== IDL_config ========

	.asg 01H, _USECLKIDLTIME

	.asg IDL_F_stub, _CALIBRFXN

	IDL_config  _USECLKIDLTIME, _CALIBRFXN



;; ======== LOG_config ========

	.asg 01H, _ENABLED

	LOG_config  _ENABLED



;; ======== PIP_config ========

	.asg 02H, _gNumEmbed

	.asg 05H, _gNextId

	PIP_config  _gNumEmbed, _gNextId



;; ======== SEM_config ========

	SEM_config



;; ======== MBX_config ========

	MBX_config

⌨️ 快捷键说明

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