Changes

How to use UARTs

1 byte removed, 20:24, 22 January 2012
no edit summary
As explained above, the program uses GPIO for debug option via oscilloscope, it is necessary install user-gpio-drv.ko driver inside Linux Kernel, more information [[How to use GPIOs|here]] .
There are some interesting things that is interesting to configure, before compiling the program. Open it, seek next lines:
<pre>//Define Array char size
#define SIZE 30
#define GPIO1 136
#define GPIO2 137 </pre>
Constant SIZE: it determine the max number of char than can be sent<br>
Constant DEBUG: it can break program infinite loop part, it can be useful to debug some errors, 0 like infinite loop or positive number determine loop max entrances<br>
Constant WAIT: configure select max time.
Constants GPIO1 and GPIO2: they configure GPIOs used for debug via oscilloscope. Take care to configure mux and don't use this GPIO for other purposes<br>
Once you have installed module. Compile program using your Cross Compiler, I used arm-linux-gnueabi-:
4,199
edits