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

1447 Commits

Author SHA1 Message Date
Martine Lenders
c61a343193 slipdev: simplify and solidify byte-unstuffing
This simplifies and solidifies the reversal of SLIP's byte-stuffing
(aka byte-unstuffing ;-)) by

1. Using `tsrb` instead of `ringbuffer`: there are two actors. The ISR
   and the device's event handler.
2. Moving the byte-unstuffing from the UART RX-handler (i.e. the ISR)
   to the device's receive function (potentially not the ISR)
3. Removing the `pktfifo` member. The current number of bytes in the
   ringbuffer is returned for `recv(data = NULL, len = 0)`. If that is
   more than the packet contains (due to the byte stuffing it most
   likely will be) the packet is reallocated in GNRC anyway.
2018-01-08 11:51:24 +01:00
Jose Alamos
6f1bd900b5 drivers/sx127x: change inline keyword to static 2018-01-04 09:26:06 +01:00
PeterKietzmann
73a2810330 drivers/kw2xrf: finish ongoing transmission before sending next frame 2017-12-20 14:26:26 +01:00
Sebastian Meiling
0417a05ae9
Merge pull request #7949 from aabadie/pr/lis3dml_update
drivers/lis3mdl: adopt new parameters scheme and provide SAUL adaption
2017-12-15 09:27:04 +01:00
Dylan Laduranty
7fe2d9bbab
Merge pull request #8261 from aabadie/pr/drivers_sx17X_missing_functions
drivers/sx127x: add functions required for loramac
2017-12-14 22:23:44 +01:00
b543d0b5da drivers/sx127x: add functions required for loramac 2017-12-14 22:13:41 +01:00
7727871923 sys/auto_init/saul: provide saul adaption to lis3mdl 2017-12-14 18:18:34 +01:00
b39a3d79ef drivers/lis3mdl: update to new parameters scheme 2017-12-14 18:18:20 +01:00
1461f31ed4 drivers/sx127x: make tx power types compliant with netopt 2017-12-14 15:01:09 +01:00
deb88bc972 drivers/sx127x: use channel freq netopt 2017-12-14 15:01:09 +01:00
4964150cd7 drivers: load lora module with sx127x driver 2017-12-14 15:01:09 +01:00
Martine Lenders
0acbe38df6
Merge pull request #8216 from roberthartung/at86rf2xx-netopt-autoack
drivers/at86rf2xx: Fix set/get of NETOPT_AUTOACK
2017-12-11 16:07:26 +01:00
Robert Hartung
a5ceb3c483 drivers/at86rf2xx: fixes get/set for NETOPT_AUTOACK 2017-12-11 15:57:23 +01:00
1ad9b7a493 drivers/sx127x: fix build issue with unused variable 2017-12-10 16:41:06 +01:00
0accd367bc
Merge pull request #8159 from aabadie/pr/auto_init_sx127x
sys/auto_init: add auto init implementation for sx127x radio devices
2017-12-10 16:28:31 +01:00
c52e11f9fd drivers/sx127x: fix wrong return values in netdev get 2017-12-09 20:06:57 +01:00
170c7e8e4d drivers/sx127x: use NETOPT_DEVICE_TYPE for LoRa modem 2017-12-09 20:06:57 +01:00
32b1ee3baf drivers/sx127x: cleanup RX/TX timers 2017-12-09 16:51:09 +01:00
Joakim Nohlgård
774abe4e28 periph_common: hwrng_init in periph_init if enabled 2017-12-08 08:08:15 +01:00
Hauke Petersen
ce9808d8ec drivers: restore alphabetical order in Makefile.dep 2017-12-05 12:50:52 +01:00
43e972fc61
Merge pull request #7970 from kYc0o/add_flashpage_write_raw
periph/flashpage: add flashpage_write_raw interface
2017-12-04 13:13:52 +01:00
40f43671bf sys/auto_init: enable sx127x auto init 2017-12-01 18:09:49 +01:00
Tristan Bruns
19f6544466 drivers/kw2xrf: fix fall through
This was made visible by #7919. Broke build on GCC 7.2.

Probably a bug.
2017-12-01 11:20:07 +01:00
Martine Lenders
c91f0734f2
at86rf2xx: revert regression introduced in #7276 2017-11-30 17:37:34 +01:00
kYc0o
6dffb71b09 drivers/include/periph/flashpage.h: add flashpage_write_raw 2017-11-30 17:25:35 +01:00
Hauke Petersen
5f5cdd148d
Merge pull request #7822 from Hyungsin/hamilton-hdc1000
drivers/hdc1000: add caching capability
2017-11-30 10:49:11 +01:00
Hyungsin
fd3f33880b drivers/hdc1000: add caching capability for hdc1000 driver 2017-11-29 11:30:39 -08:00
smlng
4492396923 driver, w5100: fix sign-compare and add spi as required feature 2017-11-28 23:09:37 +01:00
smlng
57c5c9b6a6 make: enable Wall and Wextra by default, and optionally Wpedantic 2017-11-28 20:33:39 +01:00
smlng
b283b7784c make: fix various compile errors with Wextra
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
        sys, pm_layered: fix casting nonscalar to the same type
        cpu, stm32_common: fix type-limits, remove always true assert
        cpu, stm32f4: fix pointer arithmetic in periph/i2c
        drivers, at86rf2xx: fix type-limits where condition always true
        saul, gpio: fix if no gpio configured for saul
        cpu, saml21: add frequency check to periph/timer
        driver, cc110x: fix unused param and type-limts errors
        boards, wsn430-common: fix old-style-declaration
        make: fix old style definition
        drivers, sdcard_spi: fix old style typedef
        driver, at30tse: remove unnecessary check
        driver, nrf24: fix type-limit
        driver, pn532: change buffer from char to uint8_t
        tests/driver_sdcard: fix type limits
        boards, feather-m0: add missing field inits
        driver, tcs37727: fix type limits
        pkg, emb6: disable some compiler warnings
        tests/emb6: disable some compiler warings
        pkg, openthread: fix sign compare and unused params
        tests/trickle: fix struct init
        tests/pthread_cooperation: fix type limits
        board, mips-malta: remove feature periph_uart
        shell: fix var size for netif command
        gnrc, netif: fix sign-compare
        gnrc, nib: fix sign-compare
        shell: fix output in netif command
        posix: fix type-limits in pthread_cond
2017-11-28 18:31:43 +01:00
Martine Lenders
39c122155c
Merge pull request #7995 from smlng/make/fix/unused_params
make: fix unused-params error
2017-11-28 14:46:23 +01:00
smlng
7309171303 build: fix unused parameter errors
cpu, sam0_common: fix unused parameter in periph/spi
        cpu, kinetis_common: fix unused parameter in periph/spi
        cpu, cc2538: fix unused param in periph/i2c
        cpu, cc2538: fix unused param in periph/spi
        cpu, sam3: fix unused param in periph/spi
        cpu, stm32_common: fix unused param in periph/pm
        cpu, stm32f3: fix unused params in periph/i2c
        cpu, nrf5x_common: fix unused param in periph/gpio
        cpu, nrf5x_common: fix unused param in periph/spi
        cpu, lpc2387: fix unused params in periph/spi
        cpu, cc2538: fix unused params in radio/netdev
        cpu, cc2650: fix unused params in periph/uart
        cpu, lm4f120: fix unused param in periph/spi
        cpu, lm4f120: fix unused params in periph/timer
        cpu, lm4f120: fix unused params in periph/uart
        cpu, stm32_common: fix unused params in periph/dac
        cpu, stm32l0: fix unused params in periph/i2c
        cpu, msp430fxyz: fix unused params in periph/uart
        cpu, mips: fix unused params
        cpu, cc430: fix unused-params in periph/timer
        cpu, msp430fxyz: fix unused params in periph/spi
        drivers, cc2420: fix unused param
        cpu, mips32r2_common: fix unused params in periph/timer
        cpu, cc2538: fix unused-param in periph/i2c
        cpu, mips32r2_common: fix unused-param in periph/timer
        cpu, msp430fxyz: fix unused params in periph/timer
        cpu, atmega_common: fix unused params in periph/spi
        driver, nrfmin: fix unused params
        cpu, cc2538_rf: fix unused params
        driver, netdev_ieee802514: fix unused param
        cpu, mip_pic32m: fix unused params
        cpu, lpc2387: fix unused params in periph/pwm
        tests/driver_sdcard_spi: fix unused params
        cpu, sam3: fix unused param in periph/pwm
        tests/driver_dynamixel: fix unused params, and style issues
        cpu, cc430: fix unused param in periph/rtc
        cpu, atmega_common: fix unused params in periph/i2c
