Commit Graph

619 Commits

Author SHA1 Message Date
Simon Duquennoy
11346c5bda RTIMER_BUSYWAIT_UNTIL_ABS: move cooja-specific implem to cooja platform directory 2019-03-04 09:17:17 +01:00
Simon Duquennoy
36d9d4a846 Radio API: document TSCH-related radio constants 2019-02-24 16:05:21 +01:00
Simon Duquennoy
6debe1b21b Added explicit types for TSCH timeslot timings in usec and ticks 2019-02-24 15:48:56 +01:00
Simon Duquennoy
2611d979fa
Merge branch 'develop' into contrib/default-prefix-as-variable 2019-02-18 15:22:53 +01:00
firmwareguru
28d7a6e1ba Fix simplelink gpio hysteresis bitmask 2019-02-04 19:59:03 -07:00
Edvard Pettersen
ff93ef11db Added individual configuration of front-end mode for each RF path 2019-01-28 16:26:21 +01:00
Edvard Pettersen
257a3794a1 Fixed RF front-end configuration and RF switching for CC13xx
Two issues caused the sensitivity on CC13xx devices to be dramatically
worse than CC26xx devices:
* Wrong front-end mode configuration
* Faulty/outdated RF switching logic

Both issues are inherently board-specific. Therefore, a generic
configuration was aligned across all boards which allows a specific
board to configure a correct RF front-end mode. In addition, the RF
switching logic was updated to latest and greatest.
2019-01-28 16:22:42 +01:00
Edvard Pettersen
c177034d39 Fixed BLE advertisement on SimpleLink
A couple of issues was found:
* Wrong CPE patches in RF settings
* Wrong whitening init value for the CMD_BLE5_ADV_NC command
* BLE MAC address was not copied to RAM before set in the bleAdvPar
  construct.
* BLE advertisements were not transmitted in intervals as specified by
  BLE spec.
2019-01-28 16:22:41 +01:00
George Oikonomou
eb03db9fa4
Merge branch 'develop' into contrib/msp430-platforms 2019-01-24 11:26:57 +00:00
firmwareguru
8203abb2e7 fixes contiki-ng/contiki-ng#768 simplelink opt3001 wrong value 2019-01-14 19:35:12 -07:00
Atis Elsts
f35a7a2f36 add back z1 platform 2019-01-14 14:55:34 +00:00
Zhitao He
d0a0a2a568 busy wait maximum 72 us (typically 36 us) for taking a measurement from the on-chip temperature sensor 2019-01-10 18:56:27 +01:00
George Oikonomou
5ac181741f
Merge branch 'develop' into fix-nrf-zero-temp-read 2019-01-10 03:40:10 +02:00
Atis Elsts
0b31b090aa Add AES-128 driver for CC26x0/CC13x0 2019-01-09 16:54:03 +02:00
Zhitao He
cd1b23ff38 fix temperature sensor reading in nrf52dk platform, which was stuck at zero 2019-01-09 14:02:01 +01:00
Toshio Ito
e7a86cf16b cooja: add int-master implementation.
It's copied from arch/cpu/native/int-master.c, which is just a no-op
stub.

See #790
2018-12-06 11:30:54 +09:00
George Oikonomou
944d8da255 Fix the nrf52dk .jlink and .flash make targets
Fixes #782
2018-12-01 20:52:47 +00:00
Edvard Pettersen
dff3e760b8 Fix correct LOG_INFO in platform.c
When logging info about channel and PANID a newline is added for each
logging statement. It should only add a newline for the first LOG_INFO.
2018-11-29 16:42:45 +01:00
Edvard Pettersen
081a8cd516 Fixed wrong PIN configuration for UART0_RX on LaunchPads
All LaunchPads drives the UART0_RX pin up, but is configured in the
Board file to be pull-down. This alignes the UART0_RX pin configuration
with the development board HW.
2018-11-26 12:04:08 +01:00
George Oikonomou
4243836e85
Merge branch 'develop' into contrib/default-prefix-as-variable 2018-11-25 02:43:45 +00:00
Simon Duquennoy
f1bbc42121 Build system: enable compiling with arch directory at arbitrary paths 2018-11-23 10:41:40 +01:00
Olav Frengstad
5e57f7de83 Allow configurable linker script
Make it possible to overwrite `LDSCRIPT` from other Makefiles
2018-11-14 22:35:27 +05:30
firmwareguru
504be07f4f fixes contiki-ng/contiki-ng#756 simplelink target .bin files too big. 2018-11-11 20:58:12 -07:00
George Oikonomou
15f6e1d7a3 Change the way of accessing the default v6 prefix
This commit changes the method of accessing the default v6 prefix. Instead of always using `UIP_DS6_DEFAULT_PREFIX`, we store the default prefix in a variable. We subsequently retrieve the prefix by calling `uip_ds6_default_prefix()`.

`uip_ds6_init()` will set this variable to the value of `UIP_DS6_DEFAULT_PREFIX`, but only if the startup code has not set a different default prefix before `uip_ds6_init()` gets called.

This approach has the following benefits:

* It allows us to change the default prefix at run time.
* It allows the startup code to set a prefix different than the one specified by `UIP_DS6_DEFAULT_PREFIX`, which can be useful if the default prefix comes from a different source (e.g. the command line for native, or a configuration stored on a node's flash)
* In many places the current code assumes that the prefix contains 6 bytes of zeros (e.g. `FDxx::/64`). Changing to a different prefix (e.g. `FD00:ABCD::`) would need extensive code changes. This change here makes it easy to use a prefix of any length.
2018-11-11 18:30:54 +00:00
George Oikonomou
057dbebb24 Remove redundant code: prefix is always NULL 2018-11-11 18:24:33 +00:00
Simon Duquennoy
4ea5d41d52 Merge branch release-4.2 back into develop 2018-11-09 17:04:31 +01:00
George Oikonomou
cf9be4e7f8
Merge branch 'develop' into cc2420_carrier 2018-11-05 21:45:27 +00:00
Simon Duquennoy
bda7c329ba
Merge branch 'develop' into contrib/csma-llsec 2018-11-02 01:13:14 +01:00
Carlos Pérez Penichet
2d2d6b3ad6 Fixed code style issues 2018-10-29 11:15:40 +01:00
Simon Duquennoy
a2b7b996e4
Merge branch 'develop' into contrib/uip-cleanup 2018-10-29 10:18:10 +01:00
kkrentz
468a14b528 moved initialization of queuebuf to contikimac-main.c 2018-10-27 07:13:36 -07:00
Carlos Pérez Penichet
a906f03a25 cc2420 return to last state when disabling carrier
Made cc2420 follow the same logic as cc2538 when
disabling the unmodulated carrier. Now they both
return to the state they were in before the carrier
was enabled.
2018-10-26 16:28:20 +02:00
Carlos Pérez Penichet
c6770112af Fixed code style and removed forgotten pritf's 2018-10-25 11:49:20 +02:00
Carlos Pérez Penichet
79a4fe33a6 Unmodulated carrier transmission for cc2538
Modified the cc2538 driver to enable the radio test
mode to emit unmodulated carriers (tones).
A carrier can be enabled using the normal radio driver
API:
NETSTACK_CONF_RADIO.set_value(
RADIO_PARAM_POWER_MODE,
RADIO_POWER_MODE_CARRIER_ON);

Once enabled, the carrier can be disabled like this:
NETSTACK_CONF_RADIO.set_value(
RADIO_PARAM_POWER_MODE,
RADIO_POWER_MODE_CARRIER_OFF);
2018-10-25 11:24:44 +02:00
Carlos Pérez Penichet
feb1513b46 Unmodulated carrier transmission for cc2420
Modified the cc2420 driver to enable the radio test
mode to emit unmodulated carriers (tones).
A carrier can be enabled using the normal radio driver
API:
NETSTACK_CONF_RADIO.set_value(
    RADIO_PARAM_POWER_MODE,
    RADIO_POWER_MODE_CARRIER_ON);

Once enabled, the carrier can be disabled like this:
NETSTACK_CONF_RADIO.set_value(
    RADIO_PARAM_POWER_MODE,
    RADIO_POWER_MODE_CARRIER_OFF);
2018-10-24 15:26:40 +02:00
Yasuyuki Tanaka
2af3665b04 simplelink: correct a comment in Makefile.cc13xx-cc26xx 2018-10-23 13:32:55 -07:00
Yasuyuki Tanaka
0bcdd39cc6 Rename 'arch/cpu/cc26xx-cc13xx' to 'arch/cpu/cc26x0-cc13x0' 2018-10-23 13:32:03 -07:00
Yasuyuki Tanaka
7a6cbff5f6 Rename srf06/{cc26xx,cc13xx} to srf06/{cc26x0,cc13x0} 2018-10-23 13:09:02 -07:00
Yasuyuki Tanaka
61fba4dcde Rename srf06-cc26xx to cc26x0-cc13x0 2018-10-23 13:04:32 -07:00
George Oikonomou
1dc0249836 Adjust the jn516x build system to the new build output dir structure 2018-10-23 17:54:35 +01:00
George Oikonomou
14eeeccebc Always create example.$(TARGET) under build/ and then copy to . 2018-10-23 17:47:32 +01:00
George Oikonomou
44d3f78b9c Adjust the Cooja build system to the new build output dir structure 2018-10-23 17:47:31 +01:00
George Oikonomou
6f2f4b4b23 Fix the .upload target 2018-10-23 17:47:31 +01:00
George Oikonomou
f8ea68c3eb Change build output dir structure and filenames 2018-10-23 17:47:30 +01:00
George Oikonomou
ab5d5ba33c Extend build verbosity control
Apply verbosity control for mkdir, cp, srec_cat, objcopy, objdump
2018-10-23 17:47:30 +01:00
George Oikonomou
1841aadf6a Reduce makefile code duplication 2018-10-23 16:23:14 +01:00
Joakim Eriksson
c42fae82da added uipbuf attributes for llsec level and key and added payloadlen in mac 2018-10-20 22:25:55 +02:00
George Oikonomou
74a6853d35
Merge branch 'develop' into contrib/tools/zolertia-motelist 2018-10-19 11:28:36 +01:00
George Oikonomou
aedf05c2a7
Merge branch 'develop' into bugfix/cc26xx-rf-interrupt 2018-10-18 19:32:19 +01:00
Simon Duquennoy
ff825daaea Merge remote-tracking branch 'origin/develop' into wip/uip6-cleanup 2018-10-18 20:28:00 +02:00