System Installation
AMDY-7002 User’s Manual
3-6
void Set_LDN(unsigned char LDN) {
outp(SIO_Port, 0x07);
outp(S1, LDN);
//printf("LDN=%x\n", LDN);
}
//Set register offset to Value
void Set_Register(unsigned char offset, unsigned char value) {
outp(SIO_Port, offset);
outp(S1, value);
//printf("Write offset:%x = %x\n", offset, value);
}
//Or register
void Or_Register(unsigned char offset, unsigned char value) {
outp(SIO_Port, offset);
outp(S1, inp(S1) | value);
//printf("Write offset:%x = %x\n", offset, value);
}
//And register
void And_Register(unsigned char offset, unsigned char value) {
outp(SIO_Port, offset);
outp(S1, inp(S1) & value);
//printf("Write offset:%x = %x\n", offset, value);
}
int main(void) {
int result;
printf("RUBY-D712 GPIO Test:\n");
//pin1 =11
//pin3 =12
//pin5 =47
//pin7 =50
//pin9 =74
//pin11=75
//pin13=76
//pin15=77
//pin2 =14
//pin4 =35
//pin6 =36
//pin8 =37
//pin10=70
//pin12=71
//pin14=72
//pin16=73
Enter_IT872x_SIO();
Set_LDN(GPIO_LDN);
//Enable GPIO
//Or_Register(0xC0,0x46) //11,12,14
Содержание AMDY-7002
Страница 8: ...System Overview AMDY 7002 User s Manual 1 5 1 3 1 Mechanical Drawing ...
Страница 9: ...System Overview AMDY 7002 User s Manual 1 6 ...
Страница 12: ...Hardware Configuration AMDY 7002 User s Manual 2 2 Connector location on top layer RTL8111D L ...
Страница 53: ...BIOS Setup Information AMDY 7002 User s Manual 4 20 4 7 Boot Boot Priority Order ...