Skip to content

Commit

Permalink
Initial standalone sx126x driver WIP
Browse files Browse the repository at this point in the history
code style changes and correct file path

initial file ops and initialization

sx126x board and driver integration

Squashed commit of the following:

commit 5c27c1e
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Tue Feb 18 20:57:14 2025 +0100

    syncword, crc and wl log

commit 30a8f0a
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sun Feb 16 16:05:51 2025 +0100

    style changes

commit c950055
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sun Feb 16 16:05:38 2025 +0100

    style changes and board support

commit 42b3574
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sun Feb 16 12:40:41 2025 +0100

    payload receival

commit a116b03
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sat Feb 15 20:07:14 2025 +0100

    Receiving test

commit 8f250dc
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sat Feb 15 15:51:42 2025 +0100

    TX semaphore

commit 02d325e
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sat Feb 15 14:53:19 2025 +0100

    irq status

commit 4d8a63f
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sat Feb 15 13:58:41 2025 +0100

    initial interrupt handling

commit 4fae8c7
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Wed Feb 12 22:39:13 2025 +0100

    writing

commit 16184f7
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Tue Feb 11 21:10:35 2025 +0100

    initial nuttx integration for testing

commit d404cac
Merge: 3b38c20 3fb5506
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Tue Feb 11 19:44:41 2025 +0100

    Merge branch 'sx126x_lora_driver' of https://github.com/keever50/nuttx into sx126x_testing

commit 3b38c20
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Tue Feb 11 19:18:41 2025 +0100

    initial testing

commit 3fb5506
Author: keever50 <[email protected]>
Date:   Sun Feb 9 13:40:20 2025 +0100

    Initial standalone sx126x driver WIP

    code style changes and correct file path

    initial file ops and initialization

commit e51a9ad
Author: keever50 <[email protected]>
Date:   Sun Feb 9 13:38:56 2025 +0100

    Initial standlone driver

removal of board

style

Squashed commit of the following:

commit ab1a8d0
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sat Feb 22 13:18:43 2025 +0100

    typo fix

commit 8e2c81c
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Fri Feb 21 20:09:35 2025 +0100

    PA power fix

commit 5c27c1e
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Tue Feb 18 20:57:14 2025 +0100

    syncword, crc and wl log

commit 30a8f0a
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sun Feb 16 16:05:51 2025 +0100

    style changes

commit c950055
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sun Feb 16 16:05:38 2025 +0100

    style changes and board support

commit 42b3574
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sun Feb 16 12:40:41 2025 +0100

    payload receival

commit a116b03
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sat Feb 15 20:07:14 2025 +0100

    Receiving test

commit 8f250dc
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sat Feb 15 15:51:42 2025 +0100

    TX semaphore

commit 02d325e
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sat Feb 15 14:53:19 2025 +0100

    irq status

commit 4d8a63f
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Sat Feb 15 13:58:41 2025 +0100

    initial interrupt handling

commit 4fae8c7
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Wed Feb 12 22:39:13 2025 +0100

    writing

commit 16184f7
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Tue Feb 11 21:10:35 2025 +0100

    initial nuttx integration for testing

commit d404cac
Merge: 3b38c20 3fb5506
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Tue Feb 11 19:44:41 2025 +0100

    Merge branch 'sx126x_lora_driver' of https://github.com/keever50/nuttx into sx126x_testing

commit 3b38c20
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
Date:   Tue Feb 11 19:18:41 2025 +0100

    initial testing

commit 3fb5506
Author: keever50 <[email protected]>
Date:   Sun Feb 9 13:40:20 2025 +0100

    Initial standalone sx126x driver WIP

    code style changes and correct file path

    initial file ops and initialization

commit e51a9ad
Author: keever50 <[email protected]>
Date:   Sun Feb 9 13:38:56 2025 +0100

    Initial standlone driver

board removal
  • Loading branch information
keever50 committed Feb 22, 2025
1 parent 1aced99 commit 66d63cc
Show file tree
Hide file tree
Showing 9 changed files with 2,356 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/wireless/lpwan/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ config LPWAN_SX127X
---help---
This options adds driver support for the Samtech SX127X chip.

config LPWAN_SX126X
bool "SX126X Low Power Long Range transceiver support"
default n
select SPI
---help---
This options adds driver support for the Samtech SX126X chip.

source "drivers/wireless/lpwan/sx126x/Kconfig"

if LPWAN_SX127X

config LPWAN_SX127X_RFFREQ_DEFAULT
Expand Down
1 change: 1 addition & 0 deletions drivers/wireless/lpwan/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
ifeq ($(CONFIG_DRIVERS_LPWAN),y)

include wireless/lpwan/sx127x/Make.defs
include wireless/lpwan/sx126x/Make.defs

endif # CONFIG_DRIVERS_LPWAN
24 changes: 24 additions & 0 deletions drivers/wireless/lpwan/sx126x/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# ##############################################################################
# drivers/wireless/lpwan/sx126x/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################
if(CONFIG_LPWAN_SX126X)
target_sources(drivers PRIVATE sx126x.c)
endif()
28 changes: 28 additions & 0 deletions drivers/wireless/lpwan/sx126x/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#

if LPWAN_SX126X

config LPWAN_SX126X_RFFREQ_DEFAULT
int "SX126X default RF frequency Hz"
default 869252000

config LPWAN_SX126X_SF_DEFAULT
int "SX126X default spreading factor"
default 10

config LPWAN_SX126X_BW_DEFAULT
int "SX126X default bandwidth kHz"
default 125

config LPWAN_SX126X_CR_DEFAULT
int "SX126X default coding rate"
default 8

config LPWAN_SX126X_MAX_DEVICES
int "SX126X maximum devices"
default 1

endif # DRIVERS_LPWAN
35 changes: 35 additions & 0 deletions drivers/wireless/lpwan/sx126x/Make.defs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
############################################################################
# drivers/wireless/lpwan/sx126x/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################

# Include SX126X drivers into the build

ifeq ($(CONFIG_LPWAN_SX126X),y)

CSRCS += sx126x.c

# Include SX126X build support

DEPPATH += --dep-path wireless$(DELIM)lpwan$(DELIM)sx126x
VPATH += :wireless$(DELIM)lpwan$(DELIM)sx126x
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)drivers$(DELIM)wireless$(DELIM)lpwan$(DELIM)sx126x

endif # CONFIG_LPWAN_SX126X
Loading

0 comments on commit 66d63cc

Please sign in to comment.