Hammer LED Userspace App

From eLinux.org
Revision as of 16:56, 12 May 2008 by Prpplague (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is an example program that uses the /dev/mem device node to access the physical memory registers directly([[media:ledblink.c|source)

Usage

to compile the source use your toolchain command line

#arm-linux-uclibc-gcc -o ledblink ledblink.c

then transfer the ledblink binary to the hammer file system. make sure that the permissions on the file are set to executable

#chmod 755 ledblink