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

1276 Commits

Author SHA1 Message Date
PeterKietzmann
e617d74fa8 drivers/kw2xrf: update default params on init 2017-02-07 15:08:14 +01:00
smlng
432b03e99e drivers/kw2xrf: cleanup
- use generic short and long address generator
    - defines in main header file
    - refine debug output
    - correct signed/unsigned warnings
2017-02-07 15:08:14 +01:00
smlng
887f499eca drivers/kw2xrf: adapt to new SPI interface
- add docu for structs, defines and functions
    - exclude drivers/kw2xrf/include/overwrites.h (vendor header)
    - add missing header guards
2017-02-07 15:08:05 +01:00
Johann Fischer
cf32ff7f19 drivers/kw2xrf: adapt for the netdev2 interface
Adapt the kw2xrf driver for the netdev2 interface.
This patch also adds overwrites.h, the header provides overwrite
values for the kw2xrf PHY.
2017-02-07 15:07:33 +01:00
Hauke Petersen
2f9e3c89e1 periph/hwrng: use void* buf for hwrng_read() 2017-02-07 13:20:39 +01:00
Peter Kietzmann
4403cc931a Merge pull request #6523 from haukepetersen/opt_dht_autoinit
drivers/dht: updated auto-init + some enhancements
2017-02-07 11:57:10 +01:00
Hauke Petersen
544c590d5b drivers: fixed doxygen groups 2017-02-07 11:16:38 +01:00
Hauke Petersen
1dd806bb28 cpu/lpc2387: remove (unused) legacy ADC driver 2017-02-07 10:56:33 +01:00
Martine Lenders
2ef1f2e8f7 Merge pull request #6521 from haukepetersen/rm_lpc_i2clma
cpu/drivers: remove deprecated lm75a+lpc2387 I2C drivers
2017-02-07 10:27:26 +01:00
Hauke Petersen
3afc3eb10b drivers/dht: updated auto-init + some enhancements
- unified auto-init to use same style as other SAUl devices
- make use of named return values
- added some asserts
2017-02-07 09:59:23 +01:00
martinheusmann
9d199d5d09 isl29125: added interrupt configuration register 2017-02-02 13:31:33 +01:00
Joakim Nohlgård
9a3589dcfe Merge pull request #6479 from haukepetersen/fix_lis3dh_mulle
drivers/lis3dh: fixed bug and simplified init()
2017-01-31 19:48:52 +01:00
25ce12f3ef drivers/tsl2561: initial implementation + saul support 2017-01-31 17:49:16 +01:00
Hauke Petersen
34d1064a00 drivers: remove utterly outdated lm75a driver 2017-01-30 16:14:18 +01:00
Marc Poulhiès
56bd36b55b spi: doc typo 2017-01-30 13:26:01 +01:00
Hauke Petersen
1ae0ad2509 drivers/pn532: adapted to SPI interface changes 2017-01-27 08:30:02 +01:00
Peter Kietzmann
9fe776320d Merge pull request #6277 from bergzand/mrf24j40
drivers/mrf24j40: Add mrf24j40 radio support
2017-01-26 15:28:31 +01:00
7178d6d002 drivers: encx24j600: misc compilation fixes 2017-01-26 10:56:59 +01:00
Hauke Petersen
ed2bb9d3f8 drivers/lis3dh: fixed bug and simplified init()
- changed to SPI_MODE_0
- made init() function use the params struct as parameter
2017-01-26 10:12:44 +01:00
672da2c457 drivers/mrf24j40: initial mrf24j40 support 2017-01-26 10:05:20 +01:00
Hauke Petersen
5bdb3bfa61 misc: aggregated doxygen fixes 2017-01-25 16:46:46 +01:00
Hauke Petersen
24ceb954ea drivers/sdcard_spi: adapted to SPI interface changes 2017-01-25 16:46:46 +01:00
Hauke Petersen
4bfce892d3 drivers/periph&cpu: add and use common periph_init() 2017-01-25 16:46:46 +01:00
Hauke Petersen
5a26037702 drivers/pcd8544: adapted to SPI API changes 2017-01-25 16:46:46 +01:00
Hauke Petersen
8ff20d1386 drivers/nvram_spi: adapted to SPI API changes 2017-01-25 16:46:46 +01:00
Hauke Petersen
ac482fd3e2 drivers/w5100: adapted to SPI API changes 2017-01-25 16:46:46 +01:00
Hauke Petersen
5cb10ca9ea drivers/nrf24l01: adapted to SPI API changes 2017-01-25 16:46:46 +01:00
Hauke Petersen
3d80b9c581 drivers/lis3dh: adapted to SPI API changes 2017-01-25 16:46:46 +01:00
Hauke Petersen
e5ab3c2020 drivers/kw2xrf: adpated to SPI API changes 2017-01-25 16:46:45 +01:00
Hauke Petersen
87534c75f0 drivers/encx24j600: adapted to SPI API changes 2017-01-25 16:46:45 +01:00
Hauke Petersen
dc3e78d521 drivers/end28j60: adapted to SPI API changes 2017-01-25 16:46:45 +01:00
Hauke Petersen
5639b1d52f drivers/cc2420: adapted to SPI API changes 2017-01-25 16:46:45 +01:00
Hauke Petersen
8799b3ab9e drivers/cc110x: adapted to SPI API changes 2017-01-25 16:46:45 +01:00
Hauke Petersen
236f1edddd drivers/at86rf2xx: adapted to SPI API changes 2017-01-25 16:46:45 +01:00
Hauke Petersen
610e671aac drivers/adt7310: adapted to SPI API changes 2017-01-25 16:46:45 +01:00
Hauke Petersen
96fe0fd63e drivers/periph_common: reworked SPI driver parts 2017-01-25 16:46:04 +01:00
Hauke Petersen
37e0482e35 drivers/periph: remodeled SPI driver interface 2017-01-25 16:46:04 +01:00
Francisco Acosta
e44236d379 Merge pull request #6170 from haukepetersen/add_periph_romaddrtopage
drivers/flashrom: added addr-to-page function
2017-01-24 14:18:41 +01:00
Hauke Petersen
5d8f686cf6 Merge pull request #6031 from MichelRottleuthner/sdcard_spi_testing
add driver for sd-cards (using spi)
2017-01-24 14:18:11 +01:00
d1db946188 Merge pull request #6344 from haukepetersen/opt_pm_misc
pm: misc cleanup and fixes
2017-01-24 14:07:36 +01:00
Hauke Petersen
af1e492552 drivers/flashpage: added addr-to-page function 2017-01-24 09:41:56 +01:00
smlng
80a44ddfcc drivers/cc110x: add xtimer as module dependency 2017-01-23 14:01:32 +01:00
Peter Kietzmann
72aa1569f9 Merge pull request #6231 from haukepetersen/rm_devenums_pwm
drivers/pwm: removed deprecated PWM_x defines
2017-01-23 10:12:11 +01:00
Kees Bakker
a0a76d66d2 drivers: Add driver for BME280 2017-01-20 20:26:43 +01:00
Michel Rottleuthner
ac2ae7cb56 drivers: added driver for accessing sd_cards over spi 2017-01-20 18:11:26 +01:00
kYc0o
ee741a4296 drivers/xbee: add UL to constants for 8 and 16 bit compatibility 2017-01-20 14:22:19 +01:00
Oleg Hahm
3c6678b037 *: fix mismatching endifs for header guards 2017-01-19 18:30:53 +01:00
Oleg Hahm
7ee7801c10 *: remove trailing underscores from header guards 2017-01-19 18:30:53 +01:00
Peter Kietzmann
f119a2e77b Merge pull request #4419 from thomaseichinger/pr/min_invasive
drivers/at86rf2xx: code size optimisations
2017-01-19 17:48:24 +01:00
Oleg Hahm
693636690c Merge pull request #6399 from OlegHahm/timex_constants
timex: unambiguous time conversion macros
2017-01-19 17:29:26 +01:00
Thomas Eichinger
467b255c03 drivers/at86rf2xx: code size optimizations
These changes try to reduce code size of the at86rf2xx
driver by reducing code duplication and simplification.
2017-01-19 08:04:08 -08:00
Martine Lenders
7599a81fd6 Merge pull request #6314 from haukepetersen/add_uuid
sys: add uuid module for central ID/addr generation
2017-01-19 14:12:09 +01:00
Oleg Hahm
4f4214235b timex: unambiguous time conversion macros 2017-01-19 13:18:08 +01:00
Peter Kietzmann
b92ce8ae2a Merge pull request #6369 from OlegHahm/at86rf2xx_rssi_base_value
at86rf2xx: different types have RSSI base values
2017-01-19 11:44:41 +01:00
Hauke Petersen
88636b6919 drivers/cc2420: use uuid module for addr gen 2017-01-19 11:09:29 +01:00
Hauke Petersen
84246d1687 drivers/cc110x: use uuid module for addr gen 2017-01-19 11:09:29 +01:00
Hauke Petersen
4105011867 drivers/enc28j60: used uuid module for addr gen 2017-01-19 11:09:29 +01:00
Hauke Petersen
81e8afd19e drivers/at86rf2xx: use uuid module for addr gen 2017-01-19 11:09:29 +01:00
Hauke Petersen
8624456efe drivers/w5100: use uuid_get() for HW addr gen 2017-01-19 11:09:29 +01:00
Hauke Petersen
55c4477038 periph/pm: minor doc clarification 2017-01-19 11:07:59 +01:00
Peter Kietzmann
616d35e96f Merge pull request #6153 from haukepetersen/opt_driver_mma8x5x
drivers/mma8x5x: remodeled driver
2017-01-19 09:56:31 +01:00
Oleg Hahm
c04c5cb9f9 at86rf2xx: different types have RSSI base values 2017-01-18 23:20:21 +01:00
Oleg Hahm
80d3176499 Merge pull request #6355 from OlegHahm/at86rf2xx_ext_nocca
at86rf2xx: remove CCA check
2017-01-18 23:13:57 +01:00
Hauke Petersen
a35709b4f8 Merge pull request #6360 from OlegHahm/periph_timer_remove_irq
periph timer: remove timer_irq_(en|dis)able
2017-01-18 22:58:21 +01:00
Hauke Petersen
c95abbe45a drivers/lsm303dlhc: added default params.h file 2017-01-18 15:34:29 +01:00
Hauke Petersen
e53c4ed515 drivers/lps331ap: added default params.h file 2017-01-18 15:34:02 +01:00
Hauke Petersen
4c505d5270 drivers/l3g4200d: added default params.h file 2017-01-18 15:33:39 +01:00
Hauke Petersen
81d27683c2 drivers/isl29020: added default params.h file 2017-01-18 15:33:20 +01:00
Hauke Petersen
c37de8de4c drivers/lis3dh: added default params.h file 2017-01-18 15:32:57 +01:00
Hauke Petersen
cf507c4f07 drivers/mma8x5x: remodeld driver
- renambed to mma8x5x to reflect the versatility
- cleaned up the interface
- fixed value computation for non 12-bit devices of the family
- added default configuration with mma8x5x_params.h
2017-01-18 10:51:15 +01:00
Hauke Petersen
3f259eaaf9 drivers/pwm: removed deprecated PWM_x defines 2017-01-18 10:11:50 +01:00
Peter Kietzmann
322de6627f Merge pull request #6373 from miri64/cc110x/fix/proto-only-for-gnrc_netif
cc110x: only handle NETOPT_PROTO if gnrc_netif module is present
2017-01-18 10:04:24 +01:00
Peter Kietzmann
6ac2ec1b83 Merge pull request #6385 from haukepetersen/opt_drivers_saulconfigmove
drivers: move SAUL config to _params.h + minor fixes
2017-01-18 09:01:52 +01:00
Peter Kietzmann
7c252eddae Merge pull request #4642 from haukepetersen/opt_hdc1000
drivers/hdc1000: remodeled driver + SAUL integration
2017-01-17 16:02:03 +01:00
Hauke Petersen
5f30c7a593 drivers/si70xx: check connection during init() 2017-01-17 11:48:41 +01:00
Hauke Petersen
9ad5d48065 drivers/si70xx: move SAUL config to params.h 2017-01-17 11:35:24 +01:00
Hauke Petersen
13942225eb drivers/jc42: move SAUL config to params.h 2017-01-17 11:34:55 +01:00
Hauke Petersen
232b8eb2a5 drivers/bmp180: move SAUL config to params.h 2017-01-17 11:34:16 +01:00
Hauke Petersen
976cf30281 drivers/hdc1000: remodeled driver
- cleaned up interface
- made read functions return phyical values
- made resolution configurable at initialization time
- added default parameter configuration file
- added SAUL support for the driver
2017-01-17 10:48:22 +01:00
Martine Lenders
456ae68fbe Merge pull request #6340 from gebart/pr/warn-fixes
sys+cpu: Some warning fixes
2017-01-16 17:18:29 +01:00
Hauke Petersen
296ca11a23 drivers/periph: removed GPIO from dev_enums.h 2017-01-16 09:31:24 +01:00
Joakim Nohlgård
a08a70a3fa drivers/at86rf2xx: Fix -Wsign-compare warning, add missing parentheses 2017-01-16 08:55:08 +01:00
Martine Lenders
7f7f08bf50 cc110x: only handle NETOPT_PROTO if gnrc_netif module is present
The cc110x_t::proto field is only present when the `gnrc_netif` module
is present. Handling its corresponding `NETOPT_PROTO` value leads to a
compile error when trying to compile without GNRC.
2017-01-15 20:36:53 +01:00
Oleg Hahm
3999d08f8c Merge pull request #6363 from LudwigKnuepfer/pr/fix-pn532-doxygengroup
doc: drivers/pn532: add missing ingroup
2017-01-15 15:54:34 +01:00
03d0f138b4 drivers/jc42 fix temperature parameter signedness 2017-01-15 13:10:37 +01:00
ad874fb694 drivers/jc42: Add i2c periph requirement 2017-01-15 13:10:37 +01:00
9a55556644 Removes not needed includes 2017-01-15 13:10:37 +01:00
3545073f49 drivers/jc42: More formatting fixes 2017-01-15 13:10:37 +01:00
01092dd7ca drivers/jc42 Minor formatting 2017-01-15 13:10:36 +01:00
0f22e13ccb drivers/jc42: Add JEDEC JC42.4 temperature sensors
This patch adds a driver for the jc42 compatible
temperature sensors. All sensors compatible with
jc42.4 should work. Examples include the mcp9808
and more.
2017-01-15 13:10:36 +01:00
Ludwig Knüpfer
ced11d5744 doc: drivers/pn532: add missing ingroup 2017-01-14 19:49:26 +01:00
Oleg Hahm
d0316fa7ae periph timer: remove timer_irq_(en|dis)able 2017-01-14 15:34:53 +01:00
Oleg Hahm
7068869b42 at86rf2xx: remove CCA check
Rationale: the datasheet states that "It is not recommended to manually
initiate an CCA measurement when using the Extended Operating Mode."
Since the driver for now only supports the extended operating mode, it
should not provide this feature.
2017-01-14 11:27:09 +01:00
Peter Kietzmann
9d44d6b09e Merge pull request #5573 from lebrush/pn532
Implementation of PN532 NFC reader
2017-01-14 10:21:25 +01:00
Peter Kietzmann
4f02c4d9c4 Merge pull request #6284 from aabadie/fix_si70xx_saul
drivers/si70xx: fix saul auto initialization
2017-01-13 16:21:52 +01:00
Victor Arino
d8d8d55e72 drivers/pn532: add NFC reader PN532 driver 2017-01-13 14:47:19 +01:00
Hauke Petersen
6270283033 Merge pull request #6160 from kaspar030/introduce_new_power_management
Introduce new power management
2017-01-12 17:31:49 +01:00
Peter Kietzmann
96817f406f Merge pull request #6322 from aabadie/bmp180_cleanup
drivers/bmp180: saul driver cleanup
2017-01-12 14:54:12 +01:00
6150e2753a drivers: periph: pm: introduce new power management API 2017-01-12 11:24:15 +01:00
Francisco Acosta
b05d0b2748 Merge pull request #5870 from PeterKietzmann/boards_z1_driver_init
drivers/cc2420: improve z1 init and send routine
2017-01-11 15:17:26 +01:00
47b83b7412 drivers/bmp180: saul driver cleanup 2017-01-11 09:24:40 +01:00
48ea21447b drivers/si70xx: fix saul auto initialization 2017-01-11 09:14:28 +01:00
Peter Kietzmann
a8297595e6 Merge pull request #6108 from haukepetersen/opt_nrf_nrfmin
cpu/nrf5x: ported nrfmin driver to netdev2
2017-01-10 16:52:54 +01:00
Francisco Acosta
865d4c0e87 Merge pull request #6235 from haukepetersen/opt_driver_xbee
drivers/xbee: ported to netdev2
2017-01-10 14:31:01 +01:00
Hauke Petersen
36317c56f3 cpu/nrf51: ported nrmin radio driver to netdev2 2017-01-10 11:54:16 +01:00
Hauke Petersen
83d206e2b0 drivers/xbee: adapted to netdev2 2017-01-10 11:47:31 +01:00
Hauke Petersen
47f245a13d drivers/at86rf2xx: fix buffer-less SPI transfer 2017-01-09 17:47:37 +01:00
Hauke Petersen
ae1bf7e493 Merge pull request #6200 from kaspar030/refactor_synchronous_uart
sys: refactor synchronous uart
2016-12-19 09:44:40 +01:00
Francisco Acosta
22322214c5 Merge pull request #6193 from aabadie/bmp180_saul
drivers/bmp180: move bmp180 driver to saul auto init using the correct way
2016-12-16 17:05:39 +01:00
26835f4f2c drivers/bmp180: move bmp180 to saul auto init the correct way 2016-12-16 15:24:34 +01:00
9dea130a9e drivers: ethos: make use of isrpipe module 2016-12-16 09:48:09 +01:00
Hauke Petersen
6ab089e63e drivers/pwm: remove PWM_NUMOF guard
as we do not build the periph drivers selectable currently,
the guard is triggered even for boards that do not have any
PWM defined and don't want to use it...
2016-12-15 12:18:39 +01:00
Hauke Petersen
41f453066c drivers: added interface for writing flash pages 2016-11-30 16:51:09 +01:00
Francisco Acosta
84d0d61279 Merge pull request #5608 from gebart/pr/xtimer-ticks
xtimer: Allow arbitrary timer frequency, second attempt
2016-11-29 23:00:31 +01:00
Joakim Nohlgård
7c48c891a0 xtimer: Update xtimer usage to match API changes 2016-11-29 20:44:31 +01:00
Peter Kietzmann
e547ff1d60 Merge pull request #6013 from haukepetersen/opt_periph_uartreturntypes
periph/uart: added names to return values
2016-11-29 19:14:09 +01:00
PeterKietzmann
6d4011a325 drivers/cc2420:improve send performance 2016-11-29 09:03:23 +01:00
Joakim Nohlgård
63e91151cd xtimer: Add tick conversion 2016-11-28 11:00:42 +01:00
Martine Lenders
32c19d63e3 netdev2: make doc for driver more precise
When working on #6121 I noticed that the documentation of the `netdev2`
driver part is not really precise. This fixes that.
2016-11-22 14:57:26 +01:00
Peter Kietzmann
9c7d9eb06f Merge pull request #6141 from haukepetersen/opt_bh1750fvi_namedreturnvalues
drivers/bh1750fvi: added names to return values
2016-11-21 08:23:24 +01:00
Peter Kietzmann
711415360f Merge pull request #5433 from OTAkeys/pr/mma8x5x
mma8652: add support for all mma8x5x accelerometers
2016-11-18 09:02:42 +01:00
Hauke Petersen
40116c7c66 drivers/bh1750fvi: added names to return values 2016-11-17 22:57:56 +01:00
Hauke Petersen
efb7e8a3ba drivers/w5100: set src addr to known state 2016-11-16 17:46:04 +01:00
Vincent Dupont
b9b838f1dc mma8652: add support for all mma8x5x accelerometers 2016-11-16 14:14:07 +01:00
Hauke Petersen
bf9f1268f2 drivers/w5100: adapted to netdev2 API changes 2016-11-16 09:50:36 +01:00
Thomas Eichinger
103c426cdc drivers/cc2420: calculate CRC and check CRC_OK bit on packet reception
First start calculating the CRC in hardware when receiving a frame.

