/*
- * "Copyright (c) 2000-2004 The Regents of the University of California.
+ * "Copyright (c) 2000-2004 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.
- *
+ *
* IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
* CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
+ *
* THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
#ifndef DELUGEPAGETRANSFER_H
#define DELUGEPAGETRANSFER_H
-#if defined(PLATFORM_TELOSB)
+#if defined(PLATFORM_TELOSB) || defined(PLATFORM_EPIC)
#include "extra/telosb/TOSBoot_platform.h"
-#elif defined(PLATFORM_MICAZ)
+#elif defined(PLATFORM_MICAZ) || defined(PLATFORM_IRIS)
#include "extra/micaz/TOSBoot_platform.h"
+#elif defined(PLATFORM_MULLE)
+ #include "extra/mulle/TOSBoot_platform.h"
+#elif defined(PLATFORM_TINYNODE)
+ #include "extra/tinynode/TOSBoot_platform.h"
#else
#error "Target platform is not currently supported by Deluge T2"
#endif
#include <message.h>
-#define AM_DELUGEADVMSG 161
-#define AM_DELUGEREQMSG 162
-#define AM_DELUGEDATAMSG 163
+#define AM_DELUGEADVMSG 0x50
+#define AM_DELUGEREQMSG 0x51
+#define AM_DELUGEDATAMSG 0x52
typedef int32_t object_id_t;
typedef nx_int32_t nx_object_id_t;
DELUGE_REBOOT_DELAY = 4,
DELUGE_FAILED_SEND_DELAY = 16,
DELUGE_MIN_DELAY = 16,
- DELUGE_DATA_OFFSET = 128,
+// DELUGE_DATA_OFFSET = 128,
DELUGE_IDENT_SIZE = 128,
DELUGE_INVALID_ADDR = (0x7fffffffL),
+ DELUGE_MIN_ADV_PERIOD_LOG2 = 9,
DELUGE_MAX_REQ_DELAY = (0x1L << (DELUGE_MIN_ADV_PERIOD_LOG2 - 1)),
DELUGE_NACK_TIMEOUT = (DELUGE_MAX_REQ_DELAY >> 0x1),
DELUGE_MAX_IMAGE_SIZE = (128L * 1024L),
DELUGE_INVALID_OBJID = 0xff,
DELUGE_INVALID_PKTNUM = 0xff,
DELUGE_INVALID_PGNUM = 0xff,
+ DELUGE_QSIZE = 2
};
typedef struct DelugeAdvTimer {