亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? xiic_l.c

?? gumstiz u-boot loader in linux
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* $Id: xiic_l.c,v 1.2 2002/12/05 19:32:40 meinelte Exp $ *//********************************************************************************	XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS"*	AS A COURTESY TO YOU, SOLELY FOR USE IN DEVELOPING PROGRAMS AND*	SOLUTIONS FOR XILINX DEVICES.  BY PROVIDING THIS DESIGN, CODE,*	OR INFORMATION AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE,*	APPLICATION OR STANDARD, XILINX IS MAKING NO REPRESENTATION*	THAT THIS IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT,*	AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE*	FOR YOUR IMPLEMENTATION.  XILINX EXPRESSLY DISCLAIMS ANY*	WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE*	IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR*	REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF*	INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS*	FOR A PARTICULAR PURPOSE.**	(c) Copyright 2002 Xilinx Inc.*	All rights reserved.*******************************************************************************//*****************************************************************************//**** @file xiic_l.c** This file contains low-level driver functions that can be used to access the* device.  The user should refer to the hardware device specification for more* details of the device operation.** <pre>* MODIFICATION HISTORY:** Ver	Who  Date     Changes* ----- --- -------  -----------------------------------------------* 1.01b jhl 5/13/02  First release* 1.01b jhl 10/14/02 Corrected bug in the receive function, the setup of the*		     interrupt status mask was not being done in the loop such*		     that a read would sometimes fail on the last byte because*		     the transmit error which should have been ignored was*		     being used.  This would leave an extra byte in the FIFO*		     and the bus throttled such that the next operation would*		     also fail.	 Also updated the receive function to not*		     disable the device after the last byte until after the*		     bus transitions to not busy which is more consistent*		     with the expected behavior.* 1.01c ecm 12/05/02 new rev* </pre>*****************************************************************************//***************************** Include Files *******************************/#include "xbasic_types.h"#include "xio.h"#include "xipif_v1_23_b.h"#include "xiic_l.h"/************************** Constant Definitions ***************************//**************************** Type Definitions *****************************//***************** Macros (Inline Functions) Definitions *******************//******************************************************************************** This macro clears the specified interrupt in the IPIF interrupt status* register.  It is non-destructive in that the register is read and only the* interrupt specified is cleared.  Clearing an interrupt acknowledges it.** @param    BaseAddress contains the IPIF registers base address.** @param    InterruptMask contains the interrupts to be disabled** @return** None.** @note** Signature: void XIic_mClearIisr(u32 BaseAddress,*				  u32 InterruptMask);*******************************************************************************/#define XIic_mClearIisr(BaseAddress, InterruptMask)		    \    XIIF_V123B_WRITE_IISR((BaseAddress),			    \	XIIF_V123B_READ_IISR(BaseAddress) & (InterruptMask))/******************************************************************************** This macro sends the address for a 7 bit address during both read and write* operations. It takes care of the details to format the address correctly.* This macro is designed to be called internally to the drivers.** @param    SlaveAddress contains the address of the slave to send to.** @param    Operation indicates XIIC_READ_OPERATION or XIIC_WRITE_OPERATION** @return** None.** @note** Signature: void XIic_mSend7BitAddr(u16 SlaveAddress, u8 Operation);*******************************************************************************/#define XIic_mSend7BitAddress(BaseAddress, SlaveAddress, Operation)	    \{									    \    u8 LocalAddr = (u8)(SlaveAddress << 1);			    \    LocalAddr = (LocalAddr & 0xFE) | (Operation);			    \    XIo_Out8(BaseAddress + XIIC_DTR_REG_OFFSET, LocalAddr);		    \}/************************** Function Prototypes ****************************/static unsigned RecvData (u32 BaseAddress, u8 * BufferPtr,			  unsigned ByteCount);static unsigned SendData (u32 BaseAddress, u8 * BufferPtr,			  unsigned ByteCount);/************************** Variable Definitions **************************//****************************************************************************//*** Receive data as a master on the IIC bus.  This function receives the data* using polled I/O and blocks until the data has been received.	 It only* supports 7 bit addressing and non-repeated start modes of operation.	The* user is responsible for ensuring the bus is not busy if multiple masters* are present on the bus.** @param    BaseAddress contains the base address of the IIC device.* @param    Address contains the 7 bit IIC address of the device to send the*	    specified data to.* @param    BufferPtr points to the data to be sent.* @param    ByteCount is the number of bytes to be sent.** @return** The number of bytes received.** @note** None*******************************************************************************/unsigned XIic_Recv (u32 BaseAddress, u8 Address,		    u8 * BufferPtr, unsigned ByteCount){	u8 CntlReg;	unsigned RemainingByteCount;	/* Tx error is enabled incase the address (7 or 10) has no device to answer	 * with Ack. When only one byte of data, must set NO ACK before address goes	 * out therefore Tx error must not be enabled as it will go off immediately	 * and the Rx full interrupt will be checked.  If full, then the one byte	 * was received and the Tx error will be disabled without sending an error	 * callback msg.	 */	XIic_mClearIisr (BaseAddress,			 XIIC_INTR_RX_FULL_MASK | XIIC_INTR_TX_ERROR_MASK |			 XIIC_INTR_ARB_LOST_MASK);	/* Set receive FIFO occupancy depth for 1 byte (zero based)	 */	XIo_Out8 (BaseAddress + XIIC_RFD_REG_OFFSET, 0);	/* 7 bit slave address, send the address for a read operation	 * and set the state to indicate the address has been sent	 */	XIic_mSend7BitAddress (BaseAddress, Address, XIIC_READ_OPERATION);	/* MSMS gets set after putting data in FIFO. Start the master receive	 * operation by setting CR Bits MSMS to Master, if the buffer is only one	 * byte, then it should not be acknowledged to indicate the end of data	 */	CntlReg = XIIC_CR_MSMS_MASK | XIIC_CR_ENABLE_DEVICE_MASK;	if (ByteCount == 1) {		CntlReg |= XIIC_CR_NO_ACK_MASK;	}	/* Write out the control register to start receiving data and call the	 * function to receive each byte into the buffer	 */	XIo_Out8 (BaseAddress + XIIC_CR_REG_OFFSET, CntlReg);	/* Clear the latched interrupt status for the bus not busy bit which must	 * be done while the bus is busy	 */	XIic_mClearIisr (BaseAddress, XIIC_INTR_BNB_MASK);	/* Try to receive the data from the IIC bus */	RemainingByteCount = RecvData (BaseAddress, BufferPtr, ByteCount);	/*	 * The receive is complete, disable the IIC device and return the number of	 * bytes that was received	 */	XIo_Out8 (BaseAddress + XIIC_CR_REG_OFFSET, 0);	/* Return the number of bytes that was received */	return ByteCount - RemainingByteCount;}/******************************************************************************** Receive the specified data from the device that has been previously addressed* on the IIC bus.  This function assumes that the 7 bit address has been sent* and it should wait for the transmit of the address to complete.** @param    BaseAddress contains the base address of the IIC device.* @param    BufferPtr points to the buffer to hold the data that is received.* @param    ByteCount is the number of bytes to be received.** @return** The number of bytes remaining to be received.** @note** This function does not take advantage of the receive FIFO because it is* designed for minimal code space and complexity.  It contains loops that* that could cause the function not to return if the hardware is not working.** This function assumes that the calling function will disable the IIC device* after this function returns.*******************************************************************************/static unsigned RecvData (u32 BaseAddress, u8 * BufferPtr, unsigned ByteCount){	u8 CntlReg;	u32 IntrStatusMask;	u32 IntrStatus;	/* Attempt to receive the specified number of bytes on the IIC bus */	while (ByteCount > 0) {		/* Setup the mask to use for checking errors because when receiving one		 * byte OR the last byte of a multibyte message an error naturally

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久天天做天天爱综合色| 555夜色666亚洲国产免| 亚洲777理论| 久久男人中文字幕资源站| 色呦呦国产精品| 国产一区二区三区电影在线观看 | 成人综合在线网站| 视频一区国产视频| 亚洲色图.com| 国产欧美一区二区精品秋霞影院 | 中文字幕在线一区| 日韩精品一区二区三区老鸭窝| 91丝袜美女网| 国产一区二区在线看| 亚洲成人久久影院| 日韩伦理免费电影| 久久精品视频在线免费观看| 欧美精品粉嫩高潮一区二区| 色综合中文字幕国产 | 久久久欧美精品sm网站| 欧美三级电影网| 99精品欧美一区二区三区小说| 精品一区二区三区日韩| 亚洲一区二区三区四区中文字幕| 中文字幕国产一区| 久久亚洲欧美国产精品乐播| 在线不卡a资源高清| 日本高清视频一区二区| 成人av片在线观看| 高清shemale亚洲人妖| 国产乱人伦偷精品视频免下载| 日韩综合小视频| 性做久久久久久免费观看| 亚洲欧洲av色图| 国产精品久久久久aaaa樱花| 欧美国产成人精品| 欧美激情在线一区二区三区| 久久精品欧美一区二区三区不卡 | 蜜臂av日日欢夜夜爽一区| 亚洲影院在线观看| 亚洲精品一二三区| 亚洲人成亚洲人成在线观看图片| 中文字幕免费一区| 中文字幕一区二区不卡| 亚洲色欲色欲www| 亚洲精品v日韩精品| 亚洲综合在线免费观看| 一二三四社区欧美黄| 亚洲小说欧美激情另类| 日日噜噜夜夜狠狠视频欧美人| 日韩制服丝袜av| 另类欧美日韩国产在线| 黄页网站大全一区二区| 国产黑丝在线一区二区三区| 成人影视亚洲图片在线| 91丨porny丨蝌蚪视频| 色av一区二区| 7777精品久久久大香线蕉| 日韩一区二区三区免费观看| 久久久久久97三级| 国产精品乱人伦| 国产精品传媒入口麻豆| 亚洲婷婷国产精品电影人久久| 亚洲综合小说图片| 亚洲成年人网站在线观看| 亚洲第一二三四区| 日本免费在线视频不卡一不卡二| 全国精品久久少妇| 精品一区二区三区在线播放视频 | 国产精品综合久久| 成人一区在线观看| 色先锋aa成人| 国产传媒日韩欧美成人| 日本二三区不卡| 在线观看91av| 欧美成人a在线| 国产日韩亚洲欧美综合| 日本一区二区三区电影| 亚洲综合一区二区三区| 日韩和的一区二区| 国产在线观看一区二区| 粉嫩蜜臀av国产精品网站| 欧洲另类一二三四区| 日韩一卡二卡三卡| 久久精品网站免费观看| 亚洲美女屁股眼交3| 亚洲高清久久久| 国内成人自拍视频| 99re66热这里只有精品3直播 | 欧美日韩国产精选| 精品欧美乱码久久久久久1区2区 | 在线视频亚洲一区| 日韩视频一区二区三区| 国产精品久久久久三级| 亚洲午夜免费电影| 黑人巨大精品欧美一区| 成人黄色777网| 7777女厕盗摄久久久| 国产区在线观看成人精品| 亚洲综合自拍偷拍| 国产电影精品久久禁18| 欧美日韩在线综合| 久久久久久97三级| 性久久久久久久久| 国产成人综合自拍| 欧美二区三区91| 精品国产网站在线观看| 日韩毛片高清在线播放| 激情文学综合丁香| 色综合久久久久久久久久久| 国产亚洲成av人在线观看导航| 亚洲综合视频在线| 国产精品888| 欧美日本在线播放| 久久婷婷色综合| 亚洲一线二线三线视频| 成人精品在线视频观看| 91精品国产综合久久久久久久| 国产午夜一区二区三区| 麻豆91在线观看| 色哦色哦哦色天天综合| 久久伊人中文字幕| 亚洲va韩国va欧美va| 成人a免费在线看| 久久青草国产手机看片福利盒子 | 免费观看一级特黄欧美大片| 色综合天天综合网国产成人综合天| 欧美sm极限捆绑bd| 图片区小说区国产精品视频| 一本色道亚洲精品aⅴ| 久久综合九色综合97婷婷 | 亚洲男同性恋视频| 高清成人免费视频| 欧美精品一区二区不卡| 狠狠狠色丁香婷婷综合激情| 欧美一区二区三区日韩视频| 亚洲一区二区视频在线观看| 97久久人人超碰| 国产精品久久一级| 成人中文字幕合集| 国产亚洲成av人在线观看导航| 激情六月婷婷综合| 在线观看91av| 亚洲成a天堂v人片| 欧美午夜片在线看| 一区二区三区精品在线观看| 99久久精品国产一区二区三区| 国产婷婷色一区二区三区在线| 美女免费视频一区| 日韩一区二区三区精品视频| 一级做a爱片久久| 91超碰这里只有精品国产| 午夜欧美电影在线观看| 欧美日韩国产高清一区二区 | 另类欧美日韩国产在线| 欧美一区二区三区思思人| 日本成人在线网站| 91麻豆精品国产91久久久使用方法| 一个色在线综合| 欧美在线999| 亚洲电影在线播放| 欧美精品在线观看一区二区| 日韩国产精品91| 日韩精品一区二区三区中文精品| 日本sm残虐另类| 久久在线观看免费| 国产精品亚洲视频| 亚洲精品成人天堂一二三| 欧美日韩一区成人| 日韩国产欧美三级| www日韩大片| 成人精品国产免费网站| 中文字幕一区二区三区在线观看 | 亚洲超碰97人人做人人爱| 日韩免费观看2025年上映的电影| 精品一区二区日韩| 国产欧美日本一区视频| 99国产精品国产精品久久| 亚洲影院久久精品| 精品美女在线播放| 国产一区二区三区精品欧美日韩一区二区三区 | 成人午夜视频网站| 亚洲老司机在线| 精品久久久久久最新网址| 成人视屏免费看| 亚洲一区二区在线观看视频 | 国产精品高潮呻吟久久| 欧美日韩激情一区二区| 国产最新精品精品你懂的| 国产女人18水真多18精品一级做| 不卡的电影网站| 丝袜美腿亚洲一区| 国产欧美精品国产国产专区| 在线观看欧美日本| 高清不卡一区二区在线| 亚洲成av人片| 国产精品午夜在线| 欧美一区二区三区啪啪| 成人午夜av电影| 亚洲成a人v欧美综合天堂|