[tuxdroid-svn] r1104 - software_suite_v2/middleware/tuxdriver/trunk/src
Status: Beta
Brought to you by:
ks156
From: eFfeM <c2m...@c2...> - 2008-05-05 19:56:50
|
Author: eFfeM Date: 2008-05-05 21:56:40 +0200 (Mon, 05 May 2008) New Revision: 1104 Modified: software_suite_v2/middleware/tuxdriver/trunk/src/tux_leds.h Log: turned effect_type_t into a type (was a plain enum) Modified: software_suite_v2/middleware/tuxdriver/trunk/src/tux_leds.h =================================================================== --- software_suite_v2/middleware/tuxdriver/trunk/src/tux_leds.h 2008-05-05 12:23:15 UTC (rev 1103) +++ software_suite_v2/middleware/tuxdriver/trunk/src/tux_leds.h 2008-05-05 19:56:40 UTC (rev 1104) @@ -42,7 +42,7 @@ } leds_t; /** Types of effects applied when changing the intensity of the LEDs. */ -enum effect_type_t +typedef enum { UNAFFECTED, /**< Don't update the effect parameters. This can either be the last effect set by software, or by firmware in the @@ -67,7 +67,7 @@ GRADIENT_DELTA, /**< Gradient effect, the intensity changes by a delta value of 'effect.step'. 'effect.speed' represents the number of seconds it should take to apply the effect. */ -}; +} effect_type_t; /** Fading or gradient effect. This structure holds the type of effect and the * corresponding parameters. @@ -75,7 +75,7 @@ * effect_type_t. */ typedef struct { - enum effect_type_t type; /**< Type of effect. */ + effect_type_t type; /**< Type of effect. */ float speed; /**< Speed of the effect, used in both gradients and fading effects. */ int step; /**< Intensity step of the gradient effect. Not |