Z1: configure SFD timestamp with flag CC2420_CONF_TIMESTAMP, for consistency the Sky platform and with cc2420.c

This commit is contained in:
Simon Duquennoy 2015-09-01 10:03:44 +02:00
parent 34280338ac
commit db1635cf3c

View file

@ -34,13 +34,17 @@
#include "cc2420.h"
#include "isr_compat.h"
#ifdef CC2420_CONF_SFD_TIMESTAMPS
#define CONF_SFD_TIMESTAMPS CC2420_CONF_SFD_TIMESTAMPS
#endif /* CC2420_CONF_SFD_TIMESTAMPS */
#ifndef CONF_SFD_TIMESTAMPS
#define CONF_SFD_TIMESTAMPS 0
#endif /* CONF_SFD_TIMESTAMPS */
#ifdef CONF_SFD_TIMESTAMPS
#include "cc2420-arch-sfd.h"
#endif
#endif /* CONF_SFD_TIMESTAMPS */
/*---------------------------------------------------------------------------*/
#if 0
@ -67,7 +71,7 @@ cc2420_arch_init(void)
#if CONF_SFD_TIMESTAMPS
cc2420_arch_sfd_init();
#endif
#endif /* CONF_SFD_TIMESTAMPS */
CC2420_SPI_DISABLE(); /* Unselect radio. */
}