User manual

2 Getting Started
3. execute /etc/init.d/networking restart
2.4. Start Programming
2.4.1. KS8695 based Devices
Connect to the OnRISC either via serial link or network and login as user. For the introduc-
tion some examples were prepared and placed under /home/user/examples. This folder contains
following files:
ioctls.c - LEDs, buzzer, reset push button and digital IO usage examples
ioctls2.c - UART and network usage examples
rawsrv.c - raw server application that transfers data from network to serial interface and
vice versa
wdtimer.c - Watchdog Timer example
onrisc.h - OnRISC hardware API header file
Makefile - the makefile to produce examples. Following targets can be created:
all - creates ioctls, ioctls2 and rawsrv executables
doc - creates doxygen documentation in doc folder
clean - deletes executables
distclean - executes clean and in addition removes doc folder
onrisc.doxyfile - doxygen configuration file
Execute make and you’ll get three above mentioned executables (see Figure 1).
You can start with an ioctls example that reads and changes the LEDs (Power LED, WLAN
LED etc.), reads the reset push button status and digital IO registers:
./ioctls
After that you’ll see your LEDs blinking and explaining outputs on your terminal. For further
information about software development for the OnRISC refer to Section 5.
2.4.2. OMAP3 based Devices
Log in into the desktop environment, open terminal and go to /home/user/examples/qt-simple-window.
Execute:
1. qmake
2. make
3. ./simple
You’ll get a simple window with “Simple example” caption. For further information about software
development for the OnRISC refer to Section 5.
May 2014 OnRISC User Manual 14