SEARCH
TOOLBOX
LANGUAGES
modified on 5 December 2012 at 22:22 ••• 127,956 views

Electrum Examples

From Manuals

(Difference between revisions)
Jump to: navigation, search
Line 46: Line 46:
|}
|}
-
Interrupt handlers and other applications that require full control of timing or preemption should implement device drivers or modules in kernel space. The [[ARM9_Books|Linux Device Drivers (LDD) book]] covers most concepts required for device driver development. Note that a [http://lwn.net/Kernel/LDD3/ free online version of the LDD book] is available. The [[Electrum_Documentation#Software_Updates|kernel source code]] also contains device drivers for Atmel processors.
+
Interrupt handlers and other applications that require full control of timing or preemption should implement device drivers or modules in kernel space. The [[ARM9_Books|Linux Device Drivers (LDD) book]] covers most concepts required for device driver development. Note that a [[ARM9 Books|free online version of the LDD book]] is available. The [[Electrum_Documentation#Software_Updates|kernel source code]] also contains device drivers for Atmel processors.

Revision as of 19:59, 4 January 2011

These code examples will help you get started with your user space applications on the Micromint Electrum. Our support staff (support@micromint.com) can assist you with questions on specific functions.

Since Linux implements virtual memory, there is no direct access to processor registers. One popular alternative to access processor registers in user space is to open a handle to /dev/mem and then use mmap() to map a virtual memory address to a physical memory address. These examples use this approach to access processor registers. The peripheral code is adapted from the Atmel AT91 Softpack library.

The default compiler is the EmDebian cross-compiler. To choose another compiler set the COMPILER variable on the Makefile.

#   On-board gcc       COMPILER=gcc
#   EmDebian (default) COMPILER=emdebian
#   Sourcery G++ Lite  COMPILER=sourcerygxx
Electrum Examples
Example Description Electrum 100
adc Test processor ADCs Image:checkmark.gif
blinky Blinks user LED Image:checkmark.gif
button Uses button to set LED Image:checkmark.gif
dac_spi Test SPI DACs (requires I/O option) Image:checkmark.gif
hello Simple console output Image:checkmark.gif
littlec Little C interpreter Image:checkmark.gif
minibasic Simple BASIC interpreter Image:checkmark.gif

Interrupt handlers and other applications that require full control of timing or preemption should implement device drivers or modules in kernel space. The Linux Device Drivers (LDD) book covers most concepts required for device driver development. Note that a free online version of the LDD book is available. The kernel source code also contains device drivers for Atmel processors.