Skip to content

Commit b9b505a

Browse files
linguini1Alan C. Assis
authored andcommitted
wireless/lpwan: Add support for the RN903 and RN2483 family of LoRa
radio transceivers. This initial support includes transmit and receive functionality and configuration and reading of radio parameters like frequency and bandwidth. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
1 parent 219fb1a commit b9b505a

File tree

7 files changed

+2131
-2
lines changed

7 files changed

+2131
-2
lines changed

drivers/wireless/lpwan/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
if DRIVERS_LPWAN
77

8+
config LPWAN_RN2XX3
9+
bool "Microchip RN2xx3 driver support"
10+
default n
11+
depends on UART
12+
---help---
13+
Enable driver support for the RN2xx3 LoRa radio transceiver family.
14+
815
config LPWAN_SX127X
916
bool "SX127X Low Power Long Range transceiver support"
1017
default n

drivers/wireless/lpwan/Make.defs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ ifeq ($(CONFIG_DRIVERS_LPWAN),y)
2626

2727
include wireless/lpwan/sx127x/Make.defs
2828
include wireless/lpwan/sx126x/Make.defs
29+
include wireless/lpwan/rn2xx3/Make.defs
2930

3031
endif # CONFIG_DRIVERS_LPWAN
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# ##############################################################################
2+
# drivers/wireless/lpwan/rn2xx3/CMakeLists.txt
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
7+
# license agreements. See the NOTICE file distributed with this work for
8+
# additional information regarding copyright ownership. The ASF licenses this
9+
# file to you under the Apache License, Version 2.0 (the "License"); you may not
10+
# use this file except in compliance with the License. You may obtain a copy of
11+
# the License at
12+
#
13+
# http://www.apache.org/licenses/LICENSE-2.0
14+
#
15+
# Unless required by applicable law or agreed to in writing, software
16+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
18+
# License for the specific language governing permissions and limitations under
19+
# the License.
20+
#
21+
# ##############################################################################
22+
23+
if(CONFIG_LPWAN_RN2903)
24+
target_sources(drivers PRIVATE rn2xx3.c)
25+
endif()
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
############################################################################
2+
# drivers/wireless/lpwan/rn2xx3/Make.defs
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
# Licensed to the Apache Software Foundation (ASF) under one or more
7+
# contributor license agreements. See the NOTICE file distributed with
8+
# this work for additional information regarding copyright ownership. The
9+
# ASF licenses this file to you under the Apache License, Version 2.0 (the
10+
# "License"); you may not use this file except in compliance with the
11+
# License. You may obtain a copy of the License at
12+
#
13+
# http://www.apache.org/licenses/LICENSE-2.0
14+
#
15+
# Unless required by applicable law or agreed to in writing, software
16+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
18+
# License for the specific language governing permissions and limitations
19+
# under the License.
20+
#
21+
############################################################################
22+
23+
ifeq ($(CONFIG_LPWAN_RN2XX3),y)
24+
25+
CSRCS += rn2xx3.c
26+
27+
DEPPATH += --dep-path wireless$(DELIM)lpwan$(DELIM)rn2xx3
28+
VPATH += :wireless$(DELIM)lpwan$(DELIM)rn2xx3
29+
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)drivers$(DELIM)wireless$(DELIM)lpwan$(DELIM)rn2xx3
30+
31+
endif # CONFIG_LPWAN_RN2903

0 commit comments

Comments
 (0)