Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Nov 2003 01:47:30 -0800 (PST)
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/led led.c led.h
Message-ID:  <200311030947.hA39lUCT014459@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
phk         2003/11/03 01:47:30 PST

  FreeBSD src repository

  Added files:
    sys/dev/led          led.c led.h 
  Log:
  Add a generic LED driver for flashing lamps.
  
  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.
  
  Revision  Changes    Path
  1.1       +258 -0    src/sys/dev/led/led.c (new)
  1.1       +21 -0     src/sys/dev/led/led.h (new)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311030947.hA39lUCT014459>