asmselect.h

来自「i2c协议实现」· C头文件 代码 · 共 75 行

H
75
字号
//#define EEPROM_is_93c46  0	// 1 is 93c46,
#define EEPROM_is_24C16  1
/*
#define timer_is_DS1302 0	// 1 is ds1302,
#define timer_is_S35390 0 	// 1 IS s35390
//==============================
#define ASMDS18B20_config_store 0//*/
#define ASMI2C_READdata 0
#define ASMI2C_writedata 0

/*
#define ASMSPI_write_nbit 0
#define ASMSPI_read_nbit 0

#define ASM1wire 1
#define ASMds18b20 1
//*/
//======================
#if EEPROM_is_24C16
#define ASMI2C 1
#define ASMI2C_write_block 1
#define ASMI2C_read_block 1
#define ASMI2C_E_address 1
#define ASMI2C_wait_1ms 1
#endif
/*
#if EEPROM_is_93c46
#define ASMmicrowire 1
#endif

#if timer_is_S35390
#define ASMI2C 1
#define ASMs35390 1
#define ASMI2C_wait_1ms 1
#endif

#if timer_is_DS1302
#define ASMds1302 1
#define ASMSPI 1
#endif	//*/
//=============================
#ifndef ASMI2C_write_block 
	#define ASMI2C_write_block 0
#endif
#ifndef ASMI2C_read_block 
	#define ASMI2C_read_block 0
#endif
#ifndef ASMI2C 
	#define ASMI2C 0
#endif
#ifndef ASMI2C_E_address 
	#define ASMI2C_E_address 0
#endif
#ifndef ASMI2C_wait_1ms 
	#define ASMI2C_wait_1ms 0
#endif
#ifndef ASMI2C_wait_5ms 
	#define ASMI2C_wait_5ms 0
#endif
//---------
/*
#ifndef ASMmicrowire 
	#define ASMmicrowire 0
#endif
#ifndef ASMs35390 
	#define ASMs35390 0
#endif
//-----------
#ifndef ASMds1302 
	#define ASMds1302 0
#endif
#ifndef ASMSPI 
	#define ASMSPI 0
#endif //*/
//===============================

⌨️ 快捷键说明

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