WADE-8017
Copyright © Portwell 2016 WADE-8017 User's Guide
30
5.2
GPIO Signal
#Define GPCR 0x2B //GPIO Counter Register, Bit7 = GPIO7, Bit6 = GPIO6, ..., 0: Output; 1: Input
#Define GPDR 0x2C //GPIO Data Register, Bit7 = GPIO7, Bit6 = GPIO6, ..., 0: Low; 1: High
VOID Write_EC_SRAM(UINT8 Offset,UINT8 Value){
IoWrite8(Offset,Value);
}
Byte Read_EC_SRAM(UINT8 Offset){
IoRead8(offset,Value);
return Value;
}
void GPIO()
{
int Temp;
// Get GPIO data
Temp = Read_EC_SRAM(GPDR);
// Set GPIO7 High
Temp |= 0x80;
Summary of Contents for WADE-8017
Page 10: ...WADE 8017 Copyright Portwell 2016 WADE 8017 User s Guide 10 2 2 Mechanical Dimensions ...
Page 13: ...WADE 8017 Copyright Portwell 2016 WADE 8017 User s Guide 13 3 Block Diagram ...
Page 36: ...WADE 8017 Copyright Portwell 2016 WADE 8017 User s Guide 36 ...
Page 45: ...WADE 8017 Copyright Portwell 2016 WADE 8017 User s Guide 45 ...
Page 70: ...WADE 8017 Copyright Portwell 2016 WADE 8017 User s Guide 70 ...
Page 88: ...WADE 8017 Copyright Portwell 2016 WADE 8017 User s Guide 88 ...