Merge branch 'master' of git://git.devl.org/git/malvira/libmc1322x

This commit is contained in:
Mariano Alvira 2011-01-17 09:56:00 -05:00
commit 53e4a06ac9
2 changed files with 18 additions and 1 deletions

17
TODO
View File

@ -14,3 +14,20 @@
- beacon sync
- CCA and ED.
- auto-acking and ack managment
keep a set of bit fields, one bit per sequence number (DSN), so 32 bytes
total.
Set them all to 1 initially. When a DSN is sent, clear the bit. Set
the bit when the ack is received.
Do anything special with sent but unacked packets? Maybe, so you can
retransmit them.
Dosen't look like contiki ever uses 802.15.4 acking: grep ACKFRAME
not much point to implement it here unless you also plan to use in
in contiki (pretty substantial change to core Contiki).
also you ack the data after checking it's for you. so autoack relies
on setting up the hardware addressing.

View File

@ -461,7 +461,7 @@ void tx_packet(volatile packet_t *p) {
if(bit_is_set(*NIPEND, INT_NUM_MACA)) { *INTFRC = (1 << INT_NUM_MACA); }
if(last_post == NO_POST) { *INTFRC = (1<<INT_NUM_MACA); }
/* if we are in a reception cycle, advance the softclock timeout to now */
if(last_post == RX_POST) { *MACA_SFTCLK = *MACA_CLK; }
if(last_post == RX_POST) { *MACA_SFTCLK = *MACA_CLK + CLK_PER_BYTE; }
return;
}