Then, other than the at86rf2xx transceivers the cc2420 don't consider the
CRC_OK flag when reporting a successful packet reception. This change
introduces a check for this bit and drops the packet else by flushing
the RX FIFO.
2016-11-08 23:28:09 -08:00
Thomas Eichinger
b57ce103a3 drivers/cc2420: adapt FIFO access to recent msp430 SPI changes
When redoing the SPI driver for the msp430 platforms an assert
statement was introduced to prohibit SPI access without any
buffers. Since in the existing code the FIFO pointer is incremented
through a dummy read this results in triggering aforementioned
assert.
2016-11-07 11:09:45 -08:00
Thomas Eichinger
66db33b662 drivers/at86rf2xx: prevent a possible race condition after state change
It was pointed out that after a state change to RX_AACK_ON reading back
the state to confirm the transition can fail due to an imidiate change
into BUSY_RX_AACK between the successful change on the transceiver and
querying the state.
For this we exclude the readback of the state for transitions to
RX_AACK_ON.
2016-11-04 09:52:35 -07:00
Thomas Eichinger
4ebbda844c drivers/at86rf2xx: improve precondition checks on state transition
The rational behind this change is the following:
If the transceiver is in any *_BUSY state when `at86rf2xx_set_state()`
gets called this would bypass the `(state == old_state)` check and
unneeded state transitions could be triggered.
2016-11-01 07:16:19 -07:00
Hauke Petersen
52fdf4c886 drivers/xbee: use named UART return values 2016-10-28 10:32:00 +02:00
Hauke Petersen
314549059c periph/uart: added names for return values 2016-10-28 10:31:59 +02:00
Martine Lenders
9e97b0a028 Merge pull request #5977 from miri64/ieee802154/enh/centralize-default-values
ieee802154: centralize default values
2016-10-26 16:39:44 +02:00
Martine Lenders
eb4ec4b35f Merge pull request #5961 from yschroeder/pullreq/at86rf2xx_compile_fix
at86rf2xx: fix warnings when building with -Wextra -pedantic
2016-10-26 15:59:59 +02:00
Martine Lenders
20e1fce5b7 ieee802154: centralize default values 2016-10-26 15:32:12 +02:00
Hauke Petersen
d7dbac7c61 drivers: added driver for W5100 Ethernet chips 2016-10-26 08:36:58 +02:00
Hauke Petersen
a3d1b5f839 drivers: added driver for LPD8808 LED strips 2016-10-25 18:32:52 +02:00
smlng
68c30b30e5 at86rf2xx: move netstat increment after possible error return 2016-10-21 21:57:32 +02:00
Yannic Schröder
c7d73e24c1 at86rf2xx: fix warnings when building with -Wextra -pedantic 2016-10-18 10:21:54 +02:00
Hauke Petersen
08610ee84f drivers/periph_common: added spi_transfer_byte() 2016-10-17 16:58:26 +02:00
Kees Bakker
bac5cda1e3 periph/i2c: convert char to uint8_t where applicapable
In general, data transferred through I2C are bytes and thus should have
type uint8_t, not char.

