Mariano Alvira
fb8bbf37cf
Use the RTC only as the main timer.
...
This is a major change to how the main tick interrupt is handled on
the mc1322x platforms. Instead of using two timer resources, TMR0 and
RTC, this patch unifies all the timers to use the RTC. This is enabled by
implementing etimers as scheduled rtimers. The main advantage (aside
from freeing TMR0 for general use) is have the Contiki timebase come
from the same source that will be used for sleeping and wakeup.
2013-02-03 15:15:05 -05:00
Mariano Alvira
ad55ccdec4
add working routines to turn the mc1322x radio on and off
2013-02-03 14:48:38 -05:00
Adam Dunkels
326781ef43
Merge pull request #74 from malvira/maca-dummy-rx
...
Receive packets in a dummy_rx when the maca packet pool is
2013-01-06 14:10:23 -08:00
Mariano Alvira
a53e653bbf
Receive packets in a dummy_rx when the maca packet pool is
...
empty. These packets get dropped.
2013-01-06 15:12:07 -05:00
Mariano Alvira
64ded5aecc
run the linker script through CPP so that the stack sizes can be
...
changed using CONF parameters via DEFINES (e.g. SYS_CONF_STACK_SIZE
4096)
2013-01-05 17:08:59 -05:00
Mariano Alvira
f60a00b93e
the contiki-maca process should wait for a poll event
2012-12-02 14:26:51 -05:00
Mariano Alvira
b3bb3ff53d
fix very incorrect insert_at_rx_head; the bugged version would make
...
the rest of the rx list dangling.
this is used to insert the ack packet needed by the upper layers in
the netstack.
2012-12-02 14:25:39 -05:00
Mariano Alvira
f7d1d78ac9
disable pad keeper when using ADC pin; otherwise you'll see a 20k input
...
impedance.
2012-11-30 10:44:26 -05:00
Mariano Alvira
03ab3fe317
Newer and cleaner TARGET=econotag as well as robust mc13224v
...
configuration system.
(also deprecate TARGET=redbee-econotag)
- mc13224v now automatically probes hardware config for buck converter
and 32kHz crystal as well as automatically monitors battery voltage
and manages the buck accordingly.
- new flashed based config system for mc13224v parameters such has
radio modes (demod, autoack), nvmtype, mac address, channel and
power.
- considerably cleaned up econotag platform code (suffered from severe
case of bit-rot)
2012-11-19 19:16:29 -05:00
Mariano Alvira
2c9a538582
Merge branch 'master' of git://git.devl.org/git/malvira/libmc1322x into bump-libmc1322x
...
bump libmc1322x to 7bee48243c
Conflicts:
cpu/mc1322x/board/Makefile.board
cpu/mc1322x/lib/include/uart.h
cpu/mc1322x/lib/uart1.c
cpu/mc1322x/lib/uart2.c
cpu/mc1322x/src/default_lowlevel.c
2012-11-18 18:27:39 -05:00
Adam Dunkels
944537fccf
Removed all old RCS tags in the Contiki source tree. Those RCS tags are not used any more, as we are now using git to manage the Contiki source tree
2012-10-26 15:54:49 +02:00
Laurent Deru
56914963ef
Reactivate flash protection after maca init
2012-05-09 10:24:38 -04:00
Mariano Alvira
a4813d815f
use --gc-sections instead of -gc-sections
2012-05-06 12:19:20 -04:00
Mariano Alvira
4acad929f0
add gc-sections, roughly 4kB savings.
2012-05-06 09:24:06 -04:00
David Kopf
cac4e9a222
Add clock_delay_us and clock_set_seconds to clock.h. Modify clock_wait to use clock_time_t.
...
Remove the troublesome avr/dev/delay.* files.
Add PLATFORM_NAME and combine the confusing *_REVISION defines into a single PLATFORM_TYPE
2012-04-09 15:49:53 -04:00
Ilya Dmitrichenko
9c99d46e24
Simplified host OS platform detection in Makefiles
2012-02-25 10:09:33 -05:00
Nicholas J Humfrey
1cda3da17e
Converted u8_t to uint8_t and u16_t to uint16_t in the cpu directory.
2012-02-21 08:33:24 -05:00
Mariano Alvira
68591919e6
mc1322x: add -MMD to Makefile.mc1322x to correctly create dependencies
2012-02-16 11:17:15 -05:00
Mariano Alvira
43062b6d74
mc1322x: change how board.h works to allow default board.h (defaults
...
to econotag)
2012-02-13 10:01:36 -05:00
Mariano Alvira
ee8f2c669e
mc1322x: remove symbols.{c,h}
2012-02-13 10:01:36 -05:00
Mariano Alvira
43910c1be7
don't worry about wraparound in rtimer_arch_schedule
2011-09-02 12:36:10 -04:00
Mariano Alvira
6c0bbc492b
change mc1322x rtimers to 32-bit
...
hardcode a close default value for the RTC
2011-09-02 12:32:47 -04:00
Mariano Alvira
2b9f4e8fed
Merge branch 'master' of git://git.devl.org/git/malvira/libmc1322x
2011-08-01 19:50:46 -04:00
Mariano Alvira
485d6716e0
Merge branch 'master' of git://git.devl.org/git/malvira/libmc1322x
...
Conflicts:
cpu/mc1322x/src/default_lowlevel.c
2011-07-18 07:25:19 -04:00
Mariano Alvira
758fc37307
mc1322x: flush the rx fifos when full
2011-07-12 07:05:04 -04:00
Mariano Alvira
4cf9514aa9
fix gpio initialization for uart2
2011-07-09 14:33:03 -04:00
Mariano Alvira
6d96721ac4
mc1322x: block in uart putc if the TX buffer is full. Can also be
...
configured to drop chars instead with UARTx_DROP_CHARS
2011-07-09 12:46:30 -04:00
Mariano Alvira
e80f9eb4b5
mc1322x: build fixes for uart2
2011-07-08 19:40:42 -04:00
Mariano Alvira
e2d74fa0a5
Merge branch 'master' of git://git.devl.org/git/malvira/libmc1322x into uart-upstream
...
Conflicts:
cpu/mc1322x/lib/include/uart.h
cpu/mc1322x/src/default_lowlevel.c
2011-07-08 19:21:15 -04:00
Mariano Alvira
33b32c61e9
Only insert an ack packet if the ack request bit is set
2011-06-01 13:47:05 -04:00
Mariano Alvira
724bcbd2d3
Merge remote branch 'libmc1322x/master'
...
Conflicts:
cpu/mc1322x/src/default_lowlevel.c
2011-05-14 21:19:47 -04:00
Mariano Alvira
0a2b86456b
add option to insert an ack packet on autoack
2011-05-08 09:50:57 -04:00
Mariano Alvira
65671c66c6
turn on insert ack packet by default
2011-05-08 09:50:57 -04:00
Mariano Alvira
d80449244d
Merge remote branch 'libmc1322x/master'
2011-04-20 21:23:47 -04:00
dak664
2e14df3981
Options to extend mc1322x fifo to RAM buffer, or use hardware flow control with tunslip6.
2011-04-08 15:15:16 -04:00
Mariano Alvira
4f4e06c71b
Merge remote branch 'libmc1322x/master'
2011-04-06 05:56:06 -04:00
Oliver Schmidt
f83fb3704b
Replaced make-empty-symbols with empty-symbols.[c|h]
...
The symbol generation shell scripts cause CRLF issues on Windows/Cygwin again and again. Instead of fixing this yet again I opted to remove the symbol generation script at least for the "no symbols" scenario with two C source files to be copied.
2011-04-03 13:24:58 +02:00
Mariano Alvira
11f5bca7c4
Merge remote branch 'libmc1322x/master'
...
Conflicts:
cpu/mc1322x/board/redbee-econotag.h
2011-03-22 16:28:08 -04:00
Mariano Alvira
74517b9df4
Merge remote branch 'libmc1322x/master'
2011-03-13 17:14:32 -04:00
dak664
0573ecd62f
Merge branch 'master' of ssh://contiki.git.sourceforge.net/gitroot/contiki/contiki
2011-03-11 16:51:10 -05:00
dak664
bf5be5056f
Testing $OS works with cygwin and DOS command windows
2011-03-11 16:50:35 -05:00
Mariano Alvira
f2b92cfa98
mc1322x: remove bad rule from cpu Makfile
2011-03-11 16:32:25 -05:00
Mariano Alvira
59d7fad746
Merge remote branch 'libmc1322x/master'
2011-03-11 16:28:14 -05:00
Mariano Alvira
a1ae79307b
mc1322x: remove auto reception mode as it appears to be the cause of
...
the periodic autoack checksum errors. removing auto mode doesn't seem
to create any performance issue.
2011-03-11 06:28:47 -05:00
dak664
bb574fd1e2
Don't create an object directory if target does not exist
2011-03-10 14:59:21 -05:00
Mariano Alvira
5208aa14ea
mc1322x: remove auto reception mode as it appears to be the cause of
...
the periodic autoack checksum errors. removing auto mode doesn't seem
to create any performance issue.
2011-03-08 15:36:53 -05:00
Mariano Alvira
fa08b09770
Merge branch 'master' of git://git.devl.org/git/malvira/libmc1322x into update-lib
2011-03-07 12:37:26 -05:00
Mariano Alvira
2c79ab4962
mc1322x: increase the heap to 4K
2011-03-05 16:52:35 -05:00
Mariano Alvira
befbd4a479
mc1322x: handle board file differently if cygwin
2011-03-04 16:54:59 -05:00
Mariano Alvira
f0c27340c6
mc1322x: increase the HEAP to 2048 bytes: needed for COAP server.
2011-02-25 16:10:08 -05:00