Commit Graph

572 Commits

Author SHA1 Message Date
maralvira
8b2ef2675d discard received packets --- this lets you run multiple rftest-tx's at
the same time.
2010-11-07 14:10:16 +00:00
maralvira
e00349509d add simple install rule 2010-11-07 14:09:43 +00:00
maralvira
ee943c062d add autoreset command and do_exit option 2010-11-07 14:08:50 +00:00
maralvira
e886e83908 fix bug in print_packet
Thanks dean and jim.
2010-11-07 14:07:33 +00:00
maralvira
f1fede7090 get LQI of received packets 2010-11-07 14:06:57 +00:00
maralvira
ae0b7f846f Fix the CNTR defines.
Thanks to Ruslan for finding this.
2010-11-07 14:04:59 +00:00
maralvira
646a37f8b3 use the hardware random number generator 2010-11-07 13:52:12 +00:00
dak664
eb0d5c7f45 Add missing includes 2010-11-03 16:55:40 +00:00
oliverschmidt
1dfe490f9b Use some defined event constant instead of just 0. 2010-10-31 22:51:17 +00:00
dak664
9194b3ac69 Fix error when RS232 not enabled 2010-10-28 19:31:28 +00:00
dak664
ad6712736b Fix Windows XP RNDIS+CDC serial port enumeration 2010-10-28 19:30:14 +00:00
dak664
258e3cc93a Allow simultaneous use of RS232 and USB serial ports 2010-10-27 14:51:20 +00:00
salvopitru
d8711d32a3 Added configuration in order to run Rime. 2010-10-27 14:05:23 +00:00
salvopitru
db3f1864a0 Increased minimum stack size, because rpl uses it much more. 2010-10-26 11:07:20 +00:00
salvopitru
33ccbbb509 Fixed compile error raised after rand.c removal. 2010-10-26 10:47:23 +00:00
salvopitru
444a00949a Added missing libraries. 2010-10-26 10:24:17 +00:00
salvopitru
790f13a689 More safe detection of cygwin path. 2010-10-26 07:26:40 +00:00
salvopitru
ec5e3ce0d7 New Contiki port to STM32W108. 2010-10-25 09:03:38 +00:00
adamdunkels
34f6a60a4a By default, don't print stack on reboot, since there are cases where this may hang the CPU (when the CPU is in LPM when the watchdog triggers). Must fix the code to set the UART and CU into correct modes before enabling stack printout on reboot. 2010-10-24 21:10:25 +00:00
oliverschmidt
9a8c62a629 Removed remark on using cc65 snapshot. 2010-10-23 19:42:53 +00:00
dak664
123e3cae41 Fix compiler warnings 2010-10-23 15:26:46 +00:00
oliverschmidt
5e10cf2eed Implemented cfs_opendir() and friends for CBMs based on cc65's cbm_opendir() and friends. 2010-10-23 13:48:06 +00:00
oliverschmidt
9e9eb4b55c There's no point in pulling in cfs-posix-dir.c if the POSIX functions it depends on are dummies anyway. 2010-10-23 08:17:45 +00:00
oliverschmidt
b84f771c6b The recent change in core/net/mac/lpp.c requires CLOCK_SECOND to be at least twice NETSTACK_RDC_CHANNEL_CHECK_RATE in order to compile. 2010-10-22 20:28:58 +00:00
dak664
7be7a34bbb Fix windows COM port enumeration 2010-10-22 19:15:43 +00:00
dak664
774474b7aa Fix compiler warning 2010-10-20 18:57:33 +00:00
oliverschmidt
842c6a018a The recent global change regarding htons allowed to remove this hack :-) 2010-10-19 20:30:47 +00:00
adamdunkels
5585d72c86 A simple but substantial change: uIP used the htons()/HTONS() macro
functions for converting between host and network byte order. These
names are the de facto standard names for this functionality because
of the original BSD TCP/IP implementation. But they cause problems for
uIP/Contiki: some platforms define these names themselves (Mac OS,
most notably), causing compilation problems for Contiki on those
platforms.

