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

📄 i2c.c

📁 这是个TI公司的TMS320VC5502的专门用的usb通讯程序
💻 C
字号:
/****************************************************************************************/
//
// Filename:  	i2c.c
// Function:	Config i2c bus to interface codec` control interface
//
/****************************************************************************************/

#include <csl_i2c.h>
/***************************************************************************************/
//
// Config I2C: Use I2C to interface CODEC control interface
//
/***************************************************************************************/
/*
I2C_Setup Setup = {
					0, 		// 7 bit address mode 
					0x0000, // own address 
					100, 	// clkout value (Mhz) 
					400, 	// a number between 10 and 400
					0, 		// 8 bits/byte to be received or transmitted 
					0, 		// DLB mode off 
					0 		// FREE mode on 
				  };
*/
I2C_Setup Setup = {
					0, 		// 7 bit address mode 
					0x0000, // own address 
					150, 	// clkout value (Mhz) 
					400, 	// a number between 10 and 400
					0, 		// 8 bits/byte to be received or transmitted 
					0, 		// DLB mode off 
					0 		// FREE mode on 
				  };				  
/********************************************************************************/
/*																				*/
/* Functionname:	void I2c_Setup(void) 										*/
/* description:		Config the emif												*/
/*																				*/
/********************************************************************************/

extern void I2c_Setup(void)
{
 	I2C_setup(&Setup);
}

/********************************************************************************/
/*	No	more																	*/
/********************************************************************************/

⌨️ 快捷键说明

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