Lines Matching +full:software +full:- +full:controlled

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
36 * This software is derived from work of Atsushi Onoe; his contribution
44 * by the driver - eg, calls to ath_hal_gettsf32().
107 * Software LED driver routines.
115 * Configure the hardware for software and LED blinking.
130 /* Software LED blinking - GPIO controlled LED */ in ath_led_config()
131 if (sc->sc_softled) { in ath_led_config()
132 ath_hal_gpioCfgOutput(sc->sc_ah, sc->sc_ledpin, in ath_led_config()
134 ath_hal_gpioset(sc->sc_ah, sc->sc_ledpin, !sc->sc_ledon); in ath_led_config()
137 /* Hardware LED blinking - MAC controlled LED */ in ath_led_config()
138 if (sc->sc_hardled) { in ath_led_config()
145 if (sc->sc_led_pwr_pin > 0) in ath_led_config()
146 ath_hal_gpioCfgOutput(sc->sc_ah, sc->sc_led_pwr_pin, in ath_led_config()
148 if (sc->sc_led_net_pin > 0) in ath_led_config()
149 ath_hal_gpioCfgOutput(sc->sc_ah, sc->sc_led_net_pin, in ath_led_config()
163 sc->sc_blinking = 0; in ath_led_done()
175 ath_hal_gpioset(sc->sc_ah, sc->sc_ledpin, !sc->sc_ledon); in ath_led_off()
176 callout_reset(&sc->sc_ledtimer, sc->sc_ledoff, ath_led_done, sc); in ath_led_off()
186 ath_hal_gpioset(sc->sc_ah, sc->sc_ledpin, sc->sc_ledon); in ath_led_blink()
187 sc->sc_blinking = 1; in ath_led_blink()
188 sc->sc_ledoff = off; in ath_led_blink()
189 callout_reset(&sc->sc_ledtimer, on, ath_led_off, sc); in ath_led_blink()
195 sc->sc_ledevent = ticks; /* time of last event */ in ath_led_event()
196 if (sc->sc_blinking) /* don't interrupt active blink */ in ath_led_event()
198 ath_led_blink(sc, sc->sc_hwmap[rix].ledon, sc->sc_hwmap[rix].ledoff); in ath_led_event()