Commit graph

170 commits

Author SHA1 Message Date
Mariano Alvira 667b238148 rftest-tx and refine post_tx for fast transmission 2010-03-07 16:49:57 -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 c218d1bffa update rftest-rx to use new maca. 2010-03-06 21:47:22 -05:00
Mariano Alvira 0dac24e1eb this is pretty close to working together. 2010-03-06 19:54:55 -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 2d68c30934 this receive works 2010-03-06 18:48:13 -05:00
Mariano Alvira 0f400b4341 lots of fixes.
major fix is adding a completion counter based on packet length to
restart the MACA when it freezes on transmit.
2010-03-06 17:58:49 -05:00
Mariano Alvira 5c20312744 this does 127 B packets as fast as possible (with these settings).
Transmitts are every 5.8ms and are 4.48ms long
2010-03-05 19:25:38 -05:00
Mariano Alvira 8e3c2a8622 added locking and interrupt disables.
transmit looks pretty good.
2010-03-05 17:06:08 -05:00
Mariano Alvira 5bda57ed39 progress on maca overhaul 2010-03-04 18:52:42 -05:00
Mariano Alvira 20f6a749d1 isr updates 2010-03-04 18:52:04 -05:00
Mariano Alvira 0678e778b1 initial packet error rate test skeleton 2010-03-03 18:48:29 -05:00
Mariano Alvira 46e25b463f change rf_tests over to using new MACA_CONTROL fields. 2010-03-03 18:47:22 -05:00
Mariano Alvira 43b57ea41a fix board message 2010-03-03 14:07:00 -05:00
Mariano Alvira 664a058884 status is 16-bit 2010-03-03 13:39:22 -05:00
Mariano Alvira d4cd92141e convert to printf 2010-03-03 13:39:14 -05:00
Mariano Alvira 00224dd7eb pulled put out of lib
still need set __putc as a fuction pointer to the uart_putc
2010-03-03 08:09:19 -05:00
Mariano Alvira 4b22b25e38 changed maca.c over to printf 2010-03-02 18:23:23 -05:00
Mariano Alvira 1b4dd3b4dc use printf instead of put 2010-03-02 17:52:31 -05:00
Mariano Alvira a00b9f7bd0 better start file
removed unnecessary line from tmr-int test
2010-03-02 16:26:42 -05:00
Mariano Alvira 9b05f05503 add uart1_init to loopback test 2010-03-02 16:08:36 -05:00
Mariano Alvira 8bd9f182d4 link objects in as archives so only what we need gets linked.
Add an option to build objects without space resevered for rom calls.
2010-03-02 14:32:34 -05:00
Mariano Alvira 225fb3e553 fix these for the putchr and putstr name changes 2010-03-02 10:39:47 -05:00
Mariano Alvira 52bd134d4a Added ROM_VAR targets 2010-03-02 10:39:23 -05:00
Mariano Alvira 0187cfbf93 Now you can build targets with or without the reserved ROM var space. 2010-03-02 10:38:32 -05:00
Mariano Alvira 8c742bc9c8 add -Werror back it and fix all the errors. 2010-03-01 22:07:43 -05:00
Mariano Alvira ac0691ea9c initial printf
snprintf blows up the size

printf isn't too small either (about 10KB now)
2010-03-01 17:11:56 -05:00
Mariano Alvira eb94e7daaf add ref. crystal trimming. 2010-03-01 13:01:51 -05:00
Mariano Alvira 177606cef3 cleaned up rftest-tx. 2010-02-26 18:27:58 -05:00
Mariano Alvira d36264ef9e fix broken build system (since I moved put) 2010-02-26 18:19:10 -05:00
Mariano Alvira 205b53787e cleaned up rftest-rx a little 2010-02-26 17:44:39 -05:00
Mariano Alvira d0f8336f13 sleep.
had to comment out radio_off since I don't have the maca stuff moved
over yet.
2010-02-26 16:37:20 -05:00
Mariano Alvira d3fed95235 tmr-ints 2010-02-26 16:15:26 -05:00
Mariano Alvira cd5e5b1706 tmr 2010-02-26 15:35:57 -05:00
Mariano Alvira a2b51b0e3c add flasher 2010-02-26 14:51:01 -05:00
Mariano Alvira 383a965c21 add romimg 2010-02-26 14:22:41 -05:00
Mariano Alvira 6309b16235 config is in config.h now 2010-02-26 14:22:28 -05:00
Mariano Alvira 64824b4ebc place all the config into config.h 2010-02-26 14:21:46 -05:00
Mariano Alvira 87cd9c7a36 update build system for board specific code that's 'local' to the
program you are building.

