Commit graph

68 commits

Author SHA1 Message Date
Mariano Alvira 659be7cbcc set the power to the lowest setting by default 2011-07-21 09:37:44 -04:00
Mariano Alvira 17e7827d43 set an initial default channel --- otherwise the maca isr hogs the
CPU.
2011-07-21 09:26:38 -04:00
Mariano Alvira b79cba9d7f don't do the autoack delay on RX if promiscuous --- this allows a
sniffer to catch 802.15.4 acks.
2011-04-30 15:24:10 -04:00
Mariano Alvira 41d0c7a7da fix channels 8 and 11, VCODivI table was incorrect. 2011-04-20 21:20:55 -04:00
Mariano Alvira c27e96f1e9 add adc support 2011-03-11 16:25:23 -05:00
Mariano Alvira 5012757673 add rx_time parameter and fill with *MACA_TIMESTAMP 2011-02-18 12:35:20 -05:00
Mariano Alvira c0b21702ed add a cast to a debug message to remove a warning. 2011-02-18 11:11:31 -05:00
Mariano Alvira a4ef14f204 strip cvs style keywords from everything 2011-02-12 18:12:45 -05:00
Mariano Alvira e951e350df print status messages with DEBUG_MACA 2011-02-12 15:34:21 -05:00
Mariano Alvira 0058fdc824 fixes to remove warnings when building with DEBUG_MACA 2011-02-12 15:33:19 -05:00
Mariano Alvira 7c7864eae2 add autoacking 2011-02-12 15:29:11 -05:00
Mariano Alvira e4f644f7b1 fix a race condition regarding advancement of the softclock. Without
this, the advancment would fail to trigger a tx cycle
occasionally. This would cause the packet to get deferred until the
next expiration of the softclock.
2011-01-17 07:41:44 -05:00
Mariano Alvira 36d0b2708d get LQI of received packets 2010-08-18 14:55:50 -04:00
Mariano Alvira 7f6c99cf9b increase the reception time now that tx_packet will advance the timer
as necessary.
2010-07-14 14:45:14 -04:00
Mariano Alvira 7d60dd7a6d in tx_packet, force an interrupt if the maca isn't doing anything so
that the transmit starts. Or if the maca is in a reception cycle,
advance the softclock timeout to now so that transmission starts as
soon as possible (immediately if a packet isn't being received or
right after reception finishes).
2010-07-14 13:59:28 -04:00
Mariano Alvira 6db3b903d2 make the debug prints in check_maca more specific 2010-07-14 13:58:47 -04:00
Mariano Alvira d75d193762 use 32 packets in the pool by default 2010-07-14 13:55:55 -04:00
Mariano Alvira de7ed4812d use PACKET_STATS for additional debugging 2010-05-23 13:00:21 -04:00
Mariano Alvira 4a9f086ceb force interrupts instead of calling maca_isr 2010-05-23 12:57:40 -04:00
Mariano Alvira 60f079c168 add additional debugging to check_maca 2010-05-23 12:51:03 -04:00
Mariano Alvira 64081c2fb8 small improvment to count_packets 2010-05-21 12:38:19 -04:00
Mariano Alvira 2fcfe11096 add debug messages to check_maca 2010-05-21 12:00:08 -04:00
Mariano Alvira 7a462268c8 increased the receive length --- this reduces the chance of missing a
packet which managing the radio.
2010-05-13 10:52:26 -04:00
Mariano Alvira 1460eac9cd move safe_irq_disable and irq_restore to isr.h 2010-05-12 16:40:44 -04:00
Mariano Alvira e0da07ae95 don't need to reinit maca when the clock stops, just call resume sync
instead.
2010-05-11 17:59:51 -04:00
Mariano Alvira 081c8ce098 decreased recv and tx timeouts. 2010-05-11 15:53:14 -04:00
Mariano Alvira 6195931bd4 add attribution and license headers to source files. TODO item about
start.S and printf.c
2010-05-08 13:03:36 -04:00
Mariano Alvira 14c4faf977 add check_maca and count_packets 2010-04-06 15:09:26 -04:00
Mariano Alvira 74643bbdac don't need to disable irqs in post anymore 2010-04-06 12:55:56 -04:00
Mariano Alvira e6a92481a1 initialize packet pointers properly. 2010-04-06 12:53:57 -04:00
Mariano Alvira 4f8fc7bdfd add packet bound checks as an option 2010-04-06 12:52:08 -04:00
Mariano Alvira 605898dab2 this needs to stay off. 2010-03-30 11:50:12 -04:00
Mariano Alvira c6d3073b9c make tx_head also visible 2010-03-29 19:28:01 -04:00
Mariano Alvira c6fc0e4d02 pull in set_demodulator_type and clean up maca.h a little (now you can
skim the top of the file and get a decent overview on how to use the
thing).
2010-03-29 11:51:06 -04:00
Mariano Alvira 097922e709 implement tx_callback 2010-03-26 13:33:49 -04:00
Mariano Alvira b39287cc2d move MAX_PACKET_SIZE to maca.h 2010-03-19 22:32:55 -04:00
Mariano Alvira 67db72908a make rx_head visible (in case you want to test if there are packets
waiting)
2010-03-19 22:31:24 -04:00
Mariano Alvira 5b713a1f26 rename radio_on off to maca_on off 2010-03-19 22:29:27 -04:00
Mariano Alvira 654a4349af remove vreg_init from maca 2010-03-19 22:27:41 -04:00
Mariano Alvira 092a182a5d protect set_channel and set_power from interrupts. 2010-03-16 10:34:11 -04:00
Mariano Alvira 2aa76aaacd init_phy was doing phy initialization and maca reset. maca_reset was
doing nothing useful. This patch factors init_phy and rewrites
maca_reset.
2010-03-16 10:31:35 -04:00
Mariano Alvira 07e6b65182 fix up long types in printfs
from Clive Stubbings.
2010-03-15 07:24:48 -04:00
Mariano Alvira fecb5e7bdb many warning cleanups.
Contributed by Clive Stubbings.
2010-03-13 07:30:47 -05:00
Mariano Alvira a61deb78f4 add a way to disable FCS checking. 2010-03-11 15:18:29 -05:00
Mariano Alvira 3cd4bf5768 clear the offset when freeing a packet 2010-03-10 17:59:04 -05:00
Mariano Alvira a5f8b58e07 debug PRINTF fixes 2010-03-10 15:35:13 -05:00
Mariano Alvira ecebd094bf fix radio_off for interrupts 2010-03-10 15:35:04 -05:00
Mariano Alvira db145ed8a4 removed some stale comments 2010-03-08 18:45:26 -05:00
Mariano Alvira ea2646e5ec implement rx callback 2010-03-08 18:12:31 -05:00
Mariano Alvira 8b73c61175 change the receive timeout to be 32 large packets 2010-03-08 17:39:04 -05:00