?? i2c.c
字號:
#include <csl.h>
#include <csl_i2c.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 off
};
/********************************************************************************/
/* Functionname: void I2c_Setup(void) */
/* Function: Realize I2C configuration */
/********************************************************************************/
extern void I2c_Setup(void)
{
/*配置系統的I2C*/
MyI2C_setup(&Setup);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -