Commit graph

57 commits

Author SHA1 Message Date
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
Mariano Alvira 0f9f67d002 add dir set and reset 2010-03-08 17:35:34 -05:00
Mariano Alvira 06e3e0b207 add maca_init()
changed tests to use it.
2010-03-08 14:49:31 -05:00
Mariano Alvira 2a07cbe665 enabled softclk timeouts
fixed post interleaving problem

fixed interrupts in ResumeMACASync.

This seems quite solid now.
2010-03-08 12:03:20 -05:00
Mariano Alvira d3f6ef07f2 sort out the length details. 2010-03-07 18:48:47 -05:00
Mariano Alvira 024448e65e add an offset to packet_t to compensate for the added length byte on
reception
2010-03-07 17:04:30 -05:00
Mariano Alvira 4b17c144d0 LEDs now indicate bit position (instead of (1 << pos)) which is more
consistent with how everything else works
2010-03-07 15:39:56 -05:00
Mariano Alvira e8550f26ba this receive seems to work well.
It has checksum errors at 123 byte payloads, but this was tested with
the old rftest-tx --- so the transmit side could be the problem.
2010-03-06 19:14:55 -05:00
Mariano Alvira 0c3947ddd6 forgot to add packet.h 2010-03-05 06:59:51 -05:00
Mariano Alvira 5bda57ed39 progress on maca overhaul 2010-03-04 18:52:42 -05:00