代码搜索结果
找到约 10,000 项符合
C 的代码
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= BIT2; //将SCL管脚(P1.2)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
{
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= SCL; //将SCL管脚(P1.2)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
{
i2c.c
/******************************************************************************
I2C.C
标准80C51模拟I2C总线程序(主模式)
Copyright (c) 2007,广州周立功单片机发展有限公司
All rights reserved.
本程序仅供学习参考,不提供任何可靠性方面的担保;请勿用
twi_lib.h
/*H**************************************************************************
* NAME: twi_lib.h
*----------------------------------------------------------------------------
* Copyright (c)
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= BIT2; //将SCL管脚(P1.2)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
{
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= SCL; //将SCL管脚(P1.3)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
{
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= BIT2; //将SCL管脚(P1.2)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
{
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= SCL; //将SCL管脚(P1.2)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
{
twi_lib.h
/*H**************************************************************************
* NAME: twi_lib.h
*----------------------------------------------------------------------------
* Copyright (c)
at91sam9260_sdramc.h
/* linux/include/asm-arm/arch-at91sam9260/at91sam9260_sdramc.h
*
* Hardware definition for the sdramc peripheral in the ATMEL at91sam9260 processor
*
* Generated 01/16/2006 (17:06:46) AT91