This commit changes all htons to uip_htons instead. Same goes for
htonl, ntohs, and ntohl. All-caps versions as well.
2010-10-19 18:29:03 +00:00
oliverschmidt
35f7b6046e Fixed 'Modulo operation with zero' error by making sure that NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE is not smaller than CLOCK_CONF_SECOND. 2010-10-06 19:48:26 +00:00
oliverschmidt
a40594b7ce Display correct name of statically loaded driver. 2010-09-29 21:48:54 +00:00
oliverschmidt
c839eacbdf Added cc65 target 'atari' for Atari 8-bit machines. This addition was triggered by exsistence of http://www.atari8ethernet.com/. 2010-09-29 19:44:01 +00:00
oliverschmidt
55d61d317b Allow cc65 ethernet drivers to be loaded statically instead of dynamically. This saved quite some space in scenarios without additional cc65 drivers to be loaded for i.e. a mouse because in those scenarios the cc65 module loader isn't necessary. And without the module loader typically the cc65 heap manager isn't necessary. 2010-09-28 23:02:16 +00:00
adamdunkels
7c14899eeb Made stack printout on reboot configurable.
Added the ability to turn on watchdog multiple times - the watchdog
registers are touched only when the watchdog goes from off to on state
to avoid retriggering the watchdog when it shouldn't.
2010-09-22 22:12:37 +00:00
dak664
110bc0242e Merge CDC-ECM, RNG, DFU bootloader, watchdog, settings manager, energy scan routines of Robert Quattlebaum 2010-09-17 21:59:09 +00:00
nifi
f5ea831445 Added function rtimer_arch_now that makes sure that the timer value does not change between readouts to avoid reading while the timer is being updated. 2010-09-13 20:51:09 +00:00
maralvira
1cb0762bd0 Don't post from an interrupt context --- this resulted in process
corruption if a packet was received at the wrong time.

The maca_thread now just PAUSEs and checks rx_head instead of waiting
for a data event to be posted.
2010-09-13 14:15:58 +00:00
joxe
c0549cad3d added some files for MSP430X I/O 2010-08-24 16:23:20 +00:00
maralvira
df9d43ab83 increase the reception time now that tx_packet will advance the timer
as necessary.
2010-07-28 18:49:34 +00:00
maralvira
9a7a2742b3 remove bad call to maca_on()
maca_on() resets the maca and phy, takes a long time, and clobbers any
packet that is currently being transmitted or received. It doesn't
belong in prepare and was the source of a lot of latency and bad
packet transmissions.

Make sure the maca is on somewhere else.
2010-07-28 18:48:51 +00:00
maralvira
a3b9c2adb0 in tx_packet, force an interrupt if the maca isn't doing anything so
that the transmit starts. Or if the maca is in a reception cycle,
advance the softclock timeout to now so that transmission starts as
soon as possible (immediately if a packet isn't being received or
right after reception finishes).
2010-07-28 18:48:03 +00:00
maralvira
593a50c38f make the debug prints in check_maca more specific 2010-07-28 18:47:35 +00:00
maralvira
422d05003f use 32 packets in the pool by default 2010-07-28 18:47:05 +00:00
maralvira
eb0e3b7989 fix long standing bug where the last pages of NVM were not erased
properly.
2010-07-28 18:43:04 +00:00
oliverschmidt
c602c61468 Activated Platform-specific File System (PFS) for the C64/C128 by default for all programs with R/W CFS access. 2010-07-22 10:30:12 +00:00
oliverschmidt
9c0f5d857c Updated API for uiplib and resolv to use uip_ipaddr_t instead of uint16_t. 2010-07-21 22:35:59 +00:00
maralvira
5b44d6a29a properly drop characters when buffer is full
fix by David Kopf
2010-07-06 13:39:34 +00:00
joxe
0c5390339f updated to new cc2420 spi naming 2010-06-23 10:44:41 +00:00
joxe
705f8cc451 fixed naming of SPI and CC2420 related code 2010-06-23 10:19:15 +00:00
dak664
898c00b812 Remove usually extra avr-size command 2010-06-22 17:11:38 +00:00
dak664
e45b1c042b TIMER2 uses TIMER2 interrupt vector! 2010-06-22 16:17:24 +00:00
dak664
ab7f3bd8e3 Option to use 32768Hz watch crystal for timing. Code suggested by Georg von Zengen. 2010-06-18 17:30:30 +00:00
dak664
cb45883970 Turn on DEBUGFLOW and software CRC computation 2010-06-18 15:44:53 +00:00
nifi
20c8b4f9c6 removed obsolete comments 2010-06-15 13:30:42 +00:00
adamdunkels
3fa8ffda1a Moved the modules packetbuf, queuebuf, and packetqueue from net/rime to net/, since they are not Rime-specific 2010-06-14 19:19:16 +00:00
maralvira
419906a769 initial mc1322x commit
based on commit aac3a355451d899f02737f2907af8c874ee4feba of

