Commit graph

253 commits

Author SHA1 Message Date
Fredrik Osterlind 8041f66d8c link-layer acks support for cooja motes 2013-08-15 14:32:35 +02:00
Fredrik Osterlind 3caf1bfab4 cooja motes rimestats 2013-08-15 11:56:12 +02:00
Peter A. Bigot 5fc0575e99 Makefile.include: support make clean all
Historically $(OBJECTDIR) was created when Makefile.include is read.  A
consequence is that combining "clean" with "all" (or any other build
target) results in an error because the clean removes the object
directory that is required to exist when building dependencies.
Creating $(OBJECTDIR) on-demand ensures it is present when needed.

Removed creation of $(OBJECTDIR) on initial read, and added an order-only
dependency forcing its creation all Makefile* rules where the target is
explicitly or implicitly in $(OBJECTDIR).
2013-06-20 17:45:41 -05:00
Robert Quattlebaum b8c0f2de6c cpu/native: Add file-backed simulated EEPROM to native cpu.
This patch removes a defunct EEPROM implementation from the native
platform and provides a new EEPROM implementation for the native cpu.
The previous implementation appears to be vestigal.

This is useful for testing code which uses the EEPROM without running
the code on the actual hardware.

By default the code will create a new temporary file as the EEPROM
backing, reinitializing each time. If you would like to preserve the
EEPROM contents or specify a specific EEPROM file to use, you can set the
`CONTIKI_EEPROM` environment variable to the name of the EEPROM file you
wish to use instead. If it already exists, its contents will be used.
If it does not already exist, it will be created and initialized by
filling it with `0xFF`---just like a real EEPROM.

