Description: 1, the makefile in the CROSS =/usr/local/arm/2.95.3/bin/arm-linux- CFLAGS+ =- I/usr/local/src/2.4.18-rmk7/include CFLAGS+ =- I/usr/local/src/2.4.18-rmk7/include/linux CFLAGS+ =- I/usr/local/arm/2.95.3/arm-linux/include changed the path on your host. 2,# make, to compile driver modules. 3,# export PATH = $ PATH:/usr/local/arm/2.95.3/bin// depends on your host on the path of the cross compiler tool# arm-linux-gcc-o gpio_test gpio_test.c// compile the application procedures for the ultimate in your current folder will be generated under the two documents gpiodrv.o and gpio_test. 4,# mkdir/tmp/1 5, through the ftp way to gpiodrv.o File Download gpio_test with the development of your board/tmp/1 directory. 6,# mknod/dev/gpio c 220 0// create a file node# insmod gpiodrv.o# chmod+ x gpio_test#./Gpio_test then four LED lights can be seen in the flicker of. :)
- [ARM-GPIO] - this the GPIO source code, to learn ARM
- [-1] - Huaqing vision of Linux-driven developme
- [gpio] - Embedded arm linux environment GPIO (Gen
- [2.9_GPIo] - arm gpio description for arm9 GPIO desig
- [linux] - Asia embedded linux embedded engineer tr
File list (Check if you may need any files):
gpio-test
.........\gpiodrv.c
.........\gpio_test.c
.........\Makefile
.........\readme.txt
.........\test
.........\....\gpiodrv.o
.........\....\gpio_test