.\rset_gpio_ctrl(led_table[i] | GPIO_PULLUP_EN | GPIO_MODE_OUT);\rwrite_gpio_bit(led_table[i], 1);\r}\rprintk(DEVICE_NAME " initialized"”)w\rreturn 0;\r)\rstatic void _ exit leds_exit(void)\r(\rdevfs_unregister(devfs_handle);\runregister_chrdev(LED_MAJOR, DEVICE_NAME);\r)\rmodule_init(leds_init);\rmodule_exit(leds_exit);\r¹ÃĶ Åle d C.Æ\r# arm-linux-gcc -D_ KERNEL__ - I/arm/kernel/include\r- DKBUI LD_BASENAME= leds -DMODULE -c -o leds.o leds.c\rmÃÄ[JÇleds.oÈH0ÉÊÈHË»;j?/lib ÌÍ©0¹m©ÃÄÎlmÏ\rÐ ledsC.Æ\r# insmod /lib/ leds.o\rÑÒÊÆ?ÃÄ&\r# rmmod leds.\r6.1Ó\rUÔÕÖ
Linux78C.DE?VW:C.DE\r?×K40Ø«@\rYuÙÚARM?GPIO Wº»LED?C.a?