You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
705 B
45 lines
705 B
/** @file led.h
|
|
@author M. P. Hayes, UCECE
|
|
@date 15 Feb 2003
|
|
@brief LED driver.
|
|
|
|
@defgroup LED LED driver
|
|
|
|
This module implements a simple LED driver.
|
|
|
|
Here's an example application that turns on a LED:
|
|
|
|
@code
|
|
#include "led.h"
|
|
|
|
void main (void)
|
|
{
|
|
system_init ();
|
|
led_init ();
|
|
|
|
led_set (LED1, 1);
|
|
|
|
while (1)
|
|
{
|
|
}
|
|
}
|
|
@endcode
|
|
*/
|
|
|
|
#ifndef LED_H
|
|
#define LED_H
|
|
|
|
#include "system.h"
|
|
|
|
|
|
/** Set LED to desired state.
|
|
@param led LED to select
|
|
@param state desired state (non-zero for on). */
|
|
void led_set (uint8_t led, bool state);
|
|
|
|
|
|
/** Initialise LED driver. */
|
|
void led_init (void);
|
|
|
|
#endif
|