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

📄 spi4_tx_dl.c

📁 ixp2400的一个小程序
💻 C
字号:
//  Copyright (C) 2002-2003 Intel Corporation, All Rights Reserved.
//  Permission is hereby granted to merge this program code with 
//  other program material to create a derivative work.  This 
//  derivative work may be distributed in compiled object form only.
//  Any other publication of this program, in any form, without the 
//  explicit permission of the copyright holder is prohibited.
//
//  Send questions and comments to erik.j.johnson@intel.com, 
//  aaron.kunze@intel.com

//-------------------------------------------------------------------
// spi4_tx_dl.uc - Chapter 5
// This file contains a dispatch loop which receives packets 
// from a the processing ring and transmits them out a SPI-4
// interface
//

//	Include Files
#include	"dl_system.h"
#include	"dl_source.h"
#include	"system_init.h"
#include	"dispatch_loop.h"
#include	"spi4_tx.h"

#include	"dl_buf.c"
#include	"dl_meta.h"

//-----------------------------------------------------------
// Global variables/Registers
//-----------------------------------------------------------
dl_buf_handle_t			dlBufHandle;
__declspec(gp_reg) int 	dlNextBlock;
extern dl_meta_t		dlMeta;


void main()
{
	//-------------------------------------------------------
	// Initialize the blocks
	//-------------------------------------------------------
	// Initialize the system
	system_init();

	// spi4 tx initialization
	spi4_tx_init();

	// Initialize the incoming ring
	dl_source_init();

	//-------------------------------------------------------
	// dispatch loop
	//-------------------------------------------------------
	while(1)
	{
		// Get, segment and transmit the
		// packet
		spi4_tx();
	}
}



⌨️ 快捷键说明

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