Also convert uint8_t ptrs to void ptrs
2016-10-04 20:26:39 +02:00
Martine Lenders
15c4ceae04 netdev2_ieee802154: cleanup flag definitions 2016-09-30 13:09:27 +02:00
Martine Lenders
9f29e56020 netdev2_ieee802154: remove NETDEV2_IEEE802154_PAN_COMP flag 2016-09-30 13:09:26 +02:00
Oleg Hahm
b428979a1d debug: add missing line breaks 2016-09-27 23:38:41 +02:00
smlng
fc9e1d9024 kw2xrf: set tx_power in gnrc_netdev_t
without this patch, tx_power is directly set on the device but not in
gnrc_netdev_t. Thus, calling ifconfig in shell shows tx_power always
at 0dBm, never showing the correct, current value. Additionally, it
verifies that given tx_power to be set is in valid range.
2016-09-16 10:52:53 +02:00
add6e1d36d Merge pull request #5674 from aabadie/driver_io1_xplained
drivers/io1_xplained: initial implementation of Atmel IO1 Xplained extension board
2016-09-16 10:35:49 +02:00
Martine Lenders
5552b92023 Merge pull request #5831 from mali/timer
drivers/timer: fix copy/paste error
2016-09-08 22:22:38 +02:00
Laurent Navet
f30c4ade2c drivers/timer: fix copy/paste error 2016-09-07 21:59:25 +02:00
Martine Lenders
e04933b2b5 Merge pull request #5808 from makomi/dht
drivers/dht: fix variableScope (cppcheck)
2016-09-05 09:53:06 +02:00
Matthias Kolja Miehl
3733bb7c14 drivers/dht: fix variableScope 2016-09-05 02:15:51 +02:00
Martine Lenders
0b59372eb0 at86rf2xx: document operation mode concerns for 2016-09-02 22:48:47 +02:00
3aa1ffb5fb drivers/io1_xplained: initial implementation including temperature/LED/GPIO and auto init 2016-09-02 10:42:09 +02:00
Mathias Tausig
48083a7c10 at86rf2xx: Add at86rf2xx_get_random to at86rf2xx_internal
Works for at86rf233 and at86rf231 chips
2016-09-02 09:54:39 +02:00
Matthias Kolja Miehl
75ab341089 drivers: mag3110: fix typo in header description 2016-08-20 02:28:09 +02:00
Martine Lenders
cf11a0dab7 Merge pull request #5485 from jfischer-phytec-iot/pr@add-opt-netdev
add testmode and cca mode option to netdev
2016-08-05 15:51:56 +02:00
Martine Lenders
bd2429f299 cpu: drivers: adapt devices for netdev2 parameter type change 2016-08-03 12:30:51 +02:00
Martine Lenders
e710164f09 netdev2: function parameter type changes
`len` and `count` are both values that should never go `< 0`, so instead of
having to test this (in theory) every time the function is called (regardless
of by assert or if its unnecessary code), I propose to change it to `size_t`.

