COM AM35 Linux: Difference between revisions

From Wiki-DB
Jump to navigationJump to search
(Created page with "==<br/>Debian system == === Calibrating the touchscreen === $ TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate ===Running example Qt Apps === Run demos with touch-screen as input d...")
 
No edit summary
Line 18: Line 18:
  Shutdown:
  Shutdown:
   $ shutdown -h now
   $ shutdown -h now
==<br/>How to control the GPIOs ==
:{|class="wikitable" style="text-align: center; width: 600px"
|-
! DHCOM Name: !! alt. DHCOM Name: !! SO-DIMM Pin # !! Linux GPIO #
|-
| GPIO A || || 154 || 116
|-
| GPIO B || || 156 || 117
|-
| GPIO C || || 162 || 118
|-
| GPIO D || || 163 || 119
|-
| GPIO E || || 164 || 125
|-
| GPIO F || || 165 || 140
|-
| GPIO G || || 167 || 141
|-
| GPIO H || || 173 || 155
|-
| GPIO I || || 175 || 152
|-
| CIF HSYNC || GPIO J || 74 || 96
|-
| CIF PCLK || GPIO K || 72 || 94
|-
| CIF MCLK || GPIO L || 70 || 58
|-
| CIF VSYNC || GPIO M || 68 || 97
|-
| CIF D9 || GPIO N || 66 || 98
|-
| CIF D8 || GPIO O || 64 || 95
|-
| CIF D7 || GPIO P || 62 || 106
|-
| CIF D6 || GPIO Q || 60 || 105
|-
| CIF D5 || GPIO R || 58 || 104
|-
| CIF D4 || GPIO S || 56 || 103
|-
| CIF D3 || GPIO T || 54 || 102
|-
| CIF D2 || GPIO U || 52 || 101
|-
| CIF D1 || GPIO V || 50 || 100
|-
| CIF D0 || GPIO W || 48 || 99
|}
:Export
:{| class="wikitable"
|<code>''echo <GPIO#> >/sys/class/gpio/export''</code>
|}
:Set direction
:{| class="wikitable"
|<code>''echo in >/sys/class/gpio/gpioXX/direction''</code>
|-
|<code>''echo out >/sys/class/gpio/gpioXX/direction''</code>
|}
=== Initialize and test CAN ===
=== Initialize and test CAN ===
  Initialize:
  Initialize:

Revision as of 12:53, 13 July 2012


Debian system

Calibrating the touchscreen

$ TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate

Running example Qt Apps

Run demos with touch-screen as input device:

$ QWS_MOUSE_PROTO=Tslib:/dev/input/event0 /usr/qt/demos/demoname/demoname -qws
For the Qt-Browser change demoname to browser

Run demos with a usb-mouse as input device:

$ QWS_MOUSE_PROTO=Auto:/dev/input/mice /usr/qt/demos/demoname/demoname -qws

Login/Shutdown system

Login:
  Name:     root
  password: foo

Shutdown:
  $ shutdown -h now


How to control the GPIOs

DHCOM Name: alt. DHCOM Name: SO-DIMM Pin # Linux GPIO #
GPIO A 154 116
GPIO B 156 117
GPIO C 162 118
GPIO D 163 119
GPIO E 164 125
GPIO F 165 140
GPIO G 167 141
GPIO H 173 155
GPIO I 175 152
CIF HSYNC GPIO J 74 96
CIF PCLK GPIO K 72 94
CIF MCLK GPIO L 70 58
CIF VSYNC GPIO M 68 97
CIF D9 GPIO N 66 98
CIF D8 GPIO O 64 95
CIF D7 GPIO P 62 106
CIF D6 GPIO Q 60 105
CIF D5 GPIO R 58 104
CIF D4 GPIO S 56 103
CIF D3 GPIO T 54 102
CIF D2 GPIO U 52 101
CIF D1 GPIO V 50 100
CIF D0 GPIO W 48 99
Export
echo <GPIO#> >/sys/class/gpio/export
Set direction
echo in >/sys/class/gpio/gpioXX/direction
echo out >/sys/class/gpio/gpioXX/direction

Initialize and test CAN

Initialize:
  $ ip link set can0 up type can bitrate 500000

Send test message via cansend (part of can-utils):
  $ cansend can0 100#11.2233.44556677.88