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
a4ef14f204
strip cvs style keywords from everything
2011-02-12 18:12:45 -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
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
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
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
71cd2c2ead
add PACKET_STATS: extra flags to packets for debugging.
2010-05-22 15:45:52 -04:00
Mariano Alvira
d73467dc59
add INTFRC
2010-05-22 15:44:38 -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
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
7b3a8b9f77
pulled in gpio_data_get from the quahogcon guys.
2010-05-04 12:55:29 -04:00
Mariano Alvira
14c4faf977
add check_maca and count_packets
2010-04-06 15:09:26 -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
63285015b0
remove some reg32 in gpio.h
2010-03-19 22:34:59 -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
7272f9aec3
change types to match stdint
...
have printf test print the sizes of these.
2010-03-17 17:27:21 -04:00
Mariano Alvira
c624e4e475
these gpio routines should be volatile
2010-03-17 16:41:48 -04:00
Mariano Alvira
407fda80e0
fix typo in tmr.h (which cause tmr_enable register to have the wrong
...
address)
2010-03-17 15:55:04 -04:00
Mariano Alvira
a5eadcf5a9
Revert "use standard types"
...
Breaks tmr tests.
This reverts commit c4f438616a
.
2010-03-17 15:52:04 -04:00
Mariano Alvira
35c9c66c23
use new gpio interface
2010-03-16 22:03:38 -04:00
Mariano Alvira
c6012611ba
remove short addr from packet
2010-03-16 22:02:36 -04:00
Mariano Alvira
716f166dd3
new interface for dealing with GPIO banks
2010-03-16 22:01:34 -04:00
Mariano Alvira
c4f438616a
use standard types
2010-03-16 22:00:38 -04:00
Mariano Alvira
a61deb78f4
add a way to disable FCS checking.
2010-03-11 15:18:29 -05:00
Mariano Alvira
67aed03b1d
added interrupt based uarts.
2010-03-09 18:23:40 -05:00
Mariano Alvira
eed8544a0d
rx callback
2010-03-08 18:12:59 -05:00