1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

602 Commits

Author SHA1 Message Date
Martine Lenders
f4392f7661 xbee: make address length configurable
6LoWPAN-ND states [1] that the IPv6 address should be generated from the
EUI-64 of the interface, since it can be assumed as globally unique and
would not require duplicate address detection. Currently the xbee module is
not able to use any other address for short address with IPv6 since
NETCONF_OPT_SRC_LEN always returns 2. This patch fixes that.

[1] https://tools.ietf.org/html/rfc6775#section-5.2
2015-06-11 19:51:35 +02:00
daniel-k
80c13d109b periph/rtt: add macros for time to tick conversion 2015-06-08 17:19:20 +02:00
Ludwig Ortmann
af5af90cba drivers/dht: add support for DHT21 2015-06-06 17:08:47 +02:00
Hauke Petersen
f5ec1926e6 Merge pull request #3106 from gebart/pr/servo-updates
drivers/servo: Add test program, handle inexact frequencies
2015-06-04 12:08:06 +02:00
haukepetersen
4a19e255d7 drivers/ng_at86rf: disable ack req on bcast/mcast 2015-06-02 23:07:03 +02:00
Peter Kietzmann
6dc0e789e1 Merge pull request #3101 from gebart/pr/warning-fixes
Various warning fixes
2015-05-31 17:03:49 +02:00
Johann F
d317ea2d3a drivers/hdc1000: fix hdc1000_startmeasure function
Change i2c_write_bytes to i2c_write_byte because it was
seriously wrong at this point.
2015-05-30 20:18:34 +02:00
Joakim Gebart
3ede02683c drivers/servo: Handle inexact frequencies from periph_pwm 2015-05-30 12:41:07 +02:00
Joakim Gebart
1c855cb230 drivers/at86rf231: fix unused-parameter 2015-05-29 14:23:01 +02:00
Peter Kietzmann
c839e65479 Merge pull request #3025 from OlegHahm/netconf_retransmit
netconf: at86rf231: configure maximum retransmits
2015-05-29 10:10:56 +02:00
Ludwig Ortmann
4a05f47bcf drivers/dht: initial import
Unified driver for DHT11 and DHT22.
2015-05-29 06:24:18 +02:00
Hauke Petersen
9943f51080 global: renamed cpu-conf.h into cpu_conf.h 2015-05-28 15:45:05 +02:00
Oleg Hahm
76e4c820e5 ng_netconf: ng_at86rf2xx: set retransmissions
Introduces a netconf option to configure the maximum amount of
retransmissions and implements this for the at86rf2xx radios.
2015-05-28 13:35:36 +02:00
Martine Lenders
e28a64f282 ng_at86rf2xx: add NETCONF_OPT_PROTO to _get 2015-05-26 15:25:37 +02:00
Joakim Gebart
13832d8e62 everything: Remove filename from @file Doxygen command 2015-05-22 07:34:41 +02:00
Oleg Hahm
9739acaf1b Merge pull request #3032 from OlegHahm/at86rf_reset_delay
ng_at86rf2xx: set reset delay properly
2015-05-21 23:08:28 +02:00
Lucas Jenss
426170b064 Improve naming of thread stacksize/priority constants
As discussed in #2725, this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:

* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
2015-05-21 00:14:23 +02:00
Johann Fischer
b0e73b9a8c Merge pull request #2983 from jfischer-phytec-iot/pr@kw2x-rf-autoinit
boards/pba-d-01-kw2x: add network interface auto init
2015-05-20 10:00:23 +02:00
Oleg Hahm
961d302d72 ng_at86rf2xx: set reset delay properly 2015-05-19 15:08:44 +02:00
Hauke Petersen
354e5db5a8 Merge pull request #2963 from OlegHahm/fix_2962
at86rf2xx: fix EUI64 computation
2015-05-19 10:59:34 +02:00
Oleg Hahm
6e6f1792af Merge pull request #2586 from OlegHahm/remove_obsolete_cc110x_rpl_warning
cc110x: remove warning about the transceiver mode
2015-05-19 01:34:54 +02:00
Oleg Hahm
cfc3bf5f70 ng_at86rf2xx: replace printf with DEBUG 2015-05-18 21:21:57 +02:00
Jonas
9b66477180 adapted new auto-init process to kw2xrf driver
added kw2xrf to auto-init
2015-05-18 17:12:44 +02:00
Peter Kietzmann
b3e78ddc33 Merge pull request #3016 from gebart/pr/tab-indentation
Inconsistent indentation in some files
2015-05-18 15:45:15 +02:00
Oleg Hahm
67042901bc xbee: remove superfluous includes 2015-05-18 15:30:25 +02:00
Oleg Hahm
92f4dec8da xbee: use last 2 octets of EUI64 for short address
Dependency two CPUID and hard coded default short address are
superfluous now.
2015-05-18 15:30:25 +02:00
Oleg Hahm
c45eaf62de ng_at86rf2xx: compute unique EUI64 from CPUID
The EUI64 for the at86rfxx is computed from the full CPUID by using
sliding xor.
2015-05-18 15:30:25 +02:00
895b629630 Merge pull request #2901 from kaspar030/fix_auto_init_netif
network: make auto_init_ng_netif less board-dependant
2015-05-18 13:09:55 +02:00
Oleg Hahm
5a5f9df898 cc110x: remove warning about the transceiver mode
* RPL is currently working with both transceiver modes (wake on radio
  _and_ constant RX)
