|
|
Jump to this file's LXR Page |
|
|
File: [CENS] / tos-contrib / include / MyLedsC.nc
(download)
/
(as text)
Revision: 1.1, Mon Jul 11 03:12:46 2005 UTC (4 years, 4 months ago) by nithya Branch: MAIN CVS Tags: pregeonet, acoustic-05-18-06, PRE_TOSNIC_FIX, PRE_64BIT, LAURA_CALIBRATION_EXPERIMENTS, HEAD, ESS_RELEASE_3_5, ESS_RELEASE_3_4, ESS_RELEASE_3_2, ESS_RELEASE_3_1, ESS_RELEASE_3_0, ESS_RELEASE_2_0, ESS_CONNECTIVITY, ESS_CENTROUTE_TESTING, ESS2-CMS-V1_5_pretest, ESS2-CMS-V1_4cMergeSympathy, EMSTAR_RELEASE_2_5, CYCLOPS_RELEASE_CANDIDATE_2_0, CYCLOPS_PRERELEASE_STABLE, CENTROUTE_EMSTAR_SOCKETS, BG_1_0, BANGLADESH_ARSENIC_1_2, BANGLADESH_ARSENIC_1_1, AMARSS_JR_DEPLOYMENT_6_05_07 Added a component called MyLedsC - so that we can disable LEDs by adding to the Makefile: CFLAGS += -DDISABLE_LEDS this avoids the hassle (and danger) of having to go into every file that includes the LedsC comopnent and wiring this to NoLeds in order to disable Leds (current method). |
configuration MyLedsC {
provides interface Leds;
}
implementation {
components
#ifdef DISABLE_LEDS
NoLeds;
#else
LedsC;
#endif
#ifdef DISABLE_LEDS
Leds = NoLeds;
#else
Leds = LedsC;
#endif
}
| CENS CVS Mailing List |
Powered by ViewCVS 0.9.2 |