As a bonus I made the type of recv's buf parameter generic - no reason for it to
be a char and it might lead to unnecessary static casting requirements
2016-08-03 09:51:18 +02:00
Joakim Nohlgård
bc9e5b218b periph/gpio: Clean up Doxygen text 2016-07-30 08:06:19 +02:00
Johann Fischer
14f0d1ce89 netopt.h: add new options to set the CCA and test modes
This patch adds two new options to netopt. NETOPT_CCA_MODE to set
the CCA mode corresponding to the respective PHY standard and
NETOPT_RF_TESTMODE to set the test mode for the radio.
2016-07-27 00:15:27 +02:00
20cb96f4df drivers: add dependency to xtimer to bmp180 2016-07-25 15:32:09 +02:00
847e6c6494 drivers/bmp180: add a delay before accessing calibration registers 2016-07-25 15:30:39 +02:00
d3fb1d9883 drivers/bmp180: implementation cleanup 2016-07-25 11:52:15 +02:00
Bas Stottelaar
0902ccb2e0 drivers: si70xx: adapt for SAUL 2016-07-22 18:22:13 +02:00
c239ec351a Merge pull request #5666 from aabadie/bmp180_deps
drivers/bmp180: add dependency to periph_i2c
2016-07-22 09:47:28 +02:00
144ab431e7 drivers/bmp180: add dependency to periph_i2c 2016-07-20 10:47:05 +02:00
Bas Stottelaar
bcd73105bd drivers: l3g4200d: fix saul doxygen group 2016-07-19 23:50:04 +02:00
kYc0o
91410f5259 Merge pull request #5626 from aabadie/default_channel
makefiles: expose a single DEFAULT_CHANNEL variable
2016-07-18 14:26:24 +02:00
Oleg Hahm
29fd3a1098 Merge pull request #5641 from lebrush/encx24j600-fixes
drivers/encx24j600: minor fixes
2016-07-18 08:38:28 +02:00
271cbc26b8 drivers/cc2420 & cpu/cc2538: adding support for default channel configuration 2016-07-14 17:50:50 +02:00
87ca058417 makefiles: expose a single DEFAULT_CHANNEL variable 2016-07-14 17:44:42 +02:00
75168936f6 drivers/cc110x: fix typo in macro definition. 2016-07-14 17:22:03 +02:00
Victor Arino
50eee7fa8a drivers/encx24j600: minor fixes 2016-07-14 16:44:39 +02:00
f0640ee4d8 Update lsm303dlhc.c 2016-07-13 11:30:42 +02:00
Joakim Nohlgård
4798cd66d9 drivers/nvram: Add const to write source buffer declaration 2016-07-12 08:03:16 +02:00
kYc0o
374f4a1981 drivers/include: add cc2420 doxygen doc 2016-07-06 20:23:23 +02:00
kYc0o
62d8b9a268 drivers/cc2420: factorise/reorganise overall code 2016-07-06 20:23:23 +02:00
Hauke Petersen
abc6b5ccdf drivers: added support for CC2420 radio 2016-07-06 18:14:48 +02:00
Michel Rottleuthner
822007fa67 drivers/dht: fix fake parsing error with DHT22 2016-07-05 15:10:49 +02:00
Andreas "Paul" Pauli
87cb266a1b Merge pull request #5437 from miri64/doc/enh/netdev-rx-fig
doc: add operational flow figure for netdev
2016-06-16 19:33:37 +02:00
Martine Lenders
af2e169db1 netdev2: doc: update doc text for operational flow figure 2016-06-15 23:26:23 +02:00
Laurent Navet
96ebff9174 drivers/uart: fix typos 2016-06-14 22:54:25 +02:00
7718f114cb all: remove pointer casts for msg.content.ptr 2016-06-02 23:13:42 +02:00
3ad195963d drivers: netdev2: rename isr_arg 2016-06-02 11:11:40 +02:00
d7b17684e4 drivers: net: adapt to removed event_callback argument 2016-06-02 11:11:40 +02:00
82243b86fc drivers: netdev2: remove extra event_callback argument 2016-06-02 11:11:40 +02:00
4a595d7b19 drivers/bmp180: add saul adaptation 2016-06-01 11:15:01 +02:00
Aaron Sowry
63a87fb639 Implement NETOPT_ACK_REQ configuration option.
Allows setting the acknowledgement request bit of 802.15.14
headers via netdev.
2016-06-01 10:11:28 +12:00
PeterKietzmann
ed470e11f8 drivers/kw2xrf: improve default short address 2016-05-31 13:12:57 +02:00
Joakim Nohlgård
407e10d5b3 drivers/si70xx: Use Doxygen group drivers_sensors 2016-05-26 12:53:51 +02:00
Joakim Nohlgård
e215c9270e drivers/lis3mdl: Change doxygen grouping to sensor drivers 2016-05-26 12:47:42 +02:00
Peter Kietzmann
e08733d2d1 Merge pull request #5234 from thomaseichinger/pr/phr_length_mask
drivers/at86rf2xx: mask frame length according to data sheet
2016-05-20 15:14:55 +02:00
Thomas Eichinger
5a45c31bcb drivers/at86rf2xx: remove unused functions
These two functions are not used anymore and can be omitted.
2016-05-20 15:05:27 +02:00
Peter Kietzmann
e55c8394ae Merge pull request #5327 from authmillenon/netdev2_ieee802154/enh/assert-instead
netdev2_ieee802154: replace overflow checks with asserts
2016-05-18 12:04:00 +02:00
Oleg Hahm
814be0655f doc: minor fixes of typos in periph documentation 2016-05-03 23:37:22 +02:00
Oleg Hahm
e110d412a3 at86rf2xx_netdev: debug output is wrong 2016-04-28 11:35:13 +02:00
Yonezawa-T2
3e70191aee Merge pull request #2842 from FrancescoErmini/drivers_xbee_encryption
drivers/xbee: add optional AES encryption support
2016-04-21 10:26:06 +09:00
Martine Lenders
315dea3e7c netdev2_ieee802154: replace overflow checks with asserts 2016-04-21 00:45:50 +02:00
Francesco Ermini
9fa4684203 drivers/xbee: encryption support
add encryption to drivers

