-
Notifications
You must be signed in to change notification settings - Fork 744
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added new HAL function lgw_board_setconf() to configure board/concentrator specific parameters: network type (LoRa public or private), concentrator clock source. Note: those parameters are not any more set from the library.cfg file configuration (CFG_NET, CFG_BRD), and should be passed at initialization by the application. - Added new HAL function lgw_txgain_setconf() to configure concentrator TX gain table. It can now be dynamically set by the application at initialization time. - Changed HAL function lgw_rxrf_setconf(), it will now also configure the radio type (CFG_RADIO has been removed from library.cfg), the RSSI offset to be used for this radio and if TX is enabled or not on this radio. - Added support of IoT Starter Kit platform, which is now the default board. - Added util_tx_continuous utility for gateway TX power calibration and spectral emission measurements/qualification. - Removed CFG_BAND configuration from library.cfg. Band configuration is done by application and passed dynamically at initialization time. - Updated makefiles to allow cross compilation from environment variable (ARCH, CROSS_COMPILE). ** WARNING: ** ** Known issue: a problem with carrier leakage calibration has been seen on 433MHz boards. **
- Loading branch information
Showing
34 changed files
with
3,169 additions
and
2,519 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.o | ||
*.swp | ||
*.bak |
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 |
---|---|---|
@@ -1,22 +1,23 @@ | ||
### Environment constants | ||
|
||
CROSS_COMPILE := | ||
ARCH ?= | ||
CROSS_COMPILE ?= | ||
export | ||
|
||
### general build targets | ||
|
||
all: | ||
$(MAKE) all -e -C libloragw | ||
$(MAKE) all -e -C util_band_survey | ||
$(MAKE) all -e -C util_pkt_logger | ||
$(MAKE) all -e -C util_spi_stress | ||
$(MAKE) all -e -C util_tx_test | ||
$(MAKE) all -e -C util_tx_continuous | ||
|
||
clean: | ||
$(MAKE) clean -e -C libloragw | ||
$(MAKE) clean -e -C util_band_survey | ||
$(MAKE) clean -e -C util_pkt_logger | ||
$(MAKE) clean -e -C util_spi_stress | ||
$(MAKE) clean -e -C util_tx_test | ||
$(MAKE) clean -e -C util_tx_continuous | ||
|
||
### EOF | ||
### EOF |
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 |
---|---|---|
@@ -1 +1 @@ | ||
2.0.0 | ||
3.0.0 |
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
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/* | ||
/ _____) _ | | | ||
( (____ _____ ____ _| |_ _____ ____| |__ | ||
\____ \| ___ | (_ _) ___ |/ ___) _ \ | ||
_____) ) ____| | | || |_| ____( (___| | | | | ||
(______/|_____)_|_|_| \__)_____)\____)_| |_| | ||
(C)2013 Semtech-Cycleo | ||
Description: | ||
Host specific functions to address the GPIO. mainly the Reset pin | ||
License: Revised BSD License, see LICENSE.TXT file include in the project | ||
Maintainer: Miguel Luis | ||
*/ | ||
|
||
|
||
#ifndef _LORAGW_GPIO_H | ||
#define _LORAGW_GPIO_H | ||
|
||
/* -------------------------------------------------------------------------- */ | ||
/* --- DEPENDANCIES --------------------------------------------------------- */ | ||
|
||
#include <stdint.h> /* C99 types*/ | ||
|
||
#include "config.h" /* library configuration options (dynamically generated) */ | ||
|
||
/* -------------------------------------------------------------------------- */ | ||
/* --- PUBLIC CONSTANTS ----------------------------------------------------- */ | ||
|
||
#define LGW_GPIO_SUCCESS 0 | ||
#define LGW_GPIO_ERROR -1 | ||
|
||
#define LGW_GPIO_IN 0 | ||
#define LGW_GPIO_OUT 1 | ||
|
||
#define LGW_GPIO_LOW 0 | ||
#define LGW_GPIO_HIGH 1 | ||
|
||
/* -------------------------------------------------------------------------- */ | ||
/* --- PUBLIC FUNCTIONS PROTOTYPES ------------------------------------------ */ | ||
|
||
/** | ||
@brief Reserves the given GPIO pin | ||
@param pin pin ID to be reserved | ||
@return status of operation (LGW_GPIO_SUCCESS/LGW_GPIO_ERROR) | ||
*/ | ||
int lgw_gpio_export(int pin); | ||
|
||
/** | ||
@brief Releases the given GPIO pin reservation | ||
@param pin pin ID to be released | ||
@return status of operation (LGW_GPIO_SUCCESS/LGW_GPIO_ERROR) | ||
*/ | ||
int lgw_gpio_unexport(int pin); | ||
|
||
/** | ||
@brief Sets the GPIO pin to the given direction | ||
@param pin pin ID to be changed | ||
@param dir new direction for the pin(LGW_GPIO_IN/LGW_GPIO_OUT) | ||
@return status of operation (LGW_GPIO_SUCCESS/LGW_GPIO_ERROR) | ||
*/ | ||
int lgw_gpio_direction(int pin, int dir); | ||
|
||
/** | ||
@brief Reads the given GPIO pin | ||
@param pin pin ID to be read | ||
@return value of the given pin ID (LGW_GPIO_LOW/LGW_GPIO_HIGH/LGW_GPIO_ERROR) | ||
*/ | ||
int lgw_gpio_read(int pin); | ||
|
||
/** | ||
@brief Writes the given GPIO pin with value | ||
@param pin pin ID to be changed | ||
@param value new value for the pin(LGW_GPIO_LOW/LGW_GPIO_HIDH) | ||
@return status of operation (LGW_GPIO_SUCCESS/LGW_GPIO_ERROR) | ||
*/ | ||
int lgw_gpio_write(int pin, int value); | ||
|
||
#endif | ||
|
||
/* --- EOF ------------------------------------------------------------------ */ |
Oops, something went wrong.