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
Mariano Alvira
0bdcac3457
add a memory section for RAM so that the linker will warn when you've
...
made your program too big.
2010-10-16 13:28:20 -04: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
76563958fe
Add the disable_int({}) macro
...
This is similar to safe_irq_enable and disable
2010-10-16 13:27:20 -04:00
Mariano Alvira
4eb5ce4c9b
add a memory section for RAM so that the linker will warn when you've
...
made your program too big.
2010-10-01 15:22:07 -04:00
Jim Paris
62400bd07f
Move stack near BSS so it doesn't take up space in the .bin
2010-09-28 16:30:55 -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
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
036b80e3c1
Support hardcoded dependencies, for generated files
2010-09-28 02:15:43 -04:00
Jim Paris
0e6d5bc9dc
Another rule to disassemble board objects
2010-09-27 20:04:24 -04:00
Jim Paris
c7c79fc9b4
Add TMR_ADDR helper
2010-09-27 19:32:10 -04:00
Jim Paris
00f4a66bb8
Add rule to disassemble .o files
2010-09-27 17:32:59 -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
ba2792a70b
Force linker to treat "_start" as undefined, so it pulls it in from src.a.
2010-09-25 17:48:28 -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
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
d6adce955c
Add pin definitions for each timer, they're fixed
2010-09-25 15:33:53 -04:00
Jim Paris
4a5508e5b8
Fix #ifdefs in board files
2010-09-25 15:29:10 -04:00
Jim Paris
b00708cf78
Put main dir on include path
...
Now the user can supply their own foo.h that obj_foo/board.h will include
2010-09-25 15:26:44 -04:00
Jim Paris
ebac883e25
Handle empty board.a (no COBJS defined)
2010-09-25 15:09:26 -04:00
Jim Paris
744b4f4764
Fix typo, used wrong name for TARGETS_WITH_ROM_VARS.
...
Also makes the pretty print output specify whether we're linking
against romvars or not.
2010-09-24 18:27:14 -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
87e628b897
Remove old config.mk
2010-09-24 18:07:22 -04:00
Jim Paris
50306de9c3
Fix typo -- no ROMVARS for normal targets.
2010-09-24 18:06:36 -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
Jim Paris
97ae5e0ba8
Add script to invoke kermit with a particular port and speed
2010-09-18 16:44:57 -04:00
Jim Paris
59aa0c93e1
Use "rm -f" in clean rules to ignore errors
2010-09-18 16:06:11 -04:00
Jim Paris
772fcb43c2
Allow parent makefile to override these variables
2010-09-18 15:56:31 -04:00
Mariano Alvira
e50db7f1c0
use kermit in open-terms
2010-09-08 17:01:04 -04:00
Mariano Alvira
0acf62f4f1
fix byte ordering in burn-macs
2010-09-08 17:00:36 -04:00
Mariano Alvira
b3df60972d
add script that burns the mac address only --- mac address is Redwire
...
IAB + tty number.
2010-09-06 12:48:11 -04:00
Mariano Alvira
4d47f83d8f
modify flasher.c to not create a vaild boot magic number if the length
...
of the file is zero
modify mc1322x-load.pl to optionally send a zero length file with -z;
extra data on the command line is still written.
This allows you to burn the mac adress without flashing a vaild image.
2010-09-06 12:05:34 -04:00
Mariano Alvira
5981fb5397
add scripts to help load a bunch of econotags
2010-09-06 11:32:08 -04:00
Mariano Alvira
053f73dce4
discard received packets --- this lets you run multiple rftest-tx's at
...
the same time.
2010-09-06 11:26:26 -04:00
Mariano Alvira
5242883aa7
add simple install rule
2010-09-06 11:08:36 -04:00
Mariano Alvira
6d437591fc
add autoreset command and do_exit option
2010-09-06 11:08:12 -04:00
Mariano Alvira
a6813372bf
ignore generated files
2010-08-20 12:01:44 -04:00
Mariano Alvira
aeaa67bb1a
fix bug in print_packet
...
Thanks dean and jim.
2010-08-18 16:14:13 -04:00
Mariano Alvira
36d0b2708d
get LQI of received packets
2010-08-18 14:55:50 -04:00