fix new line at the end of file

add shell command for enable encryption and set encryption key on a given device

modify _net_if_set_encrypt_key to support any key length

modify _net_if_set_encrypt_key to support any key length of the key

modify blank line

fix ace before tab in indent

fix ace before tab indent

fix ace before tab indent an error

fix trailing white space

drivers/xbee: encryption support

add encryption to drivers

fix new line at the end of file

add shell command for enable encryption and set encryption key on a given device

modify _net_if_set_encrypt_key to support any key length

modify _net_if_set_encrypt_key to support any key length of the key

modify blank line

fix ace before tab in indent

fix ace before tab indent

fix ace before tab indent an error

fix trailing white space

modify drivers/xbee/xbee.c

fix white spaces on xbee.c

Update xbee encryption driver

white line at end xbee.h

fix error

fix sc_netif.c

fix rebase master interactive

drivers/xbee: encryption support

add encryption to drivers

fix new line at the end of file

add shell command for enable encryption and set encryption key on a given device

modify _net_if_set_encrypt_key to support any key length

modify _net_if_set_encrypt_key to support any key length of the key

modify blank line

fix ace before tab in indent

fix ace before tab indent

fix ace before tab indent an error

fix trailing white space

drivers/xbee: encryption support

add encryption to drivers

fix new line at the end of file

