aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/led
Commit message (Collapse)AuthorAgeFilesLines
* Device megapatch 4/6:Poul-Henning Kamp2004-02-211-0/+2
| | | | | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags. Notes: svn path=/head/; revision=126080
* Use standard style for cdevsw initialization.Poul-Henning Kamp2004-02-141-2/+2
| | | | Notes: svn path=/head/; revision=125810
* DUH!Poul-Henning Kamp2003-12-121-10/+16
| | | | | | | | | | Write 100 times for tomorrow: I will never again free(9) a modified pointer. Pointy Hat: yeah, yeah, yeah, can you just put it in the pile over there... Notes: svn path=/head/; revision=123494
* Correct usage of mtx_init() API. This is not a functional change sinceDon Lewis2003-12-071-1/+1
| | | | | | | | | the code happened to work because MTX_DEF and NULL are both defined as 0. Reviewed by: phk Notes: svn path=/head/; revision=123272
* Improve semantics of the 'sequence' command to led(4) devices:Poul-Henning Kamp2003-11-271-12/+12
| | | | | | | | | use lowercase for off and upper case for on. Approved by: re@ Notes: svn path=/head/; revision=123014
* Avoid NULL pointer dereference.Poul-Henning Kamp2003-11-231-1/+2
| | | | | | | Approved by: re@ Notes: svn path=/head/; revision=122963
* Fix prototypoPoul-Henning Kamp2003-11-031-1/+1
| | | | Notes: svn path=/head/; revision=121957
* Get word spacing right in morse mode.Poul-Henning Kamp2003-11-032-1/+3
| | | | | | | Fix a prototype. Notes: svn path=/head/; revision=121956
* Add a generic LED driver for flashing lamps.Poul-Henning Kamp2003-11-032-0/+279
The hardware driver decides the name under /dev/led and provides the function to turn the lamp on/off. All leds are serviced by a single timeout which runs at a basic rate of hz/10. The LED is controlled by ascii strings as follows. 0 Turn off. 1 Turn on. f Flash: _- f2 Flash: __-- f3 Flash: ___--- f4...f9 etc. d%d Digits. "d12": -__________-_-______________________________ s%s String, roll your own: 'a-j' gives on for (1...10)/10 sec. 'A-J' gives on for (1...10)/10 sec. 'sAaAbBa': _-_--__- m%s Morse '.' dot '-' dash ' ' letter space '\n' word space My mdoc skills do not reach to express that. Notes: svn path=/head/; revision=121941