i2c.c

来自「1、该PERIPHERAL文件夹包含五个有关系统外设的程序:DEC5502_US」· C语言 代码 · 共 38 行

C
38
字号
/****************************************************************************************/
//
// Filename:  	i2c.c
// Function:	Config i2c bus to interface codec` control interface
//
/****************************************************************************************/
#include <csl_i2c.h>
#include "E2PROM_Function.h"
/***************************************************************************************/
//
// Config I2C: Use I2C to interface CODEC control interface
//
/***************************************************************************************/
I2C_Setup Setup = {
					0, 		// 7 bit address mode 
					0x0000, // own address 
					60, 	// 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)
{
 	MyI2C_setup(&Setup);
}

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

⌨️ 快捷键说明

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