-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
firmware: drivers: sx1271x: Fixing compilation errors #60
- Loading branch information
Showing
4 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
* | ||
* \author Gabriel Mariano Marcelino <[email protected]> | ||
* | ||
* \version 0.1.3 | ||
* \version 0.1.21 | ||
* | ||
* \date 2021/12/14 | ||
* | ||
|
@@ -191,9 +191,9 @@ int sx127x_set_frequency(uint32_t freq) | |
/* Checking the register's value */ | ||
uint8_t reg_buf[3] = {0}; | ||
|
||
if ((sx127x_read_reg(SX127X_REG_FRF_MSB, &read_reg[0]) != 0) || | ||
(sx127x_read_reg(SX127X_REG_FRF_MID, &read_reg[1]) != 0) || | ||
(sx127x_read_reg(SX127X_REG_FRF_LSB, &read_reg[2]) != 0)) | ||
if ((sx127x_read_reg(SX127X_REG_FRF_MSB, ®_buf[0]) != 0) || | ||
(sx127x_read_reg(SX127X_REG_FRF_MID, ®_buf[1]) != 0) || | ||
(sx127x_read_reg(SX127X_REG_FRF_LSB, ®_buf[2]) != 0)) | ||
{ | ||
#if defined(CONFIG_DRIVERS_DEBUG_ENABLED) && (CONFIG_DRIVERS_DEBUG_ENABLED == 1) | ||
sys_log_print_event_from_module(SYS_LOG_ERROR, SX127X_MODULE_NAME, "Error reading the register FRF!"); | ||
|
@@ -684,7 +684,7 @@ int sx127x_burst_write(uint8_t adr, uint8_t *ptr, uint8_t len) | |
|
||
memcpy(&wbuf[1], ptr, len); | ||
|
||
err = sx127x_spi_write(wbuf, 1U + len) | ||
err = sx127x_spi_write(wbuf, 1U + len); | ||
} | ||
|
||
return err; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
* | ||
* \author Gabriel Mariano Marcelino <[email protected]> | ||
* | ||
* \version 0.1.3 | ||
* \version 0.1.21 | ||
* | ||
* \date 2021/12/15 | ||
* | ||
|
@@ -36,6 +36,8 @@ | |
#include <config/config.h> | ||
#include <system/sys_log/sys_log.h> | ||
|
||
#include <drivers/gpio/gpio.h> | ||
|
||
#include "sx127x.h" | ||
|
||
/* GPIO configuration */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
* | ||
* \author Gabriel Mariano Marcelino <[email protected]> | ||
* | ||
* \version 0.1.3 | ||
* \version 0.1.21 | ||
* | ||
* \date 2021/12/15 | ||
* | ||
|
@@ -36,6 +36,8 @@ | |
#include <config/config.h> | ||
#include <system/sys_log/sys_log.h> | ||
|
||
#include <drivers/spi/spi.h> | ||
|
||
#include "sx127x.h" | ||
|
||
/* SPI configuration */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
* | ||
* \author Gabriel Mariano Marcelino <[email protected]> | ||
* | ||
* \version 0.1.20 | ||
* \version 0.1.21 | ||
* | ||
* \date 2021/04/04 | ||
* | ||
|
@@ -36,7 +36,7 @@ | |
#ifndef VERSION_H_ | ||
#define VERSION_H_ | ||
|
||
#define FIRMWARE_VERSION "0.1.20" | ||
#define FIRMWARE_VERSION "0.1.21" | ||
|
||
#define FIRMWARE_STATUS "Development" | ||
|
||
|