2017-11-28 14:36:01 +01:00
Martine Lenders
bf53c88a78
Merge pull request #7994 from smlng/make/fix/sign_compare
make: fix sign-compare errors
2017-11-28 12:29:44 +01:00
Martine Lenders
6b510b046b
Merge pull request #8163 from aabadie/pr/cc110x_leftover
drivers/cc110x: cleanup + remove gnrc_netdev leftover
2017-11-28 12:25:54 +01:00
smlng
e381317fbf make: fix sign-compare errors
cpu, nrf5x_common: fix sign-compare in periph/flashpage
    drivers, periph_common: fix sign-compare in flashpage
    cpu, sam0_common: fix sign-compare error in periph/gpio
    cpu, cc2538: fix sign-compare in periph/timer
    cpu, sam3: fix sign-compare in periph/gpio
    cpu, stm32_common: fix sign-compare in periph/pwm
    cpu, stm32_common: fix sign-compare in periph/timer
    cpu, stm32_common: fix sign-compare in periph/flashpage
    cpu, nrf5x_common: fix sign-compare in radio/nrfmin
    cpu, samd21: fix sign-compare in periph/pwm
    cpu, ezr32wg: fix sign-compare in periph/gpio
    cpu, ezr32wg: fix sign-compare in periph/timer
    drivers, ethos: fix sign-compare
    sys, net: fix sign-compare
    cpu, atmega_common: fix sign-compare error
    cpu, msp430fxyz: fix sign-compare in periph/gpio
    boards, msb-430-common: fix sign-compare in board_init
    driver, cc2420: fix sign-compared
    sys/net: fix sign-compare in gnrc_tftp
    driver, pcd8544: fix sign-compare
    driver, pn532: fix sign-compare
    driver, sdcard_spi: fix sign-compare
    tests: fix sign_compare
    sys/net, lwmac: fix sign_compare
    pkg, lwip: fix sign-compare
    boards, waspmote: make CORECLOCK unsigned long to fix sign_compare error
    tests, sock_ip: fix sign compare
    tests, msg_avail: fix sign compare
    tests, sock_udp: fix sign compare
    boards: fix sign-compare for calliope and microbit matrix
