Commit Graph

379 Commits

Author SHA1 Message Date
Laurent Deru
ca16bf1bd2 Make select timeout user configurable for native platform 2017-12-20 14:15:29 +01:00
George Oikonomou
3bbcc6288f Include board.h after configuration is fully known 2017-12-18 16:50:40 +00:00
spoerk
fd0f0ca4b6 Merge branch 'develop' of github.com:contiki-ng/contiki-ng into feature/ipv6_over_ble 2017-12-15 11:41:27 +01:00
spoerk
7a7c4e0015 added support for IPv6 over BLE communication 2017-12-15 11:20:44 +01:00
George Oikonomou
d780719530 Compile platform native with NULLNET 2017-12-13 09:40:02 +00:00
Laurent Deru
ccb705ed31 Use clock_gettime() instead of gettimeofday() to have a monotonic clock and use CLOCK_CONF_SECOND explicitly 2017-12-12 16:53:51 +01:00
George Oikonomou
6dfc53dfb3 Implement master interrupt manipulation (JN516x) 2017-12-09 17:08:31 +00:00
Joakim Eriksson
52e012d3c1 optimized flash usage due to fit sky 2017-12-09 10:22:19 +01:00
George Oikonomou
0a76ff8ee7 Harmonise platform configuration files (Sky) 2017-12-08 17:07:33 +00:00
George Oikonomou
df54d30a2a Pull CPU-related constants from the CPU header (Sky) 2017-12-08 17:07:32 +00:00
George Oikonomou
aa016c3c29 Pull CPU-related configuration from the CPU header (Sky) 2017-12-08 17:07:32 +00:00
George Oikonomou
d7b426c105 Move user configuration to contiki-conf.h 2017-12-08 17:07:32 +00:00
George Oikonomou
fdb60ab22f Move non-configuration macros to msp430def.h 2017-12-08 16:59:02 +00:00
George Oikonomou
4a129fefc6 Remove obsolete macro 2017-12-08 16:59:02 +00:00
George Oikonomou
abe583ed75 Harmonise platform configuration files (nrf52dk) 2017-12-08 16:59:02 +00:00
George Oikonomou
4bdc2f7513 Harmonise platform configuration files (jn516x) 2017-12-08 16:59:02 +00:00
George Oikonomou
da5d415bc1 Pull CPU-related configuration from the CPU header (Zoul) 2017-12-08 16:32:49 +00:00
George Oikonomou
458fbb1ee2 Pull CPU-related constants from the CPU header (Zoul) 2017-12-08 16:32:49 +00:00
George Oikonomou
369f58a60b Pull CPU-related configuration from the CPU header (OpenMote) 2017-12-08 16:32:49 +00:00
George Oikonomou
91c437e631 Pull CPU-related constants from the CPU header (OpenMote) 2017-12-08 16:32:49 +00:00
George Oikonomou
88feb34ec7 Pull CPU-related configuration from the CPU header (CC2538DK) 2017-12-08 16:32:49 +00:00
George Oikonomou
03435d826e Pull CPU-related constants from the CPU header (CC2538DK) 2017-12-08 16:32:49 +00:00
George Oikonomou
ba8f37bef4 Pull CPU-related constants from the CPU header (nrf52dk) 2017-12-08 16:32:49 +00:00
George Oikonomou
fb9c0beb37 Pull CPU-related configuration from the CPU header (CC13xx/CC26xx) 2017-12-06 16:00:46 +00:00
George Oikonomou
5c07cb02a8 Pull CPU-related constants from the CPU header (CC13xx/CC26xx) 2017-12-06 16:00:46 +00:00
Simon Duquennoy
e795517750
Merge branch 'develop' into contrib/stack-guard 2017-12-05 15:16:54 +01:00
George Oikonomou
e458240200 Change asm() to __asm()
This is required in order to compile with -std=c99
2017-12-03 15:04:10 +00:00
George Oikonomou
e6915a25ee Add missing copyright header 2017-12-03 00:14:08 +00:00
George Oikonomou
4324bce6b0 Re-structure OpenMote-CC2538 documentation 2017-12-03 00:05:12 +00:00
George Oikonomou
c316f4afbd Re-structure zoul documentation 2017-12-03 00:05:12 +00:00
George Oikonomou
d4680c656a Create doxygen groups for platforms
* Cooja
* Native
* jn516x
* nrf52dk
2017-12-03 00:05:12 +00:00
Joakim Eriksson
8cefc3ea39 added some missing NRF52 scripts for flashing and fixed baudrate to be 115200 2017-12-01 23:34:16 +01:00
Atis Elsts
f9516eae73 Add stack check library and example 2017-12-01 13:35:06 +00:00
alexstanoev
9bbc9202a4 Add JTAG interface configuration in contiki-conf.h for CCxx platforms
This adds a new toggle to `contiki-conf.h` which controls access to the
JTAG debug interface on CC26xx/CC13xx platforms.
2017-11-26 18:13:03 +00:00
George Oikonomou
065bad280d Adjust return types of JN516x-specific slip implementation 2017-11-24 12:31:21 +00:00
Simon Duquennoy
bc741c00cc cc2538 platforms: initialize linkaddr in phase 2 but set RF params only in phase 3 2017-11-23 05:19:00 -08:00
Simon Duquennoy
faf526b441
Merge branch 'develop' into contrib/remove-mt 2017-11-17 19:40:06 +01:00
Simon Duquennoy
8f7b8cd23e Removing unused Cooja MT functions 2017-11-17 08:24:10 -08:00
Joakim Eriksson
d71559d153
Merge branch 'develop' into contrib/disable-annotate 2017-11-14 22:53:18 +01:00
George Oikonomou
917c4c87de Remove LED undefs 2017-11-12 11:58:35 +00:00
Simon Duquennoy
0952960b91 Removing multi-threading support 2017-11-11 15:28:11 +01:00
Simon Duquennoy
3572ab1f4f Platform cooja: disable TCPIP annotations by default 2017-11-10 23:46:51 +01:00
George Oikonomou
6212359628 Remove obsolete sensors from the native platform
The native platform code has a number of sensor drivers, all of which appear to be stubs and/or unused. This commit removes them.