update tests to consolidate common code.
2010-02-26 14:04:10 -05:00
Mariano Alvira a791be393b update nvm-write 2010-02-26 13:03:37 -05:00
Mariano Alvira 8f6e672cc0 fix warnings 2010-02-26 12:53:21 -05:00
Mariano Alvira 9a8004c177 working on nvm-read.
fixed lib ordering on link command
2010-02-26 12:37:13 -05:00
Mariano Alvira 59dca22769 clean up default_vreg_init 2010-02-26 07:30:53 -05:00
Mariano Alvira 0c4f5c61ef need a way to run board specific lowlevel inits
like for vreg. this is a start.
2010-02-24 18:47:53 -05:00
Mariano Alvira 637c9ddab2 cleaned up uart1-loopback 2010-02-24 14:45:45 -05:00
Mariano Alvira 289a839161 finish blink tests 2010-02-24 13:35:37 -05:00
Mariano Alvira f79c71153a now running just 'make' builds all the targets for all the boards. 2010-02-23 18:54:50 -05:00
Mariano Alvira dc9473a228 cleanup main makefile 2010-02-23 18:27:12 -05:00
Mariano Alvira 95dccba797 update blinks 2010-02-23 18:19:38 -05:00
Mariano Alvira 8ca9a0269e better variable defs.
touch objdir to fix problem where board.h would try to get created
after it's already been created.
2010-02-23 18:14:32 -05:00
Mariano Alvira 59391d7529 board.h works now 2010-02-23 15:53:00 -05:00
Mariano Alvira 3cc6896981 fix blink-red 2010-02-23 15:52:46 -05:00
Mariano Alvira 1522b72b1e clean up gpio and leds 2010-02-23 15:16:12 -05:00
Mariano Alvira dcc2d5299c for now you must define BOARD.
I'd like it to be though that if board isn't defined then it makes
everything.
2010-02-22 19:18:48 -05:00
Mariano Alvira 1759ff01a0 getting there... 2010-02-21 18:47:12 -05:00
Mariano Alvira 5adb6413d7 Hi Mar. 2010-02-21 17:34:27 -05:00
Mariano Alvira 948478193e checkpoint 2010-02-21 10:25:22 -05:00
Mariano Alvira 8c17fc36d1 starting libmc1322x.a 2009-12-15 14:18:48 -05:00
Mariano Alvira e340e234c6 clean up 2009-11-04 17:30:18 -05:00
Mariano Alvira d247a613b7 Not all pins default to GPIO. Setting func_sel to 3 enables GPIO for
each pin. Do this.
2009-09-17 16:11:19 -04:00
Mariano Alvira 16f680544c adding a test that blinks all the GPIO --- good for testing soldering
jobs.
2009-09-07 14:39:48 -04:00
Mariano Alvira 611370fe58 removing the old hardcoded type stuff from flasher.
doesn't seem to be a problem.

Signed-off-by: Mariano Alvira <mar@devl.org>
2009-08-06 09:56:47 -04:00
Mariano Alvira 3d7125e2a9 put rftests back to channel 11
Signed-off-by: Mariano Alvira <mar@devl.org>
2009-08-04 10:54:23 -04:00
Mariano Alvira e1059a9b15 updated to use the leds on the RedBee hardware and made it a little more general.
Signed-off-by: Mariano Alvira <mar@devl.org>
2009-06-22 12:35:39 -04:00
Mariano Alvira bf9e762a81 moved crm addresses to crm.h 2009-05-27 15:05:25 -04:00
Mariano Alvira 0696772202 more current data with hobby board. 32kHZ mode doesn't seem to use
much more power than 2kHz.
2009-05-21 17:30:00 -04:00
Mariano Alvira 34c91a6726 this code starts up the 32kHZ clock 2009-05-21 14:52:27 -04:00
Mariano Alvira 9f075dcf1a cause TX_ON to flash when transmitting 2009-05-20 20:12:39 -04:00
Mariano Alvira d8a8d529bc Sleep works now. Make sure to turn the radio off first. 2009-05-12 17:19:57 -04:00
Mariano Alvira 13656da889 corrected comments about ram retention 2009-05-11 17:26:10 -04:00
Mariano Alvira 5dbd9aa02f added a few comments 2009-05-11 17:03:20 -04:00
Mariano Alvira 4ca63b9b86 this test demonstrates sleeping in both hibernate and doze.
wake up is controlled with the wake up timer.