2017-11-28 11:55:48 +01:00
Sebastian Meiling
4a828c63aa
Merge pull request #7955 from aabadie/pr/mpu9150_update
drivers/mpu9150: adapt to new parameters initialization scheme + provide saul adaption
2017-11-28 11:41:54 +01:00
13e0239722 drivers/cc110x: cleanup + remove gnrc_netdev leftover 2017-11-28 11:25:33 +01:00
Martine Lenders
a63bb6d47b
Merge pull request #6895 from bergzand/drivers/radio-rssi-conv
drivers/radios Apply register to rssi dBm conversion to all radios
2017-11-27 23:52:15 +01:00
2d491e0619 kw2xrf: dBm conversion to int16_t 2017-11-27 21:49:15 +01:00
7dce20afb6 cc110x: Add RSSI dBm conversion 2017-11-27 21:49:15 +01:00
047b8172ae cc2420: Add RSSI dBm conversion 2017-11-27 21:49:15 +01:00
11e147736d at86rf2xx: Add RSSI dBm conversion 2017-11-27 21:49:15 +01:00
4bd5fd611c mrf24j40: Add RSSI dBm conversion 2017-11-27 21:49:15 +01:00
fa64e93313 netdev: Represent RSSI as int16_t 2017-11-27 21:49:15 +01:00
8a6d04ce52
Merge pull request #7925 from RIOT-OS/gnrc_netif2_integration/master
gnrc_netif2: gnrc_ipv6_nib: full integration into GNRC
2017-11-27 21:12:14 +01:00
Vincent Dupont
a02db9c551 drivers/mtd_spi_nor: fix chip erase 2017-11-24 16:48:21 +01:00
Martine Lenders
b2b2071142
Merge pull request #8111 from hahchenchen/tests-cc110x
cc110x-netdev.c: add NETOPT_ADDR_LEN.
2017-11-22 16:23:05 +01:00
Sichen Zhao
827ffbd048 cc110x-netdev.c: add NETOPT_ADDR_LEN. 2017-11-22 22:06:31 +08:00
562474f975
Merge pull request #7280 from smlng/driver/hts221
drivers: hts221 humidity and temperature sensor
2017-11-22 13:19:46 +01:00
smlng
df2b65a1dd driver, hts221: add SAUL adaption 2017-11-22 11:33:54 +01:00
Peter Kietzmann
2c46e0928e
Merge pull request #7938 from bergzand/mrf24j40-bcast2
drivers/mrf24j40: fix radio ack request enabling
2017-11-22 08:15:27 +01:00
smlng
697ff44ce1 tests: add hts211 driver test app 2017-11-21 09:42:08 +01:00
smlng
55cda8d8ab drivers: add hts221 temperature and humidity sensor 2017-11-21 09:42:07 +01:00
7c7a5189d2 drivers/sx127x: fix build issue when building for SX1272 2017-11-20 11:07:13 +01:00
8454beee00 drivers/sx127x: fix wrong IQ invert value when setting RX mode 2017-11-20 11:06:46 +01:00
1387945461 drivers/sx127x: expose iq_invert via netdev, add tx power getter 2017-11-20 11:04:41 +01:00
81f13936ee drivers/sx127x: remove time on air from packet info 2017-11-20 11:04:41 +01:00
Martine Lenders
31b1ceb440
gnrc_netif2: rename to gnrc_netif 2017-11-17 10:41:54 +01:00
Peter Kietzmann
3ced935057
Merge pull request #7488 from miri64/at86rf2xx/fix/assert-chan
at86rf2xx: fix channel asserts
2017-11-16 12:01:30 +01:00
Martine Lenders
e3ef42842e cc110x: port to gnrc_netif2 2017-11-15 22:57:02 +01:00
Martine Lenders
32318363a9
Merge pull request #7697 from aabadie/pr/lora_definitions
sys/net: add common lora phy definitions
2017-11-15 21:01:46 +01:00
Martine Lenders
bae9c2e237
at86rf2xx: fix channel asserts 2017-11-15 18:44:59 +01:00
Martine Lenders
546d05266e
xbee: port to gnrc_netif2 2017-11-14 12:01:16 +01:00
Martine Lenders
4682c129e3
xbee: provide device type on get() 2017-11-14 12:01:16 +01:00
Dylan Laduranty
67048eafa2
Merge pull request #6900 from OTAkeys/pr/init_rtc
periph/rtc: move init from auto_init to periph_init
2017-11-13 21:22:22 +01:00
marble
fbba6c3851 driver/soft_spi: initial implementation 2017-11-13 10:11:06 +01:00
George Hopkins
ae45157331 drivers/rgbled: fix PWM resolution 2017-11-10 15:53:50 +01:00
Cenk Gündoğan
0ae6ec0d9b
Merge pull request #7956 from PeterKietzmann/pr_srf08_gain
drivers/srf08: correct value for max gain
2017-11-10 14:20:40 +01:00
dylad
c77490a28e drivers/sx127x: remove duplicate CS init
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2017-11-09 19:56:00 +01:00
Vincent Dupont
f2466fb8dc periph/rtc: move init from auto_init to periph_init 2017-11-09 12:56:43 +01:00
PeterKietzmann
409ce8189c drivers/mrf24j40: add peripheral requirements to Makefile dependencies 2017-11-09 11:48:06 +01:00
Peter Kietzmann
87b0477b70
Merge pull request #7855 from kYc0o/fix_nrf24l01p_var_sizes
drivers/nrf24l01p: misc fixed
2017-11-09 08:06:28 +01:00
kYc0o
1927104298 drivers/nrf24l01p: fix vars lengths 2017-11-08 20:10:16 +01:00
be9e8614ef sys/auto_init/saul: provide saul adaption to mpu9150 2017-11-08 09:09:21 +01:00
819263ba1f drivers/mpu9150: update to new parameters scheme 2017-11-08 09:02:57 +01:00
PeterKietzmann
1f332cfb7b drivers/srf08: correct value for max gain 2017-11-07 23:31:40 +01:00
Martine Lenders
f6c9eb03c5
Merge pull request #7824 from Hyungsin/hamilton-tmp006
tmp006: optional raw values, low power mode, SAUL type
2017-11-07 22:51:56 +01:00
smlng
13639c1bb3 drivers, at86rf2xx: cleanup
- update documentation
    - adapt constness
    - fix code alignment and stlye
2017-11-07 21:37:41 +01:00
smlng
961c49e2cc drivers, at86rf2xx: simplify internal functions
- at86rf2xx_tx_prepare
    - at86rf2xx_set_state
    - at86rf2xx_set_option
2017-11-07 19:53:47 +01:00
Francisco Acosta
a423897b1a
Merge pull request #7857 from kYc0o/fix_enc28j60_comp
drivers/enc28j60/enc28j60.c: fix counter var length
2017-11-07 13:55:23 +01:00
kYc0o
58e3fab133 drivers/enc28j60/enc28j60.c: fix counter var length 2017-11-07 11:45:44 +01:00
3ebcdfd400 drivers/periph_common: guard spi_init() by spi module 2017-11-06 12:01:19 +01:00
Hyungsin
3dbe604d96 tmp006: optional raw values, low power mode, SAUL type 2017-11-06 00:04:50 -08:00
6f43e98b95 drivers/si70xx: cleanup and use pseudomodules 2017-11-05 18:13:19 +01:00
b7c4a81702
drivers/mrf24j40: fix radio ack request enabling 2017-11-05 15:05:31 +01:00
Martine Lenders
41b3ac4e3e
Merge pull request #7931 from haukepetersen/fix_drivers_defaultparamsincludeboardh
drivers: include board.h in default params files
2017-11-03 17:54:39 +01:00
Hauke Petersen
ba56fb1c6e
Merge pull request #7921 from basilfx/bugfix/bmx280
drivers: bmx280: include board.h for board parameters.
2017-11-03 10:23:29 +01:00
Hauke Petersen
5fa20d8234 drivers: include board.h in default params files
added the board.h include for:
- tsl2561
- jc42
- w5100
2017-11-03 10:12:58 +01:00
efa36abc8f
Merge pull request #7773 from kaspar030/fix_driver_feature_deps
make: add feature dependencies to drivers/Makefile.dep
2017-11-02 12:50:51 +01:00
Bas Stottelaar
268d7d17a8 drivers: bmx280: include board.h for board parameters. 2017-10-31 21:44:57 +01:00
Bas Stottelaar
31c7e9e4c2 periph: i2c: include note on address alignment. 2017-10-31 20:50:42 +01:00
Joakim Nohlgård
cf6ea05220
Merge pull request #7581 from gebart/pr/at86rf2xx-preloading-retransmission
at86rf2xx: Avoid deadlock on manual retransmissions with NETOPT_PRELOADING
2017-10-31 14:15:35 +01:00
d03844ef80 make: add missing feature dependencies to Makefile.dep 2017-10-28 21:09:36 +02:00
Francisco Acosta
1baece5039 Merge pull request #7851 from kYc0o/fix_sx127x_misc
drivers/sx127x: Fix misc variable types and lengths
2017-10-26 16:01:54 +02:00
91bed82a51 drivers/sx127x: use common LoRa definitions 2017-10-26 15:41:41 +02:00
kYc0o
dd9f038a5e drivers/sx127x/sx127x_netdev.c: fix var size 2017-10-26 15:41:06 +02:00
kYc0o
d6e6fea7e7 drivers/sx127x/sx127x_getset.c: fix power var len 2017-10-26 01:46:29 +02:00
kYc0o
a46907feda drivers/include/sx127x.h: fix power var len 2017-10-26 01:45:29 +02:00
kYc0o
b3c39274bb drivers/encx24j600/encx24j600.c : fix counter var length 2017-10-26 00:45:00 +02:00
Martine Lenders
8ce7ff2836
ds1307: return error when nothing is read or written on initialization
It hints at to an unconnected devices ;-)
2017-10-23 14:41:21 +02:00