2015-05-18 11:41:27 +02:00
Hauke Petersen
fc52bfa164 Merge pull request #3014 from gebart/pr/ng_at86rf2xx-array-bounds
drivers/ng_at86rf2xx: correct array bounds on tx_pow_to_dbm
2015-05-18 10:35:14 +02:00
Hauke Petersen
7926d921df Merge pull request #2973 from bapclenet/at86rf2xx/212b
at86rf2xx/915MHz fix
2015-05-18 10:13:52 +02:00
Joakim Gebart
0ae1a3d7e5 drivers/nrf24l01p: Replace tabs by spaces 2015-05-18 07:10:53 +02:00
Joakim Gebart
83065236ec drivers/mag3110: Replace tabs by spaces 2015-05-18 07:10:52 +02:00
Joakim Gebart
9597cfd946 drivers/cc110x: Replace tabs by spaces 2015-05-18 07:10:52 +02:00
Joakim Gebart
5dbeef5a95 drivers/ng_at86rf2xx: correct array bounds on tx_pow_to_dbm
There are only 37 entries in the array in the C file as well as in the
table in the data sheet.

Fixes the following cppcheck error:

    drivers/ng_at86rf2xx/ng_at86rf2xx_getset.c:49: error (arrayIndexOutOfBounds): Array 'dbm_to_tx_pow_868[37]' accessed at index 37, which is out of bounds.
2015-05-18 06:15:10 +02:00
a89b382297 drivers: xbee: adapt to new auto_init_ng_netif scheme 2015-05-17 21:02:00 +02:00
3c00ff0c9b drivers: adapt ng_at86rf2xx to new auto_init_ng_netif scheme 2015-05-17 21:02:00 +02:00
Oleg Hahm
287aa4cdbf Merge pull request #2992 from gebart/pr/pwm-return-value
periph_pwm: Return actual frequency (like the docs say)
2015-05-17 13:06:08 +02:00
Ludwig Ortmann
fe4391b179 drivers/isl29125: fix group description 2015-05-16 13:56:16 +02:00
Joakim Gebart
92a743560d drivers/periph/pwm: Update return value doxygen to match long description 2015-05-16 10:00:03 +02:00
Oleg Hahm
4d64b98f2c Merge pull request #2756 from jremmert-phytec-iot/pr@ng_kw2xrf
driver/kw2xrf: added ng_netdev implementation for the Freescale kw2x radio
2015-05-14 12:51:00 +02:00
bapclenet
dd8cc82da0 at86rf2xx/915MHz fix 2015-05-14 09:24:47 +02:00
Jonas
3287e71d45 Initial import of tests for kw2x radio
squash: driver: fixed typo to pass doccheck

squash: driver: bug fixes after test

squash: adapted Makefiles for correct build behaviour

restructured, no spi interaction in isr anymore

major bugfixes and restructurization

comments addressed

introduce new netconf option, ..AUTOCCA

squash: minor bugfix and add auto-init mechanism

