Commit graph

86 commits

Author SHA1 Message Date
Mariano Alvira
009180e0a9 add M12 2012-11-18 17:35:34 -05:00
Mariano Alvira
76a8e49262 add i2c code from Hedde Bosman 2011-07-18 07:11:05 -04:00
Mariano Alvira
4c36473ff5 don't set the rx level 2011-07-09 17:02:15 -04:00
Mariano Alvira
6b45e353e1 add uart1, uart2 and a common uart.h include 2011-07-08 18:48:19 -04:00
Mariano Alvira
e9ddca37e2 set UART function without clobbering the entire func_sel register. 2011-05-14 21:14:43 -04:00
Mariano Alvira
a3412a0b81 set the UART1 pin directions in uart1_init()
patch from Hedde Bosman
2011-04-06 05:53:18 -04:00
Mariano Alvira
4d6562a0bc support ASM encryption module 2011-02-28 18:44:42 -05:00
Mariano Alvira
a4ef14f204 strip cvs style keywords from everything 2011-02-12 18:12:45 -05:00
Mariano Alvira
f133321b03 remove extra semicolon from macro definition 2011-01-17 09:55:37 -05:00
Mariano Alvira
731b29f30e include crm.h 2010-11-10 16:14:20 -05:00
Jim Paris
b2c64dc233 Provide a function to change timer interrrupt handlers
Function irq_register_timer_handler(int timer, void (*isr)(void))
lets you change the handler at runtime.  This lets us set handlers
without necessarily knowing the name at link-time.  The old way of
having weakly-linked tmr0_isr functions should still work.
2010-10-16 13:28:20 -04:00
Jim Paris
ae70d57d75 Clear BSS at startup 2010-09-28 16:29:36 -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
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
2f52fdd156 Add cal_isr() support 2010-09-25 22:51:19 -04:00
Jim Paris
1391f5f8b5 Remove unused code 2010-09-25 16:42:09 -04:00
Jim Paris
b7727f6595 Move startup code into its own section so the linker can place it first 2010-09-25 16:42:09 -04:00
Jim Paris
0c163122da Pretty-print the output by default.
This makes it a lot easier to see what's going on, and let me find
some problems.  Use "make Q=" or set Q= blank in your user Makefile
to see the full commands.
2010-09-24 18:22:11 -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
Mariano Alvira
36361e1eb0 use a more standard syntax to call _rom_init_data
works around assembler bug in some versions of as.
2010-06-07 11:58:16 -04:00
Mariano Alvira
50102c2516 clear forced interrupts after the have been serviced. 2010-05-22 15:45:00 -04:00
Mariano Alvira
e278ec0242 fixup the uart tx isr. 2010-05-12 16:41:24 -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
334c316c0a make xtal trimming part of the lowlevel init routines. 2010-03-16 10:40:25 -04:00
Mariano Alvira
6fa57c8e9f remove unused variable 2010-03-10 11:20:39 -05:00
Mariano Alvira
67aed03b1d added interrupt based uarts. 2010-03-09 18:23:40 -05:00
Mariano Alvira
3178906b43 surpress warning. 2010-03-08 18:13:19 -05:00
Mariano Alvira
20f6a749d1 isr updates 2010-03-04 18:52:04 -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
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
0187cfbf93 Now you can build targets with or without the reserved ROM var space. 2010-03-02 10:38:32 -05:00
Mariano Alvira
205b53787e cleaned up rftest-rx a little 2010-02-26 17:44:39 -05:00
Mariano Alvira
d3fed95235 tmr-ints 2010-02-26 16:15:26 -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
c4f6aa459e checkpoint -- reorganizing and fixing errors 2010-02-20 09:33:28 -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
c419d7403b generate ctov properly.
Thanks Umberto!

Signed-off-by: Mariano Alvira <mar@devl.org>
2009-05-29 14:50:38 -04:00
Mariano Alvira
ebee1f67d7 add radio_on and radio_off. 2009-05-11 12:01:15 -04:00
Mariano Alvira
be410aceaf cleanup 2009-05-05 16:24:47 -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
48732b5379 nvm write test 2009-05-05 13:43:53 -04:00
Mariano Alvira
8b88d34678 address for nvm write. 2009-05-03 18:50:35 -04:00
Mariano Alvira
f7cc777ee1 fixed typo --- everything still works. 2009-05-01 16:47:02 -04:00
Mariano Alvira
efb6671bf7 Merge branch 'untested' 2009-04-24 16:04:37 -04:00
Mariano Alvira
d869766664 using weak links for individual isrs 2009-04-24 16:04:04 -04:00
Mariano Alvira
2288c9e2ff better way to do irqs 2009-04-24 15:42:15 -04:00
Mariano Alvira
e510c078d8 Merge branch 'untested' 2009-04-22 16:09:07 -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