代码搜索结果
找到约 10,000 项符合
C 的代码
hardware.h
#ifndef __HARDWARE_H__
#define __HARDWARE_H__
// write your header here
//========================================================================================
// Progarm: The file be included by
raw_i2c.cpp
// RAW_I2C.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include
#define READ_MAX_RETRIES 20
#define WRITE_MAX_RETRIES 20
#define VIA_
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 )
upsd3300_i2c.c
/*------------------------------------------------------------------------
upsd3300_i2c.c
Version:
October 15, 2004 Version 2.0 - Comments and include file name updates.
May 2004 Version 0.4 - u
upsd3300_i2c.c
/*------------------------------------------------------------------------
upsd3300_i2c.c
Version:
October 15, 2004 Version 2.0 - Comments and include file name updates.
May 2004 Version 0.4 - u
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
//将SCL管脚设置为输出管脚
P1DIR |= SCL;
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
hardware.h
#ifndef __HARDWARE_H__
#define __HARDWARE_H__
// write your header here
//========================================================================================
// Progarm: The file be included by
24c64工作子程序.c
/*24C64子程序 */
bit I2C_Start(void);
void I2C_Stop(void);
void I2C_Ack(void);
void I2C_Nack(void);
bit I2C_Send_Byte( uchar);
void AT24C64_R(void *mcu_address,uint AT24C64_address,uint cou
hardware.h
#ifndef __HARDWARE_H__
#define __HARDWARE_H__
// write your header here
//========================================================================================
// Progarm: The file be included by