MainC.Boot <- RandRWC;
RandRWC.SerialControl -> SerialActiveMessageC;
- RandRWC.AMSend -> SerialActiveMessageC.AMSend[1];
+ RandRWC.AMSend -> SerialActiveMessageC.AMSend[139];
RandRWC.BlockRead -> BlockStorageC.BlockRead;
RandRWC.BlockWrite -> BlockStorageC.BlockWrite;
RandRWC.Leds -> LedsC;
int count, testCount;
uint32_t addr, len;
uint16_t offset;
- message_t reportmsg;
+ message_t reportMsg;
void done();
void report(error_t e) {
- uint8_t *msg = call AMSend.getPayload(&reportmsg, 1);
+ uint8_t *msg = call AMSend.getPayload(&reportMsg, 1);
msg[0] = e;
- if (call AMSend.send(AM_BROADCAST_ADDR, &reportmsg, 1) != SUCCESS)
+ if (call AMSend.send(AM_BROADCAST_ADDR, &reportMsg, 1) != SUCCESS)
call Leds.led0On();
}
MainC.Boot <- RandRWC;
RandRWC.SerialControl -> SerialActiveMessageC;
- RandRWC.AMSend -> SerialActiveMessageC.AMSend[1];
+ RandRWC.AMSend -> SerialActiveMessageC.AMSend[139];
RandRWC.LogRead -> LogStorageC.LogRead;
RandRWC.LogWrite -> LogStorageC.LogWrite;
RandRWC.Leds -> LedsC;
uint8_t data[NRECS * RECSIZE], rdata[RECSIZE];
int count, testCount;
- message_t reportmsg;
+ message_t reportMsg;
void report(error_t e) {
- uint8_t *msg = call AMSend.getPayload(&reportmsg, 1);
+ uint8_t *msg = call AMSend.getPayload(&reportMsg, 1);
msg[0] = e;
- if (call AMSend.send(AM_BROADCAST_ADDR, &reportmsg, 1) != SUCCESS)
+ if (call AMSend.send(AM_BROADCAST_ADDR, &reportMsg, 1) != SUCCESS)
call Leds.led0On();
}
MainC.Boot <- RandRWC;
RandRWC.SerialControl -> SerialActiveMessageC;
- RandRWC.AMSend -> SerialActiveMessageC.AMSend[1];
+ RandRWC.AMSend -> SerialActiveMessageC.AMSend[139];
RandRWC.ConfigStorage -> ConfigStorageC.ConfigStorage;
RandRWC.ConfigMount -> ConfigStorageC.Mount;
RandRWC.Leds -> LedsC;
uint16_t len;
} ops[NWRITES];
- message_t reportmsg;
+ message_t reportMsg;
void done();
}
void report(error_t e) {
- uint8_t *msg = call AMSend.getPayload(&reportmsg, 1);
+ uint8_t *msg = call AMSend.getPayload(&reportMsg, 1);
msg[0] = e;
- if (call AMSend.send(AM_BROADCAST_ADDR, &reportmsg, 1) != SUCCESS)
+ if (call AMSend.send(AM_BROADCAST_ADDR, &reportMsg, 1) != SUCCESS)
call Leds.led0On();
}
MainC.Boot <- RandRWC;
RandRWC.SerialControl -> SerialActiveMessageC;
- RandRWC.AMSend -> SerialActiveMessageC.AMSend[1];
+ RandRWC.AMSend -> SerialActiveMessageC.AMSend[139];
RandRWC.LogRead -> LogStorageC.LogRead;
RandRWC.LogWrite -> LogStorageC.LogWrite;
RandRWC.Leds -> LedsC;
int count, testCount;
uint32_t len;
uint16_t offset;
- message_t reportmsg;
+ message_t reportMsg;
void report(error_t e) {
- uint8_t *msg = call AMSend.getPayload(&reportmsg, 1);
+ uint8_t *msg = call AMSend.getPayload(&reportMsg, 1);
if (msg)
{
msg[0] = e;
- if (call AMSend.send(AM_BROADCAST_ADDR, &reportmsg, 1) == SUCCESS)
+ if (call AMSend.send(AM_BROADCAST_ADDR, &reportMsg, 1) == SUCCESS)
return;
}
call Leds.led0On();
volumes-<chip>.xml file in this directory describing a 64kB volume
named SYNCLOG for your flash chip.
-A successful test will send serial messages (id 11) with increasing
+A successful test will send serial messages (id 139) with increasing
sequence numbers (approximately 2 messages every 5 seconds) - the
easiest way to see these messages is to connect the mote with the
SyncLog code to your PC and run the java Listen tool:
SyncLogC.Timer1 -> Timer1;
SyncLogC.LogWrite -> LogStorageC;
SyncLogC.LogRead -> LogStorageC;
- SyncLogC.AMSend -> SerialActiveMessageC.AMSend[11];
+ SyncLogC.AMSend -> SerialActiveMessageC.AMSend[139];
SyncLogC.AMControl -> SerialActiveMessageC;
}