/* --------------------------------------------------------------------------- * leds.h - v0.1 (c) 2007 Micro-key bv * --------------------------------------------------------------------------- * Micro-key bv * Industrieweg 28, 9804 TG Noordhorn * Postbus 92, 9800 AB Zuidhorn * The Netherlands * Tel: +31 594 503020 * Fax: +31 594 505825 * Email: support@microkey.nl * Web: www.microkey.nl * --------------------------------------------------------------------------- * Description: LED-driver interface. * --------------------------------------------------------------------------- * Version(s): 0.1, 10-09-2007, Marcel Mulder. * Creation. * --------------------------------------------------------------------------- */ #ifndef __LEDS_H__ #define __LEDS_H__ /** \file leds.h \brief LED driver interface. */ /* --------------------------------------------------------------------------- * System include files. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Application include files. * --------------------------------------------------------------------------- */ #include "lpc23xx.h" #include "types.h" /* --------------------------------------------------------------------------- * Constant and macro definitions. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Type definitions. * --------------------------------------------------------------------------- */ typedef enum { LED0, /**< First LED */ LED1 /**< Second LED*/ } t_led_ids; /* --------------------------------------------------------------------------- * Variable declarations. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Function declarations. * --------------------------------------------------------------------------- */ /** \brief Initialize of leds interface.*/ void ledInit( void ); /** \brief Sets the status of a LED.*/ void ledSet( t_led_ids ledId, BOOLEAN on ); /** \brief Returns the status of a LED.*/ BOOLEAN ledGet( t_led_ids ledId ); /** \brief Toggles the status of a LED.*/ void ledToggle( t_led_ids ledId ); #endif /* __LEDS_H__ */