GPIO14 = Input(00)
GPIO15 = Input(00)
=>
Show GPIO input value:
The command : "gpio showinput" can be used to show the input value of GPIO. For
example:
=> gpio showinput f
Input of GPIO15 is: 1
Set GPIO output value:
The command: "gpio setoutput" can be used to set the output value of GPIO. For
example: we can set the output of GPIO10 to 1 as below:
=> gpio setoutput a 1
=> gpio showinput a
Input of GPIO10 is: 1
=>
5.4.3
ID EEPROM (AT24C02)
There are two AT24C02 used at COMX-P2020, one is ID EEPROM, and the other is Board
EEPROM.
The ID EEPROM is used to store serial number, MAC address etc. The I2C address for ID
EEPROM is 0xA0(8 bit). The content of ID EEPROM is list as below:
Table 5-3
Address
0x00-0x03
0x04-0x0F
COMX-P2020 BSP User Guide (6806800L84C)
Content for ID EEPROM
Name
Length
Tag ID
4 Byte
Serial Number
12 Byte
Value/
Description
Example
EEPROM Tag,
Format
Always the four ISO-
NXID
8859 characters
"NXID" with no null
termination.
"From 1 to 11 ISO-
8859 characters
"12345678901\0
describing the
module family, null
terminated.
U-boot Deployment
Static/
Variable
Static
Variable
51
Need help?
Do you have a question about the COMX-P2020 BSP and is the answer not in the manual?