mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-03 00:34:24 +00:00
add the 4 byte preamble
This commit is contained in:
parent
024448e65e
commit
a04a69480b
12
lib/maca.c
12
lib/maca.c
@ -130,7 +130,7 @@ void post_receive(void) {
|
|||||||
*MACA_TMREN = (1 << maca_tmren_sft);
|
*MACA_TMREN = (1 << maca_tmren_sft);
|
||||||
/* start the receive sequence */
|
/* start the receive sequence */
|
||||||
enable_irq(MACA);
|
enable_irq(MACA);
|
||||||
*MACA_CONTROL = ( (1 << maca_ctrl_asap) |
|
*MACA_CONTROL = ( (1 << maca_ctrl_asap) | ( 4 << PRECOUNT) |
|
||||||
(1 << maca_ctrl_auto) |
|
(1 << maca_ctrl_auto) |
|
||||||
(1 << maca_ctrl_prm) |
|
(1 << maca_ctrl_prm) |
|
||||||
(maca_ctrl_seq_rx));
|
(maca_ctrl_seq_rx));
|
||||||
@ -187,14 +187,14 @@ void post_tx(void) {
|
|||||||
// *MACA_TMREN = (1 << maca_tmren_cpl);
|
// *MACA_TMREN = (1 << maca_tmren_cpl);
|
||||||
|
|
||||||
enable_irq(MACA);
|
enable_irq(MACA);
|
||||||
/* *MACA_CONTROL = ( (1 << maca_ctrl_prm) | ( 4 << PRECOUNT) |
|
*MACA_CONTROL = ( (1 << maca_ctrl_prm) | ( 4 << PRECOUNT) |
|
||||||
(maca_ctrl_mode_no_cca << maca_ctrl_mode) |
|
|
||||||
(1 << maca_ctrl_asap) |
|
|
||||||
(maca_ctrl_seq_tx)); */
|
|
||||||
*MACA_CONTROL = ( (1 << maca_ctrl_prm) |
|
|
||||||
(maca_ctrl_mode_no_cca << maca_ctrl_mode) |
|
(maca_ctrl_mode_no_cca << maca_ctrl_mode) |
|
||||||
(1 << maca_ctrl_asap) |
|
(1 << maca_ctrl_asap) |
|
||||||
(maca_ctrl_seq_tx));
|
(maca_ctrl_seq_tx));
|
||||||
|
/* *MACA_CONTROL = ( (1 << maca_ctrl_prm) |
|
||||||
|
(maca_ctrl_mode_no_cca << maca_ctrl_mode) |
|
||||||
|
(1 << maca_ctrl_asap) |
|
||||||
|
(maca_ctrl_seq_tx)); */
|
||||||
}
|
}
|
||||||
|
|
||||||
void tx_packet(volatile packet_t *p) {
|
void tx_packet(volatile packet_t *p) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user