summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1339f25)
Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/
components IPAddressC;
BaseStationP.IPAddress -> IPAddressC;
components IPAddressC;
BaseStationP.IPAddress -> IPAddressC;
+#ifdef PLATFORM_IRIS
+ BaseStationP.RadioChannel -> Radio;
+#else
components CC2420ControlC;
BaseStationP.CC2420Config -> CC2420ControlC;
components CC2420ControlC;
BaseStationP.CC2420Config -> CC2420ControlC;
#endif
#include "AM.h"
#include "Serial.h"
#endif
#include "AM.h"
#include "Serial.h"
interface PacketLink;
interface LowPowerListening;
interface PacketLink;
interface LowPowerListening;
+
+#ifdef PLATFORM_IRIS
+ interface RadioChannel;
+#else
case CONFIG_ECHO:
break;
case CONFIG_SET_PARM:
case CONFIG_ECHO:
break;
case CONFIG_SET_PARM:
+#ifdef PLATFORM_IRIS
+ // we should check the return value, hope it works
+ call RadioChannel.setChannel(cmd->rf.channel);
+ call IPAddress.setShortAddr(cmd->rf.addr);
+#else
call CC2420Config.setChannel(cmd->rf.channel);
// IPAddress calls sync() for you, I think, so we'll put it second
call IPAddress.setShortAddr(cmd->rf.addr);
call CC2420Config.sync();
call CC2420Config.setChannel(cmd->rf.channel);
// IPAddress calls sync() for you, I think, so we'll put it second
call IPAddress.setShortAddr(cmd->rf.addr);
call CC2420Config.sync();
radioRetries = cmd->retx.retries;
radioDelay = cmd->retx.delay;
break;
radioRetries = cmd->retx.retries;
radioDelay = cmd->retx.delay;
break;
+#ifdef PLATFORM_IRIS
+ event void RadioChannel.setChannelDone() { }
+#else
event void CC2420Config.syncDone(error_t error) {
event void CC2420Config.syncDone(error_t error) {
event void ConfigureSend.sendDone(message_t *msg, error_t error) {
echo_busy = FALSE;
event void ConfigureSend.sendDone(message_t *msg, error_t error) {
echo_busy = FALSE;
-#if defined(PLATFORM_MICA) || defined(PLATFORM_MICA2) || defined(PLATFORM_MICA2DOT) || defined(PLATFORM_MICAZ)
+#if defined(PLATFORM_MICA) || defined(PLATFORM_MICA2) || defined(PLATFORM_MICA2DOT) || defined(PLATFORM_MICAZ) || defined(PLATFORM_IRIS)
cli();
wdt_enable(0);
while (1) {
cli();
wdt_enable(0);
while (1) {