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

87 Commits

Author SHA1 Message Date
Akshai M
00cc04f596 net/lora : Model as bool 'LORA_IQ_INVERTED_DEFAULT'
Move 'LORA_IQ_INVERTED_DEFAULT' to 'CONFIG_'
2020-09-30 20:00:03 +05:30
Akshai M
a161476041 net/lora : Move 'LORA_CR_DEFAULT' to 'CONFIG_'
Added choices and moved 'LORA_CR_DEFAULT' to 'CONFIG_' namespace
2020-09-30 20:00:03 +05:30
Akshai M
aaeed98277 net/lora : Move 'LORA_SF_DEFAULT' to 'CONFIG_' 2020-09-30 20:00:03 +05:30
Akshai M
349d20349d net/lora : Move 'LORA_BW_DEFAULT' to 'CONFIG_'
Added choices and moved 'LORA_BW_DEFAULT" to 'CONFIG_' namespace
2020-09-30 20:00:03 +05:30
Akshai M
979700cd45 net/lora : Move 'LORA_SYMBOL_TIMEOUT_DEFAULT' to 'CONFIG_' 2020-09-30 20:00:03 +05:30
Akshai M
de1ad1e8cf net/lora : Move 'LORA_PREAMBLE_LENGTH_DEFAULT' to 'CONFIG_' 2020-09-30 20:00:03 +05:30
Gunar Schorcht
6d61381d2a drivers: use inline functions for GPIO comparisons
The expandable GPIO API requires the comparison of structured GPIO types. This means that inline functions must be used instead of direct comparisons. For the migration process, drivers must first be changed so that they use the inline comparison functions.
2020-08-31 13:10:28 +02:00
6199ada6b5
drivers/sx127x: migrate to ztimer 2020-08-20 13:41:32 +02:00
Leandro Lanzieri
224e2c977d
Merge pull request #14509 from jia200x/pr/lora_implicit_mode
sx127x: add support for implicit header mode
2020-07-29 12:52:00 +02:00
Jose Alamos
84eb2dc30c sx127x: implement NETOPT_PDU_SIZE 2020-07-29 11:57:52 +02:00
304bce3724
drivers: configure per driver dependency resolution 2020-07-20 14:32:16 +02:00
490126cfa0
drivers: move USEMODULE_INCLUDES in each driver directories 2020-07-15 20:36:27 +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
56040e3369 driver/sx127x: allow the use of DIO0 for CAD_DONE 2020-03-10 10:08:30 +01:00
Gunar Schorcht
e3a82cd6fc driver/sx127x: set DIO1 mapping
Since the RxTimeout interrupt is enabled, DIO1 mapping should be set also to RxTimeout in case the driver is extended in future and DIO1 mapping is changed for any reason.
2020-03-10 10:08:24 +01:00
Gunar Schorcht
1eb8701965 drivers/sx127x: ensure that DIO2 is defined
If frequency hopping is used (LORA_FREQUENCY_HOPPING_DEFAULT = true), DIO2 pin is needed for the FhssChangeChannel interrupt to get it working.
2020-03-10 10:08:19 +01:00
Gunar Schorcht
3adbbdcf9b drivers/sx127x: fix length check of netstat_opt_tin _set 2020-03-08 17:10:46 +01:00
Jose Alamos
3ad574a822 drivers/netdev: use netdev_trigger_event_isr function 2020-03-06 14:03:43 +01:00
Francois Berder
4a31f94cfc many typo fixes
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
63a6bcd513
drivers/sx127x: skip reset sequence if pin is undefined 2019-10-09 15:07:23 +02:00
340c8e8236
drivers/sx127x: let sx127x driver manage spi pins GPIO modes 2019-08-05 16:46:41 +02: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
Sebastian Meiling
f6207871a9
Merge pull request #11678 from MichelRottleuthner/pr_fix_sx127x_reset
drivers/sx127x: fix device reset
2019-07-03 17:07:50 +02:00
Michel Rottleuthner
6e4214843a drivers/sx127x: fix reset for sx1272 devices.
- The previous implementation wrongly assumes that sx1272 and 1276
  use the same logic level for triggering a reset.
- The timeout values were to short to guarantee proper reset when
  coming from POR.
2019-07-03 11:26:23 +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
Michel Rottleuthner
f337f42738 drivers/sx127x: add define for logic level of POR indication by the reset pin 2019-06-11 19:24:07 +02:00
c1547efb3a
Merge pull request #11316 from fjmolinas/pr_sx127x_switch
drivers/sx127x: add support for rx and tx switch pin
2019-04-10 18:40:37 +02:00
francisco
c62d9feff7 drivers/sx127x: add support for rx and tx switch pin 2019-04-10 08:18:01 +02:00
Jose Alamos
4778776790 sx127x: ignore empty iolist element 2019-03-19 17:30:55 +01:00
Leandro Lanzieri
94a10e9e10
Merge pull request #11132 from MichelRottleuthner/pr_sx127x_add_gpio_pull_config
drivers/sx127x: add gpio pull config define for DIO pins
2019-03-14 14:05:56 +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
2fd59067b4 drivers/sx127x: remove netdev_sx127x_lora_packet_info structure 2019-03-08 17:47:43 +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
Michel Rottleuthner
389d258627 drivers/sx127x: add gpio pull config define for DIO pins 2019-03-07 16:09:38 +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
Kees Bakker
f1856887af drivers/sx127x: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Vincent Dupont
6b82b8490b drivers/sx127x: remove irq_disable/irq_restore around spi transfers 2018-12-28 09:36: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
Gaëtan Harter
6ba37a902d
drivers/sx127x: Fix -Wformat llvm warning
Fixed warning

    format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int')
2018-08-02 17:25:27 +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
1bee32c75f drivers/sx127x: refactor error management 2018-04-12 10:00:24 +02:00