git://git.devl.org/git/malvira/contiki-mc1322x.git
2010-06-10 14:55:39 +00:00
maralvira
285f508cc9 initial commit of src files 2010-06-10 14:49:31 +00:00
maralvira
bf9f960bbe add board files. 2010-06-10 14:48:32 +00:00
maralvira
1145fa9ba9 initial mc1322x commit
based on commit aac3a355451d899f02737f2907af8c874ee4feba of

git://git.devl.org/git/malvira/contiki-mc1322x.git
2010-06-09 14:43:22 +00:00
oliverschmidt
d28865abac Adjusted hacky inline assembler to reference uip_aligned_buf instead of uip_buf - some day I'll need to clean up that (btw bogus) code. 2010-05-30 10:12:30 +00:00
oliverschmidt
126ea40994 Removed UIP_CONF_PLAIN_BUFFER again now that the pointer indirection to uip_buf was removed again. 2010-05-30 09:46:12 +00:00
nifi
808116ff56 Made SFD timestamps configurable via external definition 2010-05-10 11:32:44 +00:00
oliverschmidt
2169932727 Have the cc65 based targets stay with the "old" plain uip_buf. 2010-05-08 07:25:10 +00:00
dak664
972e2f5d4f Add MCU to avr-size command; Remove fuse and signature from .hex; Give bootloader more memory 2010-05-04 14:14:49 +00:00
nifi
9638789d9d Added rule to use MSPSim to show the maptable from the last compilation on MSP430 targets 2010-04-20 15:38:09 +00:00
oliverschmidt
7b5bde6336 Made the maximum number of concurrent TCP connections a highlevel config value. 2010-04-11 20:47:16 +00:00
anthony-a
04fb6e5b42 initial add. 2010-04-10 21:18:32 +00:00
anthony-a
3de90a9671 fix adc compile errors when HAVE_DMA is not true.
remove reference to brione_lcd.h
turn off DEBUG messages.
2010-04-10 19:59:37 +00:00
oliverschmidt
21f8e4e982 Made MAC_CONF_CHANNEL_CHECK_RATE identical to CLOCK_CONF_SECOND in order to make sure it isn't larger - which causes 'divide by zero' errors. 2010-04-05 15:17:22 +00:00
oliverschmidt
9831f02eba Replaced dummy code with code taken from 'native'. 2010-04-05 15:13:50 +00:00
oliverschmidt
ffce456612 If rtimer_arch_now() is mapped to clock_time() it seems reasonable to map RTIMER_ARCH_SECOND to CLOCK_CONF_SECOND for consistency reasons. 2010-04-05 15:10:06 +00:00
oliverschmidt
26e61ac3f7 Programs using CFS should #include "cfs.h" ;-) 2010-04-05 13:41:29 +00:00
adamdunkels
5eb22ad289 Print out stack pointer when rebooting node 2010-04-04 12:30:10 +00:00
adamdunkels
0ed236e774 Bugfix: the clock interrupt now flushes the energy estimator to avoid overflow of the LPM mode 2010-04-04 12:29:50 +00:00
adamdunkels
52ad0008dc Bugfix 2010-03-31 11:55:04 +00:00
adamdunkels
4447782ab4 Print out a stack trace when a node reboots because of the watchdog 2010-03-30 23:02:23 +00:00
adamdunkels
ac172a5575 Turn off LPM mode for clock interrupts to avoid rtimer wrapping during extended LPM 2010-03-29 21:53:32 +00:00
oliverschmidt
54e19782ae Moved PFS header from Apple2 directory to 6502 directory as we're going to have other PFS implementations. 2010-03-27 15:16:57 +00:00
oliverschmidt
6769e6a99f - Moved PFS header from Apple2 directory to 6502 directory as we're going to have other PFS implementations.
- Completed declarations.
2010-03-27 14:46:08 +00:00
nifi
ebfa6c5ef1 only include memcpy/set workaround when needed 2010-03-21 10:40:15 +00:00
joxe
e99c906caf activated the new workaround... 2010-03-19 14:50:07 +00:00
joxe
7e6919cc8c fixed workaround for memcpy/set to be memory efficient but slower 2010-03-19 14:39:45 +00:00
adamdunkels
04cdae05c3 Increased the rtimer granularity: needed to make contikimac work 2010-03-19 13:25:52 +00:00
dak664
0265f09a5c Add RS232 port option to jackdaw USB stick 2010-03-15 18:52:55 +00:00
fros4943
db777ce3d0 reverted previous patch: appears to create problems on hardware 2010-03-05 12:06:03 +00:00
nvt-se
7543d53603 Ensure that the UART port is available before writing 2010-03-03 23:18:58 +00:00
dak664
01a3912864 Define and use radio STATE_TRANSITION, improve debug messaging 2010-03-02 16:29:59 +00:00
dak664
39e6f6a830 Clean up, functional webserver for further testing of low power protocols 2010-02-28 21:29:19 +00:00
dak664
d61676b8f7 Add RADIOALWAYSON to monitor packet losses with low power protocols 2010-02-28 21:19:33 +00:00
dak664
5debc183a9 Enable radio stats in sensor cgi as default 2010-02-26 21:38:57 +00:00
dak664
844b3a34f7 Platform 0 was matching by default 2010-02-26 21:15:28 +00:00
dak664
195f5939c4 Clean up after testing 2010-02-26 20:51:48 +00:00
adamdunkels
465125c5e7 Added support for 32-bit clock ticks: when reading the 32-bit value, make sure that it does not change between readouts to avoid reading right in the middle of it being updated 2010-02-23 18:41:20 +00:00
dak664
7274f1d1ed Report operating channel with either radio driver 2010-02-23 17:40:09 +00:00
dak664
4ded42db1e Add sniffer and 802 frame reporting 2010-02-23 17:37:51 +00:00
dak664
b4bc7fc3da Make RF230BB the default radio driver 2010-02-23 02:01:46 +00:00
dak664
cbb8621e30 update to new driver format 2010-02-22 22:23:18 +00:00
dak664
658c35df11 remove debug printf 2010-02-22 22:21:15 +00:00
adamdunkels
953a8c2015 Turn off timer before updating - needed to avoid bugs in ContikiMAC - not 100% sure why 2010-02-18 22:15:54 +00:00
oliverschmidt
1817acae15 Now that the C64 mouse driver works we can activate the mouse support for this target :-) 2010-02-18 21:30:31 +00:00
dak664
a83381de30 add rtimers for cxmac 2010-02-18 17:21:44 +00:00