net/lora : Model as bool 'LORA_IQ_INVERTED_DEFAULT'
Move 'LORA_IQ_INVERTED_DEFAULT' to 'CONFIG_'
This commit is contained in:
parent
a161476041
commit
00cc04f596
@ -27,6 +27,7 @@
|
|||||||
#include "timex.h"
|
#include "timex.h"
|
||||||
#include "ztimer.h"
|
#include "ztimer.h"
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
|
#include "kernel_defines.h"
|
||||||
|
|
||||||
#include "periph/gpio.h"
|
#include "periph/gpio.h"
|
||||||
#include "periph/spi.h"
|
#include "periph/spi.h"
|
||||||
@ -178,7 +179,7 @@ void sx127x_init_radio_settings(sx127x_t *dev)
|
|||||||
sx127x_set_freq_hop(dev, LORA_FREQUENCY_HOPPING_DEFAULT);
|
sx127x_set_freq_hop(dev, LORA_FREQUENCY_HOPPING_DEFAULT);
|
||||||
sx127x_set_hop_period(dev, LORA_FREQUENCY_HOPPING_PERIOD_DEFAULT);
|
sx127x_set_hop_period(dev, LORA_FREQUENCY_HOPPING_PERIOD_DEFAULT);
|
||||||
sx127x_set_fixed_header_len_mode(dev, LORA_FIXED_HEADER_LEN_MODE_DEFAULT);
|
sx127x_set_fixed_header_len_mode(dev, LORA_FIXED_HEADER_LEN_MODE_DEFAULT);
|
||||||
sx127x_set_iq_invert(dev, LORA_IQ_INVERTED_DEFAULT);
|
sx127x_set_iq_invert(dev, IS_ACTIVE(CONFIG_LORA_IQ_INVERTED_DEFAULT) ? true : false);
|
||||||
sx127x_set_payload_length(dev, LORA_PAYLOAD_LENGTH_DEFAULT);
|
sx127x_set_payload_length(dev, LORA_PAYLOAD_LENGTH_DEFAULT);
|
||||||
sx127x_set_preamble_length(dev, CONFIG_LORA_PREAMBLE_LENGTH_DEFAULT);
|
sx127x_set_preamble_length(dev, CONFIG_LORA_PREAMBLE_LENGTH_DEFAULT);
|
||||||
sx127x_set_symbol_timeout(dev, CONFIG_LORA_SYMBOL_TIMEOUT_DEFAULT);
|
sx127x_set_symbol_timeout(dev, CONFIG_LORA_SYMBOL_TIMEOUT_DEFAULT);
|
||||||
|
|||||||
@ -104,9 +104,9 @@ extern "C" {
|
|||||||
#define LORA_FIX_LENGTH_PAYLOAD_ON_DEFAULT (false)
|
#define LORA_FIX_LENGTH_PAYLOAD_ON_DEFAULT (false)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @brief Set inverted IQ on */
|
/** @brief Set this to true to enable inverted IQ mode */
|
||||||
#ifndef LORA_IQ_INVERTED_DEFAULT
|
#ifdef DOXYGEN
|
||||||
#define LORA_IQ_INVERTED_DEFAULT (false)
|
#define CONFIG_LORA_IQ_INVERTED_DEFAULT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @brief Frequency hopping on */
|
/** @brief Frequency hopping on */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user