mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-10-15 13:21:54 +00:00
- LoRaRadioBase -> LoRaRadio (final); SX126x/SX127x/LR1110/LR2021Radio replaced by const LoRaRadioOps tables (radio_ops_<family>.cpp), one linked per build; mains construct the radio in one line - lr20xx: vendored Semtech SDK + HAL moved beside the driver (no app-tree sources), DIO1 handler split (CCN 52 -> 10), zc_lora_timing.h adopted, dead exports removed, header rewritten, comment diet (image-identical) - semtech,lr2021 uses the lr1110 property names (irq-gpios, tcxo-voltage, rfsw-*), compiled config byte-identical - correct the stale "LR2021 is not CAD-probed" claim
29 lines
822 B
C
29 lines
822 B
C
/*
|
|
* SPDX-License-Identifier: MIT
|
|
* ZephCore - Common radio includes for LoRa mesh roles
|
|
*
|
|
* Shared by companion, repeater, and any future role that uses the
|
|
* LoRa radio. Selects LR1110 or SX126x based on Kconfig/devicetree.
|
|
*/
|
|
|
|
#ifndef ZEPHCORE_RADIO_INCLUDES_H
|
|
#define ZEPHCORE_RADIO_INCLUDES_H
|
|
|
|
#if IS_ENABLED(CONFIG_ZEPHCORE_RADIO_LR1110) || DT_NODE_HAS_STATUS(DT_ALIAS(lora0), okay)
|
|
|
|
#include <zephyr/drivers/lora.h>
|
|
#include <helpers/LoRaConfig.h>
|
|
#include <adapters/board/ZephyrBoard.h>
|
|
#include <adapters/clock/ZephyrMillisecondClock.h>
|
|
#include <adapters/rng/ZephyrRNG.h>
|
|
#include <mesh/SimpleMeshTables.h>
|
|
#include <mesh/StaticPoolPacketManager.h>
|
|
|
|
#include <adapters/radio/LoRaRadio.h>
|
|
|
|
#define ZEPHCORE_LORA 1
|
|
|
|
#endif /* CONFIG_ZEPHCORE_RADIO_LR1110 || lora0 */
|
|
|
|
#endif /* ZEPHCORE_RADIO_INCLUDES_H */
|