00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _RTAI_LEDS_H
00022 #define _RTAI_LEDS_H
00023
00024 #include <rtai_types.h>
00025
00026 #if defined(CONFIG_RTAI_INTERNAL_LEDS_SUPPORT) && defined(CONFIG_RTAI_LEDS)
00027
00028 #include <asm/rtai_leds.h>
00029
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033
00034 int __rtai_leds_init(void);
00035
00036 void __rtai_leds_exit(void);
00037
00038 void rt_leds_set_mask(unsigned int mask,
00039 unsigned int value);
00040
00041 void rt_toggle_leds(unsigned int l);
00042
00043 void rt_reset_leds(unsigned int l);
00044
00045 void rt_set_leds(unsigned int l);
00046
00047 void rt_clear_leds(void);
00048
00049 unsigned int rt_get_leds(void);
00050
00051 void rt_set_leds_port(int p);
00052
00053 void rt_config_leds(unsigned int type,
00054 void (*func)(unsigned long p, unsigned int l),
00055 unsigned long p);
00056
00057 #ifdef __cplusplus
00058 }
00059 #endif
00060
00061 #endif
00062
00063 #endif