read the comments for current measurments.
2009-05-11 17:01:31 -04:00
Mariano Alvira bc59b04bbf sleep tests. 2009-05-11 15:52:30 -04:00
Mariano Alvira cb4dd0d23e reverting this file back to dumping the calibration section. 2009-05-09 15:48:02 -04:00
Mariano Alvira 706da17807 clean up and flash type workaround. 2009-05-09 15:30:54 -04:00
Mariano Alvira 2783ad26f0 clean up debug. 2009-05-09 14:55:48 -04:00
Mariano Alvira a0db791175 add support for extra write data string. 2009-05-09 14:43:17 -04:00
Mariano Alvira cd973de335 catch the aux. send.
still need to parse it for something like:

0x1e000,0x11223344,0x55667788
2009-05-08 18:04:55 -04:00
Mariano Alvira 3bea9ac2f0 this version of flasher works. 2009-05-08 17:27:24 -04:00
Mariano Alvira c0b912dca2 flash and burn
completely untested.
2009-05-08 12:32:14 -04:00
Mariano Alvira 102149cd91 change write address to be the same as what I'm using as my RIME
address.
2009-05-05 16:25:46 -04:00
Mariano Alvira d231cd0120 this version of nvm-write works because it erases the sector first
before writting it.
2009-05-05 15:18:28 -04:00
Mariano Alvira b6eb7ca6ff send big packets. 2009-05-03 18:50:47 -04:00
Mariano Alvira c0bb4cb810 slight timer cleanup 2009-04-24 17:07:15 -04:00
Mariano Alvira d869766664 using weak links for individual isrs 2009-04-24 16:04:04 -04:00
Mariano Alvira f421cde7f8 changed tmr test to blink purple 2009-04-22 16:11:32 -04:00
Mariano Alvira 8964c60d9a enabling thumb only enter user mode in tmr-ints.
usermode breaks rftests.
2009-04-22 16:06:35 -04:00
Mariano Alvira 9f31e40864 only go into usermode in the interrupt test... still sorting out the
best way to handle this.
2009-04-22 15:14:04 -04:00
Mariano Alvira bdbf279d0f tmr imts works. I'm not thrilled with how the interrupts and modes are
set... but I'm not sure what to do about it. The big problem is that I
have to be in user mode to service irqs, but I can't enable and
disable F and I in usermode. All I can do is an swi and then have
handler which lets me enable or disable them (like a mini-syscall).
2009-04-22 14:55:40 -04:00
Mariano Alvira 09b15558a1 preliminary interrupts. looks like it is entering the isr but isn't
leaving correctly.
2009-04-20 18:31:13 -04:00
Mariano Alvira e012142abe initial interrupt stuff
taken from Contiki
2009-04-20 14:28:53 -04:00
Mariano Alvira d25385d2aa blink blue but with the timer. 2009-04-20 14:15:24 -04:00
Mariano Alvira b508d138a8 flash init --- makes them work much better.
resumeMACAsync on each received packet --- no more lockups.
2009-04-16 17:59:00 -04:00
Mariano Alvira a5656b81b0 full dis of init exec entry. ready to implement this now. 2009-04-15 19:26:49 -04:00
Mariano Alvira 438c940ed7 nvm read works now. 2009-04-15 17:32:00 -04:00
Mariano Alvira 721173449c startup code 2009-04-15 15:03:47 -04:00
Mariano Alvira d75d9d98f5 This makefile seems to do better. 2009-04-15 13:40:21 -04:00
Mariano Alvira f023a1a8f7 turn on thumb. untested.
make system still links in a lot of unnecessary stuff.
2009-04-15 11:58:29 -04:00
Mariano Alvira 2136e0fe06 removed dump_regs --- can add it back later if we need it.
builds now.
2009-04-14 17:47:51 -04:00
Mariano Alvira d3fecae255 template for new nvm-read test 2009-04-14 17:46:35 -04:00