A new example is also included, which was used to verify the correctness
of the implementation. It can easily be used to verify the EEPROM
implementations of other targets.
2013-05-18 10:29:41 -07:00
Adam Dunkels 277a348f60 Changed the name of the IPv6 number of route entries configuration from UIP_CONF_DS6_ROUTE_NBU to UIP_CONF_MAX_ROUTES. 2013-03-18 11:12:44 +01:00
Robert Quattlebaum 5afcbf6fff Makefiles: Allow setting UIP_CONF_IPV6=0 to work as expected.
Setting UIP_CONF_IPV6 to zero from the make build command line is
something that seems like it should ensure that IPv6 is disabled, but in
fact it actually *enables* IPv6. This seems counter intuitive, so this
patch changes the behavior of the makefiles to handle this case
properly.
2013-01-14 22:03:42 -08:00
Adam Dunkels aaa950ab17 Cooja platform changes to get IPv6/RPL to work better 2012-12-10 01:50:32 +01:00
Adam Dunkels ec8c7e9be0 Cleanup of the node-id.h files. The node-id.h file contains
declarations of functions for setting and getting a node ID number, a
functionality that exists on many platforms. Since this functionality
was not considered part of the Contiki core, each platform defined its
own node-id.h file. This commit attempts to clean this up by
collecting the node-id.h into a core/sys/node-id.h file that replaces
the old node-id.h files from the platform directories.
2012-11-20 19:59:46 +01: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
Fredrik Osterlind 8ebacd1a1a reverted previous patch that broke compiling on Instant Contiki 2012-05-25 11:25:19 +02:00
Fredrik Osterlind 50caa3650c new experimental feature: possibility to change mote types when loading a simulation
made compile dialogs only select mote interfaces specified in the loaded configuration
2012-05-23 14:59:41 +02:00
Fredrik Osterlind 862452b5b0 removed debugging output, code style 2012-03-13 14:17:43 +01:00
Fredrik Osterlind 97c7a55eea simulating 1 ms turnaround time (before transmissions) by default, and no transmissions on channel busy 2012-03-09 14:58:13 +01:00
Fredrik Osterlind e8294e8699 added objcopy external tools configuration
changed nm command to sort numerically, and changed regexpressions to accept output from newer gcc versions
added more debugging info under help menu
2012-03-09 14:57:21 +01:00
Ilya Dmitrichenko 9c99d46e24 Simplified host OS platform detection in Makefiles 2012-02-25 10:09:33 -05:00
Nicholas J Humfrey 680225e99d Converted u8_t to uint8_t and u16_t to uint16_t in the platforms directory.
Added "These names are deprecated, use C99 names" warnings the contiki-conf.h files that were missing it.
2012-02-21 08:33:25 -05:00
Fredrik Osterlind aecb4b03cc bug fix: rpl was not included correctly 2012-01-31 14:53:52 +01:00
Niclas Finne ed1780f9af Removed quickstart rule for target 'clean' to avoid make warnings 2011-10-24 17:04:45 +02: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
Fredrik Osterlind a501816472 example of adding cooja-platform mote interface manually 2011-02-11 15:23:59 +01:00
adamdunkels 9446d37285 Increased the default Cooja CFS size to 4000 bytes so that examples work (found by Roger Larsson) 2010-11-15 21:44:37 +00:00
fros4943 3563089a91 reimplemented initial support for referencing contiki source files in cooja projects 2010-11-10 13:11:43 +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
fros4943 93b953f815 moved contiki-specific initialization to separate function 2010-09-24 12:59:06 +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
adamdunkels 951fd78f6c ctimer moved from net/rime to sys/ 2010-06-14 18:58:45 +00:00
fros4943 8f1988e7fc using OBJECTDIR instead of "obj_cooja" + bugfix: allow for externally defined CC 2010-06-11 15:17:26 +00:00
fros4943 79aa299531 fixed random seed for cooja motes 2010-05-02 09:42:15 +00:00
fros4943 c21ff48788 ip forwarding only for ipv4 2010-03-31 10:22:33 +00:00
fros4943 c2354a5797 changed cooja platform default uip4 configuration to use uip_over_mesh with a slip gateway 2010-03-31 09:39:46 +00:00
fros4943 e3e69afd15 changed to ds6 module, instead of obsolete netif module 2010-03-29 11:52:08 +00:00
fros4943 9dfce4bea1 removed bad uip-netif.h include 2010-03-29 10:43:03 +00:00
fros4943 a5092220b4 fixed next timer variable types 2010-03-25 09:12:03 +00:00
adamdunkels 2a3d0dc042 Bugfix: data that has been prepared with the prepare() method must be possible to send multiple times 2010-03-23 15:19:55 +00:00
adamdunkels 432a3fd12e Bugfix: the return values from the cca method were switched 2010-03-23 15:10:27 +00:00
fros4943 1322195921 defining rtimer_clock_t to the same as clock_time_t 2010-03-23 13:34:00 +00:00
fros4943 c66dd0b1bf implemented rtimer library for simulated contiki motes 2010-03-23 13:13:17 +00:00
fros4943 49526e100f added simulated interrupt thread, currently only used to implement rtimer functionality 2010-03-23 13:12:41 +00:00
fros4943 bee0ea4834 temporarily turning on radio for sending a packet 2010-03-23 12:13:43 +00:00
adamdunkels 03d1388c0d Print out MAC and RDC when booting cooja nodes 2010-03-23 12:08:05 +00:00
adamdunkels cd3a7c7a73 Dummy watchdog implementation for cooja nodes 2010-03-23 12:07:03 +00:00
fros4943 645d505f46 contiki-cooja-main.c requires CLASSNAME 2010-03-15 11:03:17 +00:00
fros4943 5b2caf2050 removed the use of a template source file when compiling for the cooja platform, instead compiling against contiki-cooja-main.c.
this change simplifies access to the contiki main source, and makes the cooja platform more similar to other contiki targets
2010-03-15 11:02:57 +00:00
fros4943 89d7d926c4 added ipv4 and ipv6 default configuration 2010-03-10 12:18:29 +00:00
fros4943 7465fb812a removed explicit init-net*.c for cooja platform, instead performed in main file (contiki-template.c) 2010-03-10 12:18:07 +00:00
fros4943 f8488925eb added uip-driver (for both ivp4 and ipv6), setting WITH_UIP* compiler flags in Makefile 2010-03-10 12:15:52 +00:00
fros4943 98929bd2f5 cooja-platform netstack conf example 2010-03-10 07:35:49 +00:00
fros4943 45a6740782 radio sensor was removed 2010-03-10 07:35:09 +00:00
fros4943 48d6d1fd6d removed no longer used cooja/contiki synchronization variables 2010-03-09 08:14:31 +00:00
fros4943 0cc96ae481 net stack update: currently fixed to null* and rime. 2010-03-09 08:14:06 +00:00
fros4943 f87458c558 removed radio "sensor" (only used for signal strengths, also available in radio driver) 2010-03-09 08:12:15 +00:00
fros4943 07753fb01f updated radio driver, simplified code 2010-03-09 08:11:05 +00:00
fros4943 b9bf06c2a7 decreased default cooja CFS size 2010-02-05 08:59:51 +00:00
fros4943 ee11b61064 bugfix: puts() should append newline character + min buffer size 1024 also with uIP 2010-01-25 12:34:05 +00:00
nifi 00e8164e58 updated vibration sensor name to Contiki standard 2010-01-14 20:02:55 +00:00
nifi 4ffa7b95b7 Updated to match the new sensors API 2010-01-14 19:19:50 +00:00
nifi 7154b4c68d Removed references to irq, which is not used with the new sensor APIs 2010-01-14 19:14:47 +00:00
nifi 2a7ad011c5 Updated to match the new sensors API 2010-01-14 19:12:31 +00:00
joxe 071a9eaa6b adapted for new sensor APIs 2010-01-14 16:13:45 +00:00
nifi 831f16cf61 Fixed COOJA quickstart to run COOJA from current directory 2009-10-28 13:39:15 +00:00
fros4943 bf1920386a increased log buffer size with uIP SLIP 2009-10-19 18:00:49 +00:00
zhitao bdce08d39d augmented CFS compliance for a RAM-based, one-file-only file system in Cooja. 2009-09-08 15:08:20 +00:00
nvt-se 9d7bdad864 use CLOCK_CONF_SECOND. 2009-09-04 13:59:37 +00:00
nvt-se fed4a58102 return the amount of seconds elapsed in clock_seconds() 2009-09-04 13:57:17 +00:00
nvt-se a21dece53f removed unused state codes and unused printf statements 2009-09-03 12:57:57 +00:00
fros4943 300f3396ac allow contiki motes to handle several contiki events each tick + corrected variables types 2009-05-26 14:08:51 +00:00
fros4943 faec70dee0 test app update: print sensor type 2009-05-19 17:54:08 +00:00
fros4943 9f299c277e added experimental slip support for contiki motes 2009-04-23 09:15:51 +00:00
fros4943 9bd3d07510 implemented slip_arch_writeb() function 2009-04-23 09:02:06 +00:00
fros4943 b65014d1be bugfix by Wolf-Bastian Pttner: check buffer size at incoming radio data 2009-04-16 14:38:41 +00:00
fros4943 3b3580e439 disabled writing IP addresses from inside COOJA, since the these should rather be determined by Contiki 2009-04-01 18:11:48 +00:00
fros4943 aa736322e1 removed unused uip/uaodv cooja comm stack. mesh-uip should be used instead 2009-04-01 17:17:55 +00:00
fros4943 3665422d8d simplified cooja communication stacks initialization + added uipv6 stack 2009-04-01 13:50:12 +00:00
fros4943 6a99a82516 copied uipv6 configuration from native platform 2009-04-01 13:46:56 +00:00
fros4943 1c031504e5 no need to initialize serial line 2009-04-01 13:46:16 +00:00
fros4943 892bfb5678 moved radio-uip link functionality directly to comm stack sources 2009-04-01 13:45:41 +00:00
fros4943 eddd8350c5 renamed radio driver 2009-04-01 13:44:34 +00:00
fros4943 afed9bb2d0 icnlude packet radio by default 2009-04-01 13:39:54 +00:00
fros4943 5f1fda0406 removed unused variables + writing serial data in timeevent 2009-03-26 16:23:47 +00:00
fros4943 dda6de8438 + clock stub functions 2009-03-26 16:22:36 +00:00
fros4943 c76f34ff98 minor serial test application update 2009-03-21 15:47:40 +00:00
fros4943 9c9165dc90 start cooja with more memory to avoid outofmemory problems when running mspsim-based simulations 2009-03-20 13:23:44 +00:00
adamdunkels 727c5a2dbe Renamed serial module to serial-line 2009-03-17 20:32:22 +00:00
adamdunkels 0076bfe8a5 Changed the name of the 'serial' module to 'serial-line' to signify that the module is about lines of data from the serial port, not individual bytes, and to make sdcc happy 2009-03-17 15:56:32 +00:00
fros4943 d6ebba536c minor 64 bit fix: divide by sizeof(unsigned long) instead of constant 4 2009-03-13 14:40:07 +00:00
fros4943 99b9e80de9 make all quickstart target phony 2009-03-12 17:48:23 +00:00
fros4943 72fdf5b379 make quickstart goal precious 2009-03-12 15:12:50 +00:00
fros4943 063bf88f90 cooja quickstart should be started from normal cooja working directory, otherwise config relative paths won't work
+
cygwin path fix for quickstart
2009-03-12 13:04:10 +00:00
fros4943 5d27841807 + contiki app object 2009-03-11 08:40:37 +00:00
fros4943 bcb34297df reimplemented quickstart functionality 2009-03-11 07:45:54 +00:00
fros4943 0bc10750bc added rule for .cooja target.
compiling for cooja is now similar to other platforms, for example:
make hello-world.cooja TARGET=cooja
2009-03-10 21:23:38 +00:00
fros4943 3774395c82 cfs example updated 2009-03-02 09:44:07 +00:00
fros4943 286065b584 cfs updated 2009-03-02 09:34:47 +00:00
fros4943 9c8c4898f7 updating cooja cfs stubs according to recent commits 2009-02-27 16:06:25 +00:00
fros4943 0ab57730f8 removed reference to the removed u16 rime address field 2008-12-01 13:20:51 +00:00
fros4943 6150d13254 support for contiki-node simulation on 64-bit architectures (contributed by Jesper Karlsson and David Gustafsson) 2008-11-28 16:41:26 +00:00
fros4943 641c48ee00 not limiting random seed to 99 2008-10-28 15:37:34 +00:00
fros4943 115a2b0782 renaming printf/putchar/puts symbols to avoid jni library loading overriding our custom implementations
experimental: directly references objcopy (tested on win32+linux)
2008-10-05 15:43:09 +00:00
fros4943 d79b1d55f7 not implementing putc(..FILE*) function, only stdout 2008-10-05 15:40:27 +00:00
fros4943 4cc56a741d printf implementation towards cooja 2008-10-03 09:41:16 +00:00