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

📄 kernel.inc

📁 zilog z80f91单片机的网络接口函数
💻 INC
字号:
;********************************************************************************
; Copyright 2004, ZiLOG Inc.													*
; All Rights Reserved															*
;																				*
; This is UNPUBLISHED PROPRIETARY SOURCE CODE of ZiLOG Inc., and might			*
; contain proprietary, confidential and trade secret information of				*
; ZiLOG, our partners and parties from which this code has been licensed.		*
;																				*
; The contents of this file may not be disclosed to third parties, copied or	*
; duplicated in any form, in whole or in part, without the prior written		*
; permission of ZiLOG Inc.														*
;																				*
;********************************************************************************

.include "_ez80.inc"
.include "intr.inc"


 TRUE  .equ 1
 FALSE .equ 0

	;***	For processing Lists and Queues
	list_Head			.equ 0
	list_Tail			.equ 3
	sizeof_list			.equ 6

	;***	Structure of item on a Queue, List or Plist (??? fix me)
	li_Next				.equ 0
	li_Prev				.equ 3
	sizeof_q_item		.equ 6
	sizeof_list_item	.equ 6
	li_Prio				.equ 6
	sizeof_plist_item	.equ 8

	PRCURR				.equ 01
	PRFREE				.equ 02
	PRREADY				.equ 03
	PRRECV				.equ 04
	PRSLEEP				.equ 05
	PRSUSP				.equ 06
	PRWAIT				.equ 07
	PRTRECV				.equ 16

	;***	Task Control Block
	tcb_Next				.equ 0
	tcb_Prev				.equ 3
	tcb_State			.equ 6
	tcb_Priority		.equ 7
;	tcb_BasePrio		.equ 8
	tcb_ProcAddr		.equ 8
	tcb_HasMsg			.equ 11
	tcb_Msg				.equ 12
	tcb_pSem				.equ 15
	tcb_pName			.equ 18
	tcb_pStackTop		.equ 21
	tcb_pStackBot		.equ 24
	tcb_pCurStack		.equ 27
	tcb_StackLen		.equ 30
	tcb_PrioEntry		.equ 32
	tcb_ReadyList		.equ 35
	tcb_Quantum			.equ 38
	tcb_Preempt			.equ 39
	tcb_SleepTicks		.equ 40
	sizeof_tcb			.equ 44
;	sizeof_tcb			.equ 42
;	sizeof_tcb			.equ 41


	;***	Semaphore structure
;	sem_Next				.equ 0
;	sem_Prev				.equ 3
	sem_InUse			.equ 0
	sem_RefCount		.equ 1
	sem_Count			.equ 2
	sem_Owner			.equ 4
	sem_Head				.equ 7
	sem_Tail				.equ 10
	sizeof_sem			.equ 13


⌨️ 快捷键说明

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