squash: minor fixes to make travis happy
2015-05-13 13:06:59 +02:00
Jonas
49f09477af Initial commit of ng_kw2xrf radio driver
squash: removed tab indent
2015-05-13 11:21:14 +02:00
Oleg Hahm
21dc560a19 Merge pull request #2906 from LudwigOrtmann/pr/isl29125
ISL29125 driver import
2015-05-13 08:42:40 +02:00
Oleg Hahm
7e4ccbbee7 Merge pull request #2959 from authmillenon/at86rf2xx/fix/offset
ng_at86rf2xx: fix offset error on send
2015-05-12 22:55:02 +02:00
Ludwig Ortmann
be8d62a967 drivers/isl29125: beautify indentation 2015-05-12 07:25:54 +02:00
Ludwig Ortmann
0db92da19d drivers/isl29125: initial import 2015-05-12 07:23:41 +02:00
Oleg Hahm
69f07c601f Merge pull request #2949 from OlegHahm/crash_panic_foobar
core: panic unification
2015-05-10 21:54:43 +02:00
Oleg Hahm
92b41df711 ng_at86rf2xx: use correct check for CPUID_LEN 2015-05-10 21:50:07 +02:00
Martine Lenders
e5155390d0 ng_at86rf2xx: fix offset error on send 2015-05-10 14:02:42 +02:00
Joakim Gebart
b64ca89dc4 netdev: doxygen: documentation fix for NETDEV_DEFAULT 2015-05-10 09:56:19 +02:00
Joakim Gebart
dba0c94cc2 netdev: Doxygen add missing @defgroup netdev_802154 2015-05-10 09:42:08 +02:00
Oleg Hahm
e9145fb911 Merge pull request #2939 from gebart/pr/whitespace-fixes1
Whitespace fixes
2015-05-09 23:46:31 +02:00
Oleg Hahm
828839316b core: renamed crash.h to panic.h 2015-05-09 18:44:10 +02:00
Martine Lenders
ebb88ce72f Merge pull request #2877 from bapclenet/at86rf2xx/212b
at86rf2xx/212b_frequency
2015-05-09 16:48:35 +02:00
bapclenet
3bce17b3e4 at86rf2xx/tx_pwr for 212B and 233 2015-05-09 13:30:52 +02:00
Joakim Gebart
453efc8ea1 drivers/include/hdc1000.h: Unix line endings 2015-05-09 09:02:57 +02:00
bapclenet
e33437958b at86rf2xx/212b_frequency - adapt 868MHz and 915MHz frequency 2015-05-08 12:46:56 +02:00
Oleg Hahm
b48eb4ac34 at86r231: removed pointless checks
Checking the length for bool options is pretty pointless.
2015-05-07 20:46:56 +02:00
Oleg Hahm
6aeb8ca3d1 at86rf231: complete debug messages for getset 2015-05-07 20:46:56 +02:00
Oleg Hahm
a97ee2b0a4 at86rf231: disable SFD IRQ by default 2015-05-06 15:58:02 +02:00
Oleg Hahm
c8aff36237 netconf: added option to en/disable the SFD IRQ
Also includes the implementation for the AT86RF231
2015-05-06 15:58:02 +02:00
Joakim Gebart
2738e9f9a8 nvram_spi: Implement generic SPI NVRAM driver. 2015-05-04 10:39:46 +02:00
Joakim Gebart
db9d3ddf48 nvram: Add generic SPI connected NVRAM interface. 2015-05-04 10:39:42 +02:00
Joakim Gebart
a982af330c drivers: Add API for NVRAM devices with byte level erase. 2015-05-04 10:39:32 +02:00
Ludwig Ortmann
a729afa9ec drivers/isl29020: fix return value integer error
Problem:

Since `i2c_read_reg` returns (signed) `int` values, the result can
be negative. However, the variable used to save the result is unsigned.

Fix:

Add and use a signed variable for return value storing.
2015-05-02 08:35:38 +02:00
Ludwig Ortmann
8ba166df6d drivers/isl29020: fix some spelling errors 2015-05-02 08:33:15 +02:00
Hauke Petersen
3778fb3dde drivers: added driver for PCD8544 LCD display 2015-04-30 13:46:03 +02:00
haukepetersen
6b7b241726 drivers/ng_at86rf2xx: disable debug 2015-04-29 14:20:30 +02:00
Hauke Petersen
fefac35c1c drivers: new driver for at86rf2xx family radios 2015-04-27 18:56:59 +02:00
Hauke Petersen
b48561785e drivers/xbee: added getter for addr_len and src_len 2015-04-23 16:30:07 +02:00
Hauke Petersen
7b29947b6d drivers/xbee: optimized addr generation from CPUID 2015-04-23 15:52:54 +02:00
Hauke Petersen
727ddb9dc4 drivers/xbee: misc fixes to xbee driver
- fixed sending of with long addresses
- corrected type setting of netif hdr pktsnips
2015-04-20 18:13:17 +02:00
Hauke Petersen
ab7f1dc2cd drivers/xbee: changed default for channel & panID 2015-04-20 18:12:40 +02:00
Peter Kietzmann
32f901a142 Merge pull request #2777 from authmillenon/xbee/feat/max_packet_size
xbee: add maximum packet size option
2015-04-17 09:15:16 +02:00
Martine Lenders
e4deb1e50e xbee: add maximum packet size option 2015-04-16 18:46:16 +02:00
Hauke Petersen
bf4733fd88 drivers/periph/spi: added missing stdint.h include 2015-04-16 18:09:32 +02:00
Hauke Petersen
fa0a887dd5 drivers/xbee: declared private functions as static 2015-04-14 11:49:10 +02:00
Martine Lenders
67602bb443 Merge pull request #2600 from authmillenon/ipv6_nc/feat/mc-translation
[RFC] ng_netif_hdr: add flags for multicast and broadcast
2015-04-14 10:08:22 +02:00
PeterKietzmann
9e17d1b9fd doc/drivers/srf: edit author and copyright 2015-04-13 13:07:56 +02:00
Martine Lenders
26e72b594f drivers.xbee: adapt driver for bc/mc flags 2015-04-03 16:05:10 +02:00
altairpearl
b47cc8d93d drivers : Update include guards to remove leading underscores 2015-03-30 20:00:28 +05:30
Martine Lenders
7f8d680e20 Merge pull request #2695 from haukepetersen/add_driver_xbee
drivers: added support for Xbee S1 modules
2015-03-27 15:09:33 +01:00
Ludwig Ortmann
a126bdb1b8 Merge pull request #2704 from LudwigOrtmann/pr/at86rf231-break
drivers/at86rf231: fix break condition
2015-03-26 21:47:36 +01:00
Hauke Petersen
a5cf137cc4 Merge pull request #2700 from gebart/pr/lis3dh-add-missing-spi-release
lis3dh: Add missing spi_release in error cases.
2015-03-25 21:26:01 +01:00
Hauke Petersen
8a20f2f401 drivers: added support for Xbee modules 2015-03-24 23:19:29 +01:00
Oleg Hahm
985a6525cc Merge pull request #2690 from Darredevil/patch-13
Repair header file include guards for /drivers
2015-03-24 11:04:18 -05:00
Alexandru Caciulescu
4f643532ce drivers/lsm303dlhc: Repair header file include guards 2015-03-24 17:55:44 +02:00
Alexandru Caciulescu
efd5a071b2 drivers/lps331ap: Repair header file include guards 2015-03-24 17:55:44 +02:00
Alexandru Caciulescu
fb0e523719 drivers/l3g4200d: Repair header file include guards 2015-03-24 17:55:43 +02:00
Alexandru Caciulescu
57dd7d35a1 drivers/include/servo: Repair header file include guards 2015-03-24 17:55:43 +02:00
Alexandru Caciulescu
d31f9cbb1b drivers/include/rgbled: Repair header file include guards 2015-03-24 17:55:42 +02:00
Alexandru Caciulescu
2c5164004c drivers/include/pir: Repair header file include guards 2015-03-24 17:55:42 +02:00
Alexandru Caciulescu
451bf78549 drivers/include/periph: Repair header file include guards 2015-03-24 17:55:42 +02:00
Alexandru Caciulescu
2b88c861c9 drivers/include/nrf24l01: Repair header file include guards 2015-03-24 17:55:41 +02:00
Alexandru Caciulescu
78618961f0 drivers/include/mq3: Repair header file include guards 2015-03-24 17:55:41 +02:00
Alexandru Caciulescu
ebaf61cc94 drivers/include/ltc4150: Repair header file include guards 2015-03-24 17:55:41 +02:00
Alexandru Caciulescu
7d68efcc38 drivers/include/lsm303dlhc: Repair header file include guards 2015-03-24 17:55:40 +02:00
Alexandru Caciulescu
81787154d0 drivers/include/lps331ap: Repair header file include guards 2015-03-24 17:55:40 +02:00