Re: apu1c led driver

看板FB_hackers作者時間11年前 (2014/05/08 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/9 (看更多)
On Wed, May 07, 2014 at 10:19:39AM +0200, Ermal Lu??i wrote: > Hello, > > find attached the driver as written today. > It needs some reshaping to be integrate with led(4) and gpio(4). > > I will see to have the reshaping done and submit it for inclusion. > The idea as it is today is that it expses an gpioapu device to which you > can write a string with 3 digits "101" for each led. > If you read from this device you just get the status of the switch on the > APU. I was about to submit a version of my own. Instead I will take some code from my verison and add it to yours. I attached a modified version that uses the led(4) framework to create: /dev/led/led1, /dev/led/led2, and /dev/led/led3. I am curious about the gpioapu_close() function. what is it attempting to do? My first thought was it was tring to put the leds back to a know state. But it is writing to the mode switch? Larry -- ------------------------------------------------------------------------ Larry Baird Global Technology Associates, Inc. 1992-2012 | http://www.gta.com Celebrating Twenty Years of Software Innovation | Orlando, FL Email: lab@gta.com | TEL 407-380-0220 _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #1JQdJVuY (FB_hackers)
文章代碼(AID): #1JQdJVuY (FB_hackers)