2 * Copyright © 2012 Keith Packard <keithp@keithp.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
28 #define AO_LED_TYPE uint8_t
31 /* Turn on the specified LEDs */
33 ao_led_on(AO_LED_TYPE colors);
35 /* Turn off the specified LEDs */
37 ao_led_off(AO_LED_TYPE colors);
39 /* Set all of the LEDs to the specified state */
41 ao_led_set(AO_LED_TYPE colors);
43 /* Toggle the specified LEDs */
45 ao_led_toggle(AO_LED_TYPE colors);
47 /* Turn on the specified LEDs for the indicated interval */
49 ao_led_for(AO_LED_TYPE colors, uint16_t ticks) __reentrant;
51 /* Initialize the LEDs */
53 ao_led_init(AO_LED_TYPE enable);
55 #endif /* _AO_LED_H_ */