removed platform dependent loop-count from cc2420 - moved to platform config instead

This commit is contained in:
joxe 2010-06-21 19:48:00 +00:00
parent a5d7b197eb
commit bc398ca546

View file

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* @(#)$Id: cc2420.c,v 1.54 2010/06/21 19:09:35 joxe Exp $ * @(#)$Id: cc2420.c,v 1.55 2010/06/21 19:48:00 joxe Exp $
*/ */
/* /*
* This code is almost device independent and should be easy to port. * This code is almost device independent and should be easy to port.
@ -362,12 +362,10 @@ cc2420_transmit(unsigned short payload_len)
* Note that we may have to wait up to 320 us (20 symbols) before * Note that we may have to wait up to 320 us (20 symbols) before
* transmission starts. * transmission starts.
*/ */
#ifdef TMOTE_SKY #ifndef CC2420_CONF_SYMBOL_LOOP_COUNT
#define LOOP_20_SYMBOLS 800 /* 326us (msp430 @ 2.4576MHz) */ #error CC2420_CONF_SYMBOL_LOOP_COUNT needs to be set!!!
#elif __AVR__ #else
#define LOOP_20_SYMBOLS 500 /* XXX */ #define LOOP_20_SYMBOLS CC2420_CONF_SYMBOL_LOOP_COUNT
#elif ZOLERTIA_Z1
#define LOOP_20_SYMBOLS 1302 /* 326us msp430X @ 8MHz */
#endif #endif
#if WITH_SEND_CCA #if WITH_SEND_CCA