mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
net/lora : Model as bool 'LORA_FIXED_HEADER_LEN_MODE_DEFAULT'
Move 'LORA_FIXED_HEADER_LEN_MODE_DEFAULT' to 'CONFIG_'
This commit is contained in:
parent
e329588be4
commit
889828ae87
@ -178,7 +178,8 @@ void sx127x_init_radio_settings(sx127x_t *dev)
|
||||
sx127x_set_crc(dev, LORA_PAYLOAD_CRC_ON_DEFAULT);
|
||||
sx127x_set_freq_hop(dev, IS_ACTIVE(CONFIG_LORA_FREQUENCY_HOPPING_DEFAULT) ? true : false);
|
||||
sx127x_set_hop_period(dev, CONFIG_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, IS_ACTIVE(CONFIG_LORA_FIXED_HEADER_LEN_MODE_DEFAULT) ?
|
||||
true : false);
|
||||
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_preamble_length(dev, CONFIG_LORA_PREAMBLE_LENGTH_DEFAULT);
|
||||
|
@ -119,9 +119,9 @@ extern "C" {
|
||||
#define CONFIG_LORA_FREQUENCY_HOPPING_PERIOD_DEFAULT (0U)
|
||||
#endif
|
||||
|
||||
/** @brief Set fixed header length mode (implicit header) */
|
||||
#ifndef LORA_FIXED_HEADER_LEN_MODE_DEFAULT
|
||||
#define LORA_FIXED_HEADER_LEN_MODE_DEFAULT (false)
|
||||
/** @brief Set this to true to enable fixed header length mode (implicit header) */
|
||||
#ifdef DOXYGEN
|
||||
#define CONFIG_LORA_FIXED_HEADER_LEN_MODE_DEFAULT
|
||||
#endif
|
||||
|
||||
/** @brief Enable payload CRC, optional */
|
||||
|
Loading…
Reference in New Issue
Block a user