Even though the platform doesn't have LEDs, we leave this one intact so that LED-using examples can still build.
2017-11-10 15:11:18 +00:00
George Oikonomou
ec77214226 Remove obsolete SLIP_foo_CONF_NO_PUTCHAR 2017-11-01 10:04:48 +00:00
Simon Duquennoy
1275c4cb9e
Merge pull request #139 from nfi/contrib/energest-deep-lpm
New energest type for deep sleep plus configurable type for Energest time source
2017-10-31 23:24:12 +01:00
George Oikonomou
a05a6b59d0 Remove all unnecessary BAUD2UBR macro definitions 2017-10-31 21:56:38 +00:00
George Oikonomou
73544572cf Change all calls to adhere to new prototype 2017-10-31 21:56:38 +00:00
George Oikonomou
aa07073acd Change all slip_arch_init implementations 2017-10-31 21:56:38 +00:00
George Oikonomou
6d0f43f291 Remove stub instances of uart1.h
Some platforms provide this header file because some examples used to assume its presence. Now that the examples no longer make this assumption, those stub headers are no longer required.
2017-10-31 21:56:38 +00:00
Niclas Finne
e6ba2664b8 energest: removed include of energest from contiki.h to avoid circular dependency 2017-10-31 22:18:17 +01:00
Simon Duquennoy
646764b128 Platform native: print global IPv6 at init 2017-10-31 18:59:53 +01:00
George Oikonomou
26d5efb784 Re-arrange the CC26xx startup sequence 2017-10-29 23:18:39 +00:00
George Oikonomou
fd38d85c6e Fix compile error for the Cooja platform 2017-10-29 23:18:39 +00:00
George Oikonomou
5fb10c5665 Add missing include 2017-10-29 23:18:39 +00:00
Simon Duquennoy
56d1f795ff Minor fixes to platform initialization 2017-10-29 23:18:38 +00:00
Simon Duquennoy
ff4ad7998a cc2538 platform.c: set link-layer address in phase two, as the Netstack initialization code needs it 2017-10-29 23:18:38 +00:00
Simon Duquennoy
7abc331047 cc2538 platforms: do not set Main log level from contiki-conf 2017-10-29 23:18:38 +00:00
George Oikonomou
91afb507b4 Use the logging module (CC2538DK) 2017-10-29 23:18:38 +00:00
George Oikonomou
463230d739 Use the logging module (JN516x) 2017-10-29 23:18:38 +00:00
George Oikonomou
edaa0c29cd Use the logging module (Native) 2017-10-29 23:18:38 +00:00
George Oikonomou
2430dd9f5a Use the logging module (nrf52dk) 2017-10-29 23:18:38 +00:00
George Oikonomou
59e5ec6860 Use the logging module (Openmote) 2017-10-29 23:18:37 +00:00
George Oikonomou
82b6875e62 Use the logging module (Sky) 2017-10-29 23:18:37 +00:00
George Oikonomou
6c8294b1e6 Use the logging module (CC26xx/CC13xx) 2017-10-29 23:18:37 +00:00
George Oikonomou
248db78214 Use the logging module (Zoul) 2017-10-29 23:18:37 +00:00
George Oikonomou
7b3f77ac2e Remove leftover includes 2017-10-29 23:18:37 +00:00
George Oikonomou
d7e78df728 Remove leftover call 2017-10-29 23:18:37 +00:00
George Oikonomou
36a22c5d33 Rename function to better match what it actually does 2017-10-29 23:18:36 +00:00
George Oikonomou
8de3ffbc2e Don't initialise the queuebuf unconditionally
Currently, it is only used by 6LoWPAN when fragmentation is enabled, by TSCH and by CSMA. Platforms that disable fragmentation and choose a different MAC layer (e.g. NULLMAC) will unnecessarily end up with the module linked in the image, wasting flash and/or RAM space.
2017-10-29 23:18:36 +00:00
George Oikonomou
3a1d362549 Provide boot sequence hooks (Native) 2017-10-29 23:18:36 +00:00
George Oikonomou
c41cd3b75e Provide boot sequence hooks (jn516x) 2017-10-29 23:18:36 +00:00
George Oikonomou
902b8154b7 Provide boot sequence hooks (Sky) 2017-10-29 23:18:36 +00:00
George Oikonomou
543f5ff1cd Provide boot sequence hooks (nrf52dk) 2017-10-29 23:18:35 +00:00
George Oikonomou
fd239a32c3 Provide boot sequence hooks (Zoul) 2017-10-29 23:18:35 +00:00
George Oikonomou
47f02608c3 Provide boot sequence hooks (OpenMote) 2017-10-29 23:18:35 +00:00
George Oikonomou
61d9ec3c35 Provide boot sequence hooks (CC2538DK) 2017-10-29 23:18:35 +00:00
George Oikonomou
db87b3c858 Provide boot sequence hooks (CC13xx-CC26xx) 2017-10-29 23:18:35 +00:00
Simon Duquennoy
882be25428 Merge pull request #94 from simonduq/pr/misc
Miscellaneous fixes
2017-10-14 09:24:45 +02:00
Simon Duquennoy
4d8277366d Merge pull request #97 from sics-iot/contrib/cleanup-energest
Made energest more configurable
2017-10-14 09:24:14 +02:00
Niclas Finne
358385b450 Removed obsolete radio-sensor API 2017-10-13 01:06:47 +02:00
Niclas Finne
7317316942 energest: removed energest type ENERGEST_TYPE_IRQ 2017-10-12 23:57:38 +02:00
Niclas Finne
8b930bfa06 energest: removed energest types for reading/writing flash 2017-10-12 23:53:31 +02:00
Simon Duquennoy
663d1f121d Autoconfigure Orchestra whenever the module is included 2017-10-12 18:32:19 +02:00
Simon Duquennoy
9cb34c85c0 TSCH: more automated configuration 2017-10-12 17:09:19 +02:00
Simon Duquennoy
09c0213898 Auto-enable USB serial on cc2538 when TSCH is used with SLIP or with the shell 2017-10-12 17:09:04 +02:00
Simon Duquennoy
a1f74d6568 Shell: start automatically whenver the module is included 2017-10-12 17:08:42 +02:00
Simon Duquennoy
a8e952096b Makefile.cooja: remove now uneeded duplicate later configuration 2017-10-12 08:47:01 +02:00
Simon Duquennoy
41967732b1 Added MAKE_ROUTING make variable for cleaner routing protocol selection 2017-10-12 08:42:42 +02:00
Simon Duquennoy
91b8ee860e Makefile.include: added target 'boards' to show the list of boards available for the current target 2017-10-10 21:06:35 +02:00
George Oikonomou
f6dcadbc4a Include "contiki.h" to pull in platform/example configuration 2017-10-08 17:03:05 +01:00
George Oikonomou
82a1212f2b Relax platform configuration for 6lowpan fragmentation 2017-10-08 17:03:04 +01:00
George Oikonomou
5e13874850 Move inclusion of project-conf.h to the top of contiki-conf.h 2017-10-08 16:50:25 +01:00
Simon Duquennoy
fb0de6dd7a Various fixes to netstack config 2017-10-08 14:47:34 +02:00
Joakim Eriksson
40f189a3a3 removed NETSTACK_CONF_MAC_OTHER 2017-10-08 00:46:57 +02:00
Joakim Eriksson
8cf65ed01a changed NETSTACK configuration on network layer 2017-10-08 00:44:02 +02:00
Joakim Eriksson
3091a9010a added tun6 interface for native - removed old codebase for tap/tun/wpcap 2017-10-08 00:44:02 +02:00
Joakim Eriksson
dd1dd89c11 fixed include file to not declare send function 2017-10-08 00:44:02 +02:00
Joakim Eriksson
48049f120c fixed compilation issue on cooja-net driver 2017-10-08 00:44:02 +02:00
Joakim Eriksson
4aaf680c5b fixed some compilation issues cause by removing tcpip-output callback 2017-10-08 00:44:02 +02:00
Simon Duquennoy
a92319bbca Rename PROJECT_CONF_H to PROJECT_CONF_PATH for clarity and so as to avoid possible conflicts with guards in project-conf.h files 2017-10-07 09:45:41 +02:00
Simon Duquennoy
68d75edfd2 Merge pull request #84 from sics-iot/pr/ncurses
Platform native: do not lib ncurses
2017-10-07 08:19:39 +02:00
Simon Duquennoy
9b5d6e834a Platform native: do not link ncurses 2017-10-06 18:13:33 +02:00
Simon Duquennoy
25d69965a4 Move some readme files to wiki 2017-10-06 16:28:26 +02:00
Simon Duquennoy
c43da309d0 Merge pull request #80 from sics-iot/pr/doxygen-modules
Rework Doxygen modules
2017-10-02 14:13:43 +02:00
Simon Duquennoy
14779f29f8 Rework Doxygen modules 2017-09-29 22:18:48 +02:00
Simon Duquennoy
f9e3e7efcc Removing platform cooja-ip64 2017-09-29 15:02:34 +02:00
Simon Duquennoy
543408db68 Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
Simon Duquennoy
d9f9138ed2 Added NullNet, a network layer for non-IP-enabled cases 2017-09-22 14:34:20 +02:00
Simon Duquennoy
0aa44c3c22 Homogenize NET layer config with MAC 2017-09-22 14:34:20 +02:00
Simon Duquennoy
1a8f04effc TSCH: move platform-specific configuration flags to platform configuration files 2017-09-22 14:34:20 +02:00
Simon Duquennoy
ffc94f832c MAC layer configuration done from Makefile instead of .h files 2017-09-22 14:34:20 +02:00
Simon Duquennoy
688c6ee114 TSCH: comment on how the TSCH base drift is computed 2017-09-11 15:07:17 +09:00
Simon Duquennoy
0f92c6ebfd Include contiki.h instead of contiki-conf.h so as to ensure consistent inclusion of contiki-default-conf.h 2017-09-08 14:20:59 +02:00
Simon Duquennoy
5fcb2c9442 Only include cfs module in platforms that support cfs 2017-09-02 09:16:32 +02:00
Niclas Finne
2165978d14 Moved cfs-posix to native platform 2017-09-01 17:22:11 +02:00
Niclas Finne
2c86194ef8 Renamed core to os 2017-09-01 15:29:00 +02:00
766f0766e6 Removed platform Galileo 2017-08-31 15:58:56 +02:00
Simon Duquennoy
38ce63a614 jn516x: minor fixes 2017-07-11 15:44:48 +02:00
Simon Duquennoy
385d709f3c cc2538 TSCH: set base drift to compensate for inaccuracy of running a 32k timer 2017-07-11 15:44:24 +02:00
Simon Duquennoy
ac31def1ce Native platform contiki-conf.h: removed unused configuration flags 2017-07-06 10:01:56 +02:00
Simon Duquennoy
dc9e77eaf2 Simplify CSMA configuration 2017-07-06 10:01:56 +02:00
Simon Duquennoy
9a0087faf3 Simplify configuration through more suitable defaults, and removed unused features. Cleanup many configuration files. 2017-07-06 10:01:55 +02:00
Simon Duquennoy
1469268d32 Rework naming and configuration of sicslowpan compression levels 2017-07-05 19:48:42 +02:00
Simon Duquennoy
ffdbbb3084 Rename NETSTCK_ROUTING_STATE_SIZE to NETSTACK_MAX_ROUTE_ENTRIES, fix rpl-udp example accordingly 2017-06-30 18:03:58 +02:00
Simon Duquennoy
5df65382b3 rpl-lite: added state to DAG and only start advertising once reachable, added poisoning and leaving after a delay, improved management of DAG expiration 2017-06-29 16:53:17 +02:00
Simon Duquennoy
bf5bea583e Disable TCP by default, homogenize UDP and TCP connections config 2017-06-29 16:46:29 +02:00
Simon Duquennoy
f64ec24c9b Rename CONTIKI_NETWORK_DENSITY and CONTIKI_NETWORK_SIZE to NBR_TABLE_CONF_MAX_NEIGHBORS and NETSTCK_ROUTING_STATE_SIZE 2017-06-29 16:46:23 +02:00
Simon Duquennoy
a6643a9835 Added RPL-lite, a lightweight implementation of RPL. This is the new default. 2017-06-29 16:46:07 +02:00
Nicolas Tsiftes
9bb51087bf Renamed the drivers directory to arch to reflect that this is the main place for architecture-dependent functionality. 2017-06-28 16:20:43 +02:00