add shell command for enable encryption and set encryption key on a given device

modify _net_if_set_encrypt_key to support any key length

modify _net_if_set_encrypt_key to support any key length of the key

modify blank line

fix ace before tab in indent

fix ace before tab indent

fix ace before tab indent an error

fix trailing white space

modify drivers/xbee/xbee.c

fix white spaces on xbee.c

Update xbee encryption driver

white line at end xbee.h

fix error

fix rebase  conflict 4

fix same missing in patches changes

fix ascii to hex index parser

fix syntax rules

fix syntax issue 2

add _netopt_strmap NETOPT_ENCRYPTION e NETOPT_ENCRYPTION_KEY

fix trailng white spaces
2016-04-20 17:43:09 +02:00
Martine Lenders
cedf7d8455 Merge pull request #5227 from authmillenon/at86rf2xx/fix/set
at86rf2xx: fix option setting
2016-04-20 17:33:44 +02:00
Martine Lenders
0fa5b81e6a netdev2_ieee802154: fix channel setting 2016-04-20 16:35:30 +02:00
Martine Lenders
7b78775185 at86rf2xx: fix option setting 2016-04-20 16:35:29 +02:00
kYc0o
724276e913 Merge pull request #4734 from Yonezawa-T2/xbee_resp_timeout
xbee: add timeout for AT command response (fixes #4731)
2016-04-19 13:34:21 +02:00
Yonezawa-T2
4042239b04 xbee: add timeout for AT command response (fixes #4731) 2016-04-19 11:19:25 +09:00
Yonezawa-T2
eb7cc30494 xbee: enriched debug output 2016-04-19 11:17:13 +09:00
Yonezawa-T2
15ecee46ee xbee: add packet filtering to emulate non-transitive network.
When debugging multihop wireless network, it is useful to emulate non-transitive
network, that is, node A can communicate with B and B can communicate with C,
but A cannot communicate with C directly.

If `XBEE_DENIED_ADDRESSES`, which is an array of XBee long addresses, is
defined, packets from those addresses are dropped silently.

Example:
CFLAGS += "-DXBEE_DENIED_ADDRESSES={ 0x02, 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0x02, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11 }"
2016-04-19 11:17:13 +09:00
Yonezawa-T2
a6ae7c8091 xbee: fixed that _set_addr destructed given address.
`_set_addr` is called from `xbee_init` with lower bytes of the long address.
If `_set_addr` destructs the given address, the long address is also destructed.
2016-04-19 11:17:13 +09:00
Yonezawa-T2
66dd84eff2 xbee: disable short address when the address length is set to 8
XBee sends short address even for `API_ID_TX_LONG_ADDR` if short address is
enabled. This results in check sum error of ICMPv6 since the IP address is
computed based on long address on the sender side while it is computed based on
short address on the receiver side.
2016-04-19 11:17:13 +09:00
Yonezawa-T2
67c3ab8fdd xbee: changed default channel from 0x1A to 0x17 to support XBee-PRO
XBee supports channels 0x0B-0x1A while XBee-PRO supports only 0x0C-0x17.
2016-04-19 11:17:12 +09:00
Yonezawa-T2
8481d85ead xbee: fixed RSSI header parsing 2016-04-19 11:17:12 +09:00
Yonezawa-T2
bea5eacea2 xbee: fixed broadcast header
Destination address is at tx_buf[5] and tx_buf[6] rather than tx_buf[4] and
tx_buf[5].

Broadcast header is overridden by following code mistakenly.
2016-04-18 10:21:15 +09:00
Yonezawa-T2
4f864b0ec8 xbee: fixed missing unlocks 2016-04-18 10:20:52 +09:00
Hauke Petersen
25935bf95f drivers/Makefile.dep: fixed FEATURE_REQ assignments 2016-04-13 16:47:00 +02:00
kYc0o
e6d15f2d36 Merge pull request #5224 from haukepetersen/fix_periph_undef
drivers/periph: fixed UNDEF values to UINT_MAX
2016-04-13 16:39:59 +02:00
Bas Stottelaar
cf5e4c8fb6 drivers: si70xx: bugfixes + test improvements 2016-04-13 13:27:09 +02:00
Hauke Petersen
df574d6f2d Merge pull request #5231 from malosek/si70xx_driver_fix
drivers: si70xx: fixed left shift compiler warning for 16bit platforms
2016-04-13 13:13:24 +02:00
Hauke Petersen
5fe57b4659 Merge pull request #4725 from kaspar030/ethos_br_hack
simplified border router setup
2016-04-12 17:39:07 +02:00
Hauke Petersen
3ae9fd9536 Merge pull request #5255 from kaspar030/fix_encx24j600
drivers: misc fixes for encx24j600
2016-04-11 17:34:41 +02:00
7c9703b85b drivers: ethos: add missing tsrb dependency 2016-04-11 17:03:28 +02:00
27833444a0 drivers: ethos: make internal function static 2016-04-11 17:03:28 +02:00
d33423b5e6 drivers: ethos: fix cast of length parameter 2016-04-11 17:03:28 +02:00
2cd2194763 drivers: ethos: fix static const declarations 2016-04-11 17:03:28 +02:00
e4a92a697c drivers: ethos: add missing irq.h include 2016-04-11 17:03:28 +02:00
Oleg Hahm
70a2d68a8a Merge pull request #5289 from cgundogan/pr/at86rf2xx_netdev/fix
at86rf2xx_netdev: fix broken pending_tx handling
2016-04-11 15:03:41 +02:00
Cenk Gündoğan
9b01c6dbce at86rf2xx_netdev: use DEBUG instead of printf 2016-04-11 13:15:39 +02:00
Cenk Gündoğan
f570576976 at86rf2xx_netdev: fix broken pending_tx handling 2016-04-11 13:15:39 +02:00
Hauke Petersen
7c02c616bd Merge pull request #4863 from gebart/pr/saul-adc
SAUL: Add periph/adc support
2016-04-11 13:13:25 +02:00
malo
b9705c8727 drivers: si70xx: fixed si70xx_measure return value calculation on 16bit platforms
Signed-off-by: malo <malo@25cmsquare.io>
2016-04-09 22:12:44 +02:00
Martine Lenders
1c45c503b8 netdev2: fix event_callback references 2016-04-09 13:22:19 +02:00
Oleg Hahm
e2cb553d05 Merge pull request #5261 from OlegHahm/at86rf2xx_pending_TX
at86rf2xx: introduce pending TX counter
2016-04-08 13:08:39 +02:00
Oleg Hahm
252baecef7 at86rf2xx: introduce pending TX counter
This counter is necessary for the current concept to tell the driver when to return to idle after sending.
2016-04-08 11:32:40 +02:00
Joakim Nohlgård
50b48c28eb sys/saul: Add analog inputs to SAUL via periph/adc 2016-04-08 10:18:12 +02:00
Joakim Nohlgård
1f645cf436 drivers/saul: Fix typo in documentation 2016-04-08 10:17:23 +02:00
1ac0ab6905 drivers: encx24j600: prefix constants 2016-04-06 22:53:47 +02:00
d9d5d88b26 drivers: encx24j600.c: compile fixes 2016-04-06 22:53:27 +02:00
Hauke Petersen
6bebc9d588 make: moved driver deps to drivers/Makefile.deps 2016-04-06 15:39:34 +02:00
René Kijewski
f7428393b2 Merge pull request #5245 from OlegHahm/at86rf2xx_netstats_ifdef
at86rf2xx: fix netstats_l2 ifdef
2016-04-05 12:09:06 +02:00
Oleg Hahm
e0b475b25a at86rf2xx: fix netstats_l2 ifdef 2016-04-04 18:34:01 +02:00
Oleg Hahm
32606382a1 drivers 802154: always memset cpuid before setting 2016-04-04 18:20:19 +02:00
Oleg Hahm
416b9759e2 drivers 802154: use memset for eui64 padding 2016-04-04 16:53:21 +02:00
Martine Lenders
4d46a5f91e Merge pull request #5242 from OlegHahm/eliminate_ieee802154_literals
ieee802154: replace literals for lengths by macros
2016-04-04 16:37:08 +02:00
Oleg Hahm
a59e100d41 ieee802154: replace literals for lengths by macros 2016-04-04 15:24:47 +02:00
Oleg Hahm
6f58862fec driver: assure required buffer size
The cpuid buffer is also used as a temporary buffer to store the EUI-64 of the transceiver, so we need to make sure that it is always big enough.
May be padded with zeroes for smaller CPUIDs.
2016-04-03 22:38:13 +02:00
Oleg Hahm
aa043a50bf drivers encx24j600: introduce netstats
This driver was missing netstats completely so far.
2016-04-03 18:05:07 +02:00
Oleg Hahm
4ba73928ac drivers enc28j60: correctly initialize netstats
Driver's netstats should be initialize in init, not isr...
2016-04-03 18:04:32 +02:00
Thomas Eichinger
e5e67b3870 drivers/at86rf2xx: mask frame length according to data sheet
After some discussion on the devel mailing list about smuggeling in corrupted frames by e.g. SDRs I'd propose we mask the length field according to the datasheet again. It was done before in at86rf2xx_get_length but this funtion did get used anymore along the way.
2016-04-02 12:29:22 -03:00
malo
86eb928642 drivers: si70xx: fixed left shift compiler warning for 16bit platforms
Signed-off-by: malo <malo@25cmsquare.io>
2016-04-02 00:54:04 +02:00
Hauke Petersen
af8f4040ac drivers/xbee: fixed missing newline in DEBUG 2016-04-01 11:48:35 +02:00
Hauke Petersen
9a4df61005 drivers/periph: fixed UNDEF values to UINT_MAX 2016-04-01 10:57:26 +02:00
Yonezawa-T2
c4bc42419b netdev2_tap: continue reading even if no spaces left in pktbuf
On OS X, `netdev2_tap` suspends monitoring file descriptor until `_recv` is
called. If no spaces in left in pktbuf, `gnrc_netdev2_eth` does not call `_recv`
that results in deadlock.

With this commit, `gnrc_netdev2_eth` calls `_recv` with NULL buffer and non-zero
length parameter, that indicates the driver to drop frame and resume working.
2016-03-31 16:59:12 +09:00
Oleg Hahm
4f17d2bd9c Merge pull request #5211 from kaspar030/ethos_fixes
drivers: ethos: misc fixes
2016-03-31 00:43:55 +02:00
a833d838b9 drivers: ethos: don't error if recv buffer is larger than needed 2016-03-30 23:47:07 +02:00