E m b e d d e d C o n t r o l l e r
T K S - G 2 0 - L N 0 5
Appendix B DIO
B-5
#define SMBUS_STATUS_BUS_ERROR
0x08
#define SMBUS_STATUS_DEVICE_ERROR 0x04
#define SMBUS_STATUS_INTR 0x02 //After read/write done
#define SMBUS_STATUS_HOST_BUSY
0x01 //
int main(void)
{
int i,out_reg,in_reg,data_offset;
int s_count;
unsigned char s_data, w_data,f_data0,f_data1,f_data2,f_data3;
printf("\n\t
#*#================================================#*#\n");
printf("\t ||| AAEON DIO Test Program For 4_In+4_Out |||\n");
printf("\t
#*#================================================#*#\n");
printf("\t ");
out_reg=0x21;
in_reg=0x22;
//================Test_Pattern=0x0F===================
//Write
GP20-27=0Fh
SMBusWrite(smbase, dev_addr , out_reg, 0x0F);
//Read
GP20-27
f_data3=SMBusRead(smbase, dev_addr , in_reg);
return
0;
}
/* send_i2c_address() */
int IO_Delay(int time)
{
Summary of Contents for TKS-G20-LN05
Page 18: ...Embedded Controller T K S G 2 0 L N 0 5 Chapter 2 Quick Installation Guide 2 4 Solder Side ...
Page 31: ...Embedded Controller T K S G 2 0 L N 0 5 Chapter 3 AMI BIOS Setup 3 1 AMI Chapter 3 BIOS Setup ...
Page 46: ...Embedded Controller T K S G 2 0 L N 0 5 Appendix B DIO B 1 DIO Appendix B ...