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

50 Commits

Author SHA1 Message Date
Benjamin Valentin
838a5e4bd3 netdev_drivers: make sure to signal LINK_UP at least once 2022-09-16 22:57:28 +02:00
Jose Alamos
9955a35c63
[treewide] lora: use int16_t for RSSI value
The RSSI values reported by LoRa transceiver can be less than -127.
Therefore, `int8_t` is not enough. This commit defines the RSSI of
`netdev_lora_rx_info` as `int16_t` and adapt the drivers accordingly
(sx126x, sx127x).
2022-01-17 17:54:18 +01:00
Jose Alamos
c6da77a454
Revert "drivers/sx127x: fix size of rx symbol timeout"
This reverts commit 26ead7b5be.
2021-07-13 21:14:28 +02:00
Jose Alamos
bfbbec3de3
sx127x: avoid explicit cast to netdev 2021-07-09 10:38:36 +02:00
Jose Alamos
26ead7b5be
drivers/sx127x: fix size of rx symbol timeout 2021-07-01 11:58:34 +02:00
39094d0833
drivers/sx127x: uncrustify code 2021-05-18 11:00:44 +02:00
0ea3b0bac1
drivers/sx127x: expose RSSI value via netdev 2021-03-12 10:29:45 +01:00
Bas Stottelaar
92b1dfc703 drivers/*: realign ENABLE_DEBUG 2020-10-23 01:26:09 +02:00
Bas Stottelaar
4bdfe9a254 drivers/*: add missing include of assert.h 2020-10-22 11:13:08 +02:00
Akshai M
1ef362edea drivers/sx127x : Improve debugging 2020-10-14 00:16:47 +05:30
6199ada6b5
drivers/sx127x: migrate to ztimer 2020-08-20 13:41:32 +02:00
Jose Alamos
84eb2dc30c sx127x: implement NETOPT_PDU_SIZE 2020-07-29 11:57:52 +02:00
benpicco
1776e54d80
Merge pull request #13604 from gschorcht/drivers/sx127x/dio_handling
drivers/sx127x: changes in DIO handling
2020-05-16 19:12:26 +02:00
Gunar Schorcht
87021a0b18 drivers/sy127x: clear interrupts for DIO3
If ValidHeader interrupt is set, it triggers DIO3 interrupt. However, if DIO3 line is not connected, ValidHeader interrupt is still set in RegIrqFlags register when RxDone interrupt is triggered on DIO0. It sets the mode back to idle. Therefore, the _on_dio3_irq does not clear the ValidHeader interrupt flag.
2020-03-10 10:47:36 +01:00
Gunar Schorcht
3adbbdcf9b drivers/sx127x: fix length check of netstat_opt_tin _set 2020-03-08 17:10:46 +01:00
Leandro Lanzieri
cb57c6ff1a
Merge pull request #11798 from jia200x/pr/remove_sx127x_multi
sx127x: remove MULTIDIO and fix missing interrupt handling
2019-07-05 11:33:42 +02:00
Jose Alamos
2e7683b5e2 sx127x_netdev: remove switch-case from ISR handler
Some LoRa modules don't provide all ISR lines. Thus, there are
cases where different interrupts appear simultaneously in the ISR flags.
It's required to use an AND/OR pattern to check which interrupts were triggered.
2019-07-05 10:52:43 +02:00
Jose Alamos
d94d587e5e sx127x: remove DIOMULTI 2019-07-04 14:23:48 +02:00
Jose Alamos
ca8c78116f drivers/sx127x: add NETOPT_RX_SYMBOL_TIMEOUT setter 2019-06-27 15:43:50 +02:00
Jose Alamos
268e6df950 drivers/sx127x: add NETOPT_RANDOM option handling 2019-06-27 15:43:50 +02:00
Jose Alamos
77162b8c6f drivers/sx127x: add NETOPT_SYNCWORD option handling 2019-06-27 15:43:50 +02:00
Jose Alamos
4778776790 sx127x: ignore empty iolist element 2019-03-19 17:30:55 +01:00
d562af40e6
Merge pull request #11144 from jia200x/pr/netdev_lora_rx_info
netdev/lora: add netdev_lora_rx_info structure for RX info
2019-03-08 18:36:02 +01:00
Jose Alamos
80ae186d7a drivers/sx127x: use netdev_lora_rx_info structure for RX info 2019-03-08 17:47:05 +01:00
korotkoves
433ccc9a11
sx127x: set ValidHeader interrupt to NETDEV_EVENT_RX_STARTED event 2019-03-08 08:46:52 +01:00
korotkoves
4ccdb3ac80
sx127x: remove duplicate code + fix for sending 2019-03-08 08:46:51 +01:00
korotkoves
4b60ab07fe
sx127x: fix for sending in implicit headers mode 2019-03-08 08:46:51 +01:00
Marian Buschsieweke
09335b07dd
drivers/sx127x: Use NETOPT_MAX_DPU_SIZE
Updated sx127x to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:00 +01:00
6dfc07b076 drivers/sx127x: remove useless rx timeout setter 2018-09-25 22:22:13 +02:00
Leandro Lanzieri
5cc7b6711f drivers/sx127x: add preliminar multi interrupt pin support
drivers/sx127x: add option to use or not multi dio
2018-09-18 14:02:31 +02:00
Martine Lenders
af30e08351
Merge pull request #8378 from Icaltary/sx127x_get_rx_state
drivers/sx127x: return correct state when device is receiving
2018-08-01 17:34:41 +02:00
cc2bf0ba27 drivers/sx127x: improve debug messages 2018-04-11 17:52:03 +02:00
23b414b732 drivers: net: adapt to iolist-using netdev 2018-03-06 14:00:31 +01:00
Joakim Nohlgård
73c85ccff4 drivers/sx127x: Fix -Wmaybe-uninitialized warning 2018-02-22 08:44:16 +01:00
Daniel Frejek
f2b9870723 drivers/sx127x: return correct state when device is receiving 2018-01-17 17:37:45 +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
1ad9b7a493 drivers/sx127x: fix build issue with unused variable 2017-12-10 16:41:06 +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
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
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
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
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
c627935aec drivers/sx127x: move netdev related callback to the right file 2017-10-10 18:23:18 +02:00
Joakim Nohlgård
065bc62e0a netdev: Make set() value parameter const void * 2017-08-25 13:41:19 +02:00
0ccc264538 drivers: initial implementation of sx127x radio (LoRa mode only) 2017-06-30 19:00:40 +02:00