Commit graph

128 commits

Author SHA1 Message Date
Jim Paris
166fa97ef6 Fix ordering of UART bitfields 2011-08-31 22:27:47 -04:00
Mariano Alvira
3034ac429d add adc.h to mc1322x.h 2011-08-01 19:49:13 -04:00
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
76a8e49262 add i2c code from Hedde Bosman 2011-07-18 07:11:05 -04:00
Mariano Alvira
6b45e353e1 add uart1, uart2 and a common uart.h include 2011-07-08 18:48:19 -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
81a0a0356d add watchdog timer example 2011-03-22 14:51:08 -04:00
Mariano Alvira
c27e96f1e9 add adc support 2011-03-11 16:25:23 -05:00
Mariano Alvira
b2b18b37fc add gpio-utils 2011-03-11 16:24:57 -05:00
Mariano Alvira
c7dc2a45a4 add pwm support 2011-03-11 16:24:50 -05:00
Mariano Alvira
c967150038 add rtc support 2011-03-11 15:53:13 -05:00
Mariano Alvira
4d6562a0bc support ASM encryption module 2011-02-28 18:44:42 -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
377f849a02 moved timer.c and .h into tmr.c and .h so that these names don't
conflict with the timers in Contiki.
2011-01-17 10:10:38 -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
a27dde6d17 add timer setup routines 2010-11-21 17:05:49 -05:00
Mariano Alvira
3ec4b267fc use stdint.h instead of custom types.h
stdint.h is more portable across compilers
2010-11-10 15:52:17 -05:00
Mariano Alvira
43d23d4764 update ring_osc_on and _off to the new bit structs 2010-11-06 22:12:46 -04:00
Jim Paris
1b4de5d8e7 Add gpio_set and gpio_reset
Use them like gpio_set(GPIO_xx) and gpio_reset(GPIO_xx).
These macros efficiently set the DATA_SET and DATA_RESET bits without
reading the registers first, as a direct GPIO->DATA_SET.GPIO_xx would do
2010-10-16 13:28:20 -04:00
Jim Paris
e6bd2a1318 Name the GPIO structure so we can set multiple bits at once 2010-10-16 13:28:20 -04:00
Jim Paris
76563958fe Add the disable_int({}) macro
This is similar to safe_irq_enable and disable
2010-10-16 13:27:20 -04:00
Jim Paris
03293b60ad Fix a makefile dependency with libraries
Using the implicit rules for libraries leads to problems if one of the
objects fails to build, but the others are still OK.  Just make all
library rules explicit to avoid this.
2010-09-28 16:01:15 -04:00
Jim Paris
6b4d6a9ade Use a variable for all target objects
Instead of specifying them individually.  This lets included makefiles
(like my audio/Makefile.include) append objects.
2010-09-28 02:54:23 -04:00
Jim Paris
c7c79fc9b4 Add TMR_ADDR helper 2010-09-27 19:32:10 -04:00
Jim Paris
9cd46dfd4a Add some useful timer macros 2010-09-27 17:30:02 -04:00
Jim Paris
ac2cac1e1d Register definitions: get rid of some macro magic that doesn't help much
Instead of e.g. GPIO.DATA.GPIO_08, you now use GPIO->DATA.GPIO_08.
2010-09-26 16:05:12 -04:00
Jim Paris
bf94b6d3bd Add structure-based ITC access 2010-09-26 15:59:11 -04:00
Jim Paris
920954f398 REF_OSC is a 32-bit number, not 64-bit number 2010-09-25 23:16:59 -04:00
Jim Paris
2f52fdd156 Add cal_isr() support 2010-09-25 22:51:19 -04:00
Jim Paris
6c93b8fb0b Add structure-based CRM definitions 2010-09-25 22:40:40 -04:00
Jim Paris
9b6f648efb Add macro to help compute TMR.ENBL values (useful when using #defined
values to represent timers)
2010-09-25 17:16:12 -04:00
Jim Paris
d6adce955c Add pin definitions for each timer, they're fixed 2010-09-25 15:33:53 -04:00
Jim Paris
7fb074c060 Add structure-based GPIO register definitions 2010-09-24 16:29:43 -04:00
Jim Paris
1a014bab1b Add structure-based timer register definitions 2010-09-24 16:29:43 -04:00
Jim Paris
0a41939407 Makefile cleanup.
This is an attempt to fix and cleanup all of the rules, and get rid of
some of the recursion.  We still need to invoke make several times
when we're building for more than one board, and some things can get a
bit weird when that happens, but it should generally work.  A single
BOARD=foo build should be fully correct, now.

I attempted to keep things compatible, so existing Makefiles that
include libmc1322x/Makefile.include should still work correctly.
2010-09-24 16:29:43 -04:00
Jim Paris
be25b73b8e Add missing type for TMR0_COMP2 2010-09-18 17:37:06 -04:00
Mariano Alvira
36d0b2708d get LQI of received packets 2010-08-18 14:55:50 -04:00
Mariano Alvira
de64b18aca Fix the CNTR defines.
Thanks to Ruslan for finding this.
2010-08-16 10:30:15 -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
e60190eb11 Merge branch 'master' of git://git.devl.org/git/malvira/libmc1322x 2010-07-14 14:01:54 -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