From 54dad64e15260ab52440730eb972c2c0c12ed6f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Pouiller?= Date: Wed, 9 Oct 2024 16:38:25 +0200 Subject: [PATCH] samples: Fix Zephyr compliance in generated files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Files generated by Simplicity Studio ends lines with \r. Remove them to pass Zephyr compliance checks. sed -i 's/\r//g' */rail_config.[hc] Signed-off-by: Jérôme Pouiller --- .../src/rail-configs/sltb010a/rail_config.c | 666 ++++++++-------- .../src/rail-configs/sltb010a/rail_config.h | 104 +-- .../rail-configs/xg24_dk2601b/rail_config.c | 732 +++++++++--------- .../rail-configs/xg24_dk2601b/rail_config.h | 104 +-- 4 files changed, 803 insertions(+), 803 deletions(-) diff --git a/samples/simple_txrx/src/rail-configs/sltb010a/rail_config.c b/samples/simple_txrx/src/rail-configs/sltb010a/rail_config.c index a1ca302..4401aa1 100644 --- a/samples/simple_txrx/src/rail-configs/sltb010a/rail_config.c +++ b/samples/simple_txrx/src/rail-configs/sltb010a/rail_config.c @@ -1,333 +1,333 @@ -/***************************************************************************//** - * @brief RAIL Configuration - * @details - * WARNING: Auto-Generated Radio Config - DO NOT EDIT - * Radio Configurator Version: 2022.5.2 - * RAIL Adapter Version: 2.4.19 - * RAIL Compatibility: 2.x - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ - -#include "em_device.h" -#include "rail_config.h" - -uint32_t RAILCb_CalcSymbolRate(RAIL_Handle_t railHandle) -{ - (void)railHandle; - return 0U; -} - -uint32_t RAILCb_CalcBitRate(RAIL_Handle_t railHandle) -{ - (void)railHandle; - return 0U; -} - -void RAILCb_ConfigFrameTypeLength(RAIL_Handle_t railHandle, const RAIL_FrameType_t *frameType) -{ - (void)railHandle; - (void)frameType; -} - -static const uint8_t irCalConfig[] = {25, 63, 1, 6, 4, 16, 1, 0, 0, 1, 1, 6, 0, - 16, 39, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0}; - -static const int32_t timingConfig[] = {0, 0, 0}; - -static const uint8_t hfxoRetimingConfigEntries[] = { - 2, 0, 0, 0, 0x00, 0xf0, 0x49, 0x02, 6, 20, 0, 0, 0x00, 0xe0, 0x93, 0x04, 5, 56, - 0, 0, 0xa0, 0x08, 0, 0, 0, 0, 0x58, 0x09, 1, 4, 7, 6, 0x10, 0x0a, 1, 4, - 7, 7, 0xc8, 0x0a, 0, 4, 8, 7, 0x80, 0x0b, 0, 4, 8, 8, 0x38, 0x0c, 0, 4, - 9, 8, 0x61, 0x08, 0, 0, 0, 0, 0x68, 0x08, 0, 0, 0, 0, 0xc7, 0x09, 1, 4, - 4, 3, 0x2c, 0x0b, 1, 4, 4, 4, 0x92, 0x0c, 1, 4, 5, 4}; - -static RAIL_ChannelConfigEntryAttr_t channelConfigEntryAttr = { -#if RAIL_SUPPORTS_OFDM_PA - {{0xFFFFFFFFUL}, {0xFFFFFFFFUL, 0xFFFFFFFFUL}} -#else // RAIL_SUPPORTS_OFDM_PA - {0xFFFFFFFFUL}, -#endif // RAIL_SUPPORTS_OFDM_PA -}; - -static const uint32_t phyInfo[] = { - 13UL, - 0x00924924UL, // 146.28571428571428 - (uint32_t)NULL, - (uint32_t)irCalConfig, - (uint32_t)timingConfig, - 0x00000000UL, - 8000000UL, - 28000000UL, - 1000000UL, - 0x00F50101UL, - 0x02503EC5UL, - (uint32_t)NULL, - (uint32_t)hfxoRetimingConfigEntries, - (uint32_t)NULL, - 0UL, - 0UL, - 999997UL, - (uint32_t)NULL, - (uint32_t)NULL, -}; - -const uint32_t Protocol_Configuration_modemConfigBase[] = { - 0x0002400CUL, - 0x00000000UL, - /* 4010 */ 0x00004000UL, - 0x00024020UL, - 0x0000000FUL, - /* 4024 */ 0x00000000UL, - 0x00074030UL, - 0x00000000UL, - /* 4034 */ 0x00000000UL, - /* 4038 */ 0x00000000UL, - /* 403C */ 0x00000000UL, - /* 4040 */ 0x00000000UL, - /* 4044 */ 0x00004000UL, - /* 4048 */ 0x00040700UL, - 0x00014050UL, - 0x00000000UL, - 0x0002405CUL, - 0x00000000UL, - /* 4060 */ 0x00000000UL, - 0x000140A8UL, - 0x00000000UL, - 0x000440BCUL, - 0x00000000UL, - /* 40C0 */ 0x00000000UL, - /* 40C4 */ 0x00000000UL, - /* 40C8 */ 0x00000000UL, - 0x00044104UL, - 0x00004CFFUL, - /* 4108 */ 0x00000000UL, - /* 410C */ 0x00004DFFUL, - /* 4110 */ 0x00000000UL, - 0x1001C020UL, - 0x0007F800UL, - 0x3001C020UL, - 0x000802F5UL, - 0x0008C024UL, - 0x00001300UL, - /* C028 */ 0x83B380ECUL, - /* C02C */ 0x51407543UL, - /* C030 */ 0x48000FA0UL, - /* C034 */ 0x00004030UL, - /* C038 */ 0x00000000UL, - /* C03C */ 0x00000000UL, - /* C040 */ 0x0000022EUL, - 0x0004C050UL, - 0x04301151UL, - /* C054 */ 0xE6092D0EUL, - /* C058 */ 0x08070654UL, - /* C05C */ 0x0002B6D1UL, - 0x000AC064UL, - 0x1C003004UL, - /* C068 */ 0x09183040UL, - /* C06C */ 0x2079640DUL, - /* C070 */ 0x01FBFCEBUL, - /* C074 */ 0x03E8F67FUL, - /* C078 */ 0x15724BBDUL, - /* C07C */ 0x0518A311UL, - /* C080 */ 0x76543210UL, - /* C084 */ 0x00000A98UL, - /* C088 */ 0x00000000UL, - 0x01010008UL, - 0x00000744UL, - 0x01010018UL, - 0x00000000UL, - 0x01010020UL, - 0x0000A001UL, - 0x0108401CUL, - 0x00000010UL, - /* 4020 */ 0x04000000UL, - /* 4024 */ 0x0002C00FUL, - /* 4028 */ 0x00005000UL, - /* 402C */ 0x000C1000UL, - /* 4030 */ 0x03000000UL, - /* 4034 */ 0x00000000UL, - /* 4038 */ 0x00000000UL, - 0x01064058UL, - 0x00FF04C8UL, - /* 405C */ 0x00000C41UL, - /* 4060 */ 0x00000001UL, - /* 4064 */ 0x00140012UL, - /* 4068 */ 0x0000B16FUL, - /* 406C */ 0x00000000UL, - 0x01114080UL, - 0x13C00714UL, - /* 4084 */ 0x00000000UL, - /* 4088 */ 0x003B03F1UL, - /* 408C */ 0x00000000UL, - /* 4090 */ 0x00000000UL, - /* 4094 */ 0x22140A04UL, - /* 4098 */ 0x4F4A4132UL, - /* 409C */ 0x00000000UL, - /* 40A0 */ 0x00000000UL, - /* 40A4 */ 0x00000000UL, - /* 40A8 */ 0x00000000UL, - /* 40AC */ 0x00000000UL, - /* 40B0 */ 0x00000000UL, - /* 40B4 */ 0x00000000UL, - /* 40B8 */ 0x00000000UL, - /* 40BC */ 0x00000000UL, - /* 40C0 */ 0x00000000UL, - 0x010240E0UL, - 0x00000033UL, - /* 40E4 */ 0x00000000UL, - 0x010140ECUL, - 0x8C84B89BUL, - 0x010540F4UL, - 0x07830464UL, - /* 40F8 */ 0x3AC81388UL, - /* 40FC */ 0x000A209CUL, - /* 4100 */ 0x00206100UL, - /* 4104 */ 0x123556B7UL, - 0x0103410CUL, - 0x0011F778UL, - /* 4110 */ 0x29043020UL, - /* 4114 */ 0x4040BB88UL, - 0x01024124UL, - 0x00000000UL, - /* 4128 */ 0x00000000UL, - 0x010A4130UL, - 0x0C660664UL, - /* 4134 */ 0x0000010CUL, - /* 4138 */ 0x00FA53E8UL, - /* 413C */ 0x00000000UL, - /* 4140 */ 0x00000000UL, - /* 4144 */ 0x00000000UL, - /* 4148 */ 0x00000000UL, - /* 414C */ 0x00000000UL, - /* 4150 */ 0x00000000UL, - /* 4154 */ 0x00000101UL, - 0x01034168UL, - 0x07830464UL, - /* 416C */ 0x00821388UL, - /* 4170 */ 0x00000000UL, - 0x01044230UL, - 0x00000000UL, - /* 4234 */ 0x0E000000UL, - /* 4238 */ 0x00000000UL, - /* 423C */ 0x00000000UL, - 0x01024244UL, - 0x00000000UL, - /* 4248 */ 0x001F81F4UL, - 0x010C4254UL, - 0x00000000UL, - /* 4258 */ 0x003C0000UL, - /* 425C */ 0x00000000UL, - /* 4260 */ 0x00000000UL, - /* 4264 */ 0x55555555UL, - /* 4268 */ 0x00000017UL, - /* 426C */ 0x00000000UL, - /* 4270 */ 0x00000000UL, - /* 4274 */ 0x0006AAAAUL, - /* 4278 */ 0x00000000UL, - /* 427C */ 0x00000000UL, - /* 4280 */ 0x00000000UL, - 0x01018010UL, - 0x00000003UL, - 0x01028038UL, - 0x00103EC5UL, - /* 803C */ 0x00000001UL, - 0x0103809CUL, - 0x00000000UL, - /* 80A0 */ 0x00037870UL, - /* 80A4 */ 0x000000D0UL, - 0x110180A8UL, - 0x000001F0UL, - 0x310180A8UL, - 0x01CB4205UL, - 0x110180ACUL, - 0x000001F0UL, - 0x310180ACUL, - 0x00FD3E05UL, - 0x010280B0UL, - 0x02000300UL, - /* 80B4 */ 0x01000037UL, - 0x02020098UL, - 0x04000C00UL, - /* 009C */ 0x0000004CUL, - 0x020100A4UL, - 0x00000400UL, - 0x020200D0UL, - 0xAA400005UL, - /* 00D4 */ 0x00000188UL, - 0x020100E4UL, - 0x11512C6CUL, - 0x020200F4UL, - 0x00000000UL, - /* 00F8 */ 0x1108213DUL, - 0x120100FCUL, - 0x0000003FUL, - 0x320100FCUL, - 0x00045400UL, - 0x02010130UL, - 0x02510060UL, - 0x02010154UL, - 0x00003FC4UL, - 0x02010168UL, - 0x00000400UL, - 0x03014FFCUL, - (uint32_t)&phyInfo, - 0xFFFFFFFFUL, -}; - -const RAIL_ChannelConfigEntry_t Protocol_Configuration_channels[] = { - { - .phyConfigDeltaAdd = NULL, - .baseFrequency = 2450000000, - .channelSpacing = 1000000, - .physicalChannelOffset = 0, - .channelNumberStart = 0, - .channelNumberEnd = 20, - .maxPower = RAIL_TX_POWER_MAX, - .attr = &channelConfigEntryAttr, -#ifdef RADIO_CONFIG_ENABLE_CONC_PHY - .entryType = 0, -#endif -#ifdef RADIO_CONFIG_ENABLE_STACK_INFO - .stackInfo = NULL, -#endif - }, -}; - -const RAIL_ChannelConfig_t Protocol_Configuration_channelConfig = { - .phyConfigBase = Protocol_Configuration_modemConfigBase, - .phyConfigDeltaSubtract = NULL, - .configs = Protocol_Configuration_channels, - .length = 1U, - .signature = 0UL, -}; - -const RAIL_ChannelConfig_t *channelConfigs[] = {&Protocol_Configuration_channelConfig, NULL}; - -#ifdef RADIO_CONFIG_ENABLE_STACK_INFO -#endif // RADIO_CONFIG_ENABLE_STACK_INFO - -uint32_t protocolAccelerationBuffer[303]; +/***************************************************************************//** + * @brief RAIL Configuration + * @details + * WARNING: Auto-Generated Radio Config - DO NOT EDIT + * Radio Configurator Version: 2022.5.2 + * RAIL Adapter Version: 2.4.19 + * RAIL Compatibility: 2.x + ******************************************************************************* + * # License + * Copyright 2019 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * SPDX-License-Identifier: Zlib + * + * The licensor of this software is Silicon Laboratories Inc. + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. + * + ******************************************************************************/ + +#include "em_device.h" +#include "rail_config.h" + +uint32_t RAILCb_CalcSymbolRate(RAIL_Handle_t railHandle) +{ + (void)railHandle; + return 0U; +} + +uint32_t RAILCb_CalcBitRate(RAIL_Handle_t railHandle) +{ + (void)railHandle; + return 0U; +} + +void RAILCb_ConfigFrameTypeLength(RAIL_Handle_t railHandle, const RAIL_FrameType_t *frameType) +{ + (void)railHandle; + (void)frameType; +} + +static const uint8_t irCalConfig[] = {25, 63, 1, 6, 4, 16, 1, 0, 0, 1, 1, 6, 0, + 16, 39, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0}; + +static const int32_t timingConfig[] = {0, 0, 0}; + +static const uint8_t hfxoRetimingConfigEntries[] = { + 2, 0, 0, 0, 0x00, 0xf0, 0x49, 0x02, 6, 20, 0, 0, 0x00, 0xe0, 0x93, 0x04, 5, 56, + 0, 0, 0xa0, 0x08, 0, 0, 0, 0, 0x58, 0x09, 1, 4, 7, 6, 0x10, 0x0a, 1, 4, + 7, 7, 0xc8, 0x0a, 0, 4, 8, 7, 0x80, 0x0b, 0, 4, 8, 8, 0x38, 0x0c, 0, 4, + 9, 8, 0x61, 0x08, 0, 0, 0, 0, 0x68, 0x08, 0, 0, 0, 0, 0xc7, 0x09, 1, 4, + 4, 3, 0x2c, 0x0b, 1, 4, 4, 4, 0x92, 0x0c, 1, 4, 5, 4}; + +static RAIL_ChannelConfigEntryAttr_t channelConfigEntryAttr = { +#if RAIL_SUPPORTS_OFDM_PA + {{0xFFFFFFFFUL}, {0xFFFFFFFFUL, 0xFFFFFFFFUL}} +#else // RAIL_SUPPORTS_OFDM_PA + {0xFFFFFFFFUL}, +#endif // RAIL_SUPPORTS_OFDM_PA +}; + +static const uint32_t phyInfo[] = { + 13UL, + 0x00924924UL, // 146.28571428571428 + (uint32_t)NULL, + (uint32_t)irCalConfig, + (uint32_t)timingConfig, + 0x00000000UL, + 8000000UL, + 28000000UL, + 1000000UL, + 0x00F50101UL, + 0x02503EC5UL, + (uint32_t)NULL, + (uint32_t)hfxoRetimingConfigEntries, + (uint32_t)NULL, + 0UL, + 0UL, + 999997UL, + (uint32_t)NULL, + (uint32_t)NULL, +}; + +const uint32_t Protocol_Configuration_modemConfigBase[] = { + 0x0002400CUL, + 0x00000000UL, + /* 4010 */ 0x00004000UL, + 0x00024020UL, + 0x0000000FUL, + /* 4024 */ 0x00000000UL, + 0x00074030UL, + 0x00000000UL, + /* 4034 */ 0x00000000UL, + /* 4038 */ 0x00000000UL, + /* 403C */ 0x00000000UL, + /* 4040 */ 0x00000000UL, + /* 4044 */ 0x00004000UL, + /* 4048 */ 0x00040700UL, + 0x00014050UL, + 0x00000000UL, + 0x0002405CUL, + 0x00000000UL, + /* 4060 */ 0x00000000UL, + 0x000140A8UL, + 0x00000000UL, + 0x000440BCUL, + 0x00000000UL, + /* 40C0 */ 0x00000000UL, + /* 40C4 */ 0x00000000UL, + /* 40C8 */ 0x00000000UL, + 0x00044104UL, + 0x00004CFFUL, + /* 4108 */ 0x00000000UL, + /* 410C */ 0x00004DFFUL, + /* 4110 */ 0x00000000UL, + 0x1001C020UL, + 0x0007F800UL, + 0x3001C020UL, + 0x000802F5UL, + 0x0008C024UL, + 0x00001300UL, + /* C028 */ 0x83B380ECUL, + /* C02C */ 0x51407543UL, + /* C030 */ 0x48000FA0UL, + /* C034 */ 0x00004030UL, + /* C038 */ 0x00000000UL, + /* C03C */ 0x00000000UL, + /* C040 */ 0x0000022EUL, + 0x0004C050UL, + 0x04301151UL, + /* C054 */ 0xE6092D0EUL, + /* C058 */ 0x08070654UL, + /* C05C */ 0x0002B6D1UL, + 0x000AC064UL, + 0x1C003004UL, + /* C068 */ 0x09183040UL, + /* C06C */ 0x2079640DUL, + /* C070 */ 0x01FBFCEBUL, + /* C074 */ 0x03E8F67FUL, + /* C078 */ 0x15724BBDUL, + /* C07C */ 0x0518A311UL, + /* C080 */ 0x76543210UL, + /* C084 */ 0x00000A98UL, + /* C088 */ 0x00000000UL, + 0x01010008UL, + 0x00000744UL, + 0x01010018UL, + 0x00000000UL, + 0x01010020UL, + 0x0000A001UL, + 0x0108401CUL, + 0x00000010UL, + /* 4020 */ 0x04000000UL, + /* 4024 */ 0x0002C00FUL, + /* 4028 */ 0x00005000UL, + /* 402C */ 0x000C1000UL, + /* 4030 */ 0x03000000UL, + /* 4034 */ 0x00000000UL, + /* 4038 */ 0x00000000UL, + 0x01064058UL, + 0x00FF04C8UL, + /* 405C */ 0x00000C41UL, + /* 4060 */ 0x00000001UL, + /* 4064 */ 0x00140012UL, + /* 4068 */ 0x0000B16FUL, + /* 406C */ 0x00000000UL, + 0x01114080UL, + 0x13C00714UL, + /* 4084 */ 0x00000000UL, + /* 4088 */ 0x003B03F1UL, + /* 408C */ 0x00000000UL, + /* 4090 */ 0x00000000UL, + /* 4094 */ 0x22140A04UL, + /* 4098 */ 0x4F4A4132UL, + /* 409C */ 0x00000000UL, + /* 40A0 */ 0x00000000UL, + /* 40A4 */ 0x00000000UL, + /* 40A8 */ 0x00000000UL, + /* 40AC */ 0x00000000UL, + /* 40B0 */ 0x00000000UL, + /* 40B4 */ 0x00000000UL, + /* 40B8 */ 0x00000000UL, + /* 40BC */ 0x00000000UL, + /* 40C0 */ 0x00000000UL, + 0x010240E0UL, + 0x00000033UL, + /* 40E4 */ 0x00000000UL, + 0x010140ECUL, + 0x8C84B89BUL, + 0x010540F4UL, + 0x07830464UL, + /* 40F8 */ 0x3AC81388UL, + /* 40FC */ 0x000A209CUL, + /* 4100 */ 0x00206100UL, + /* 4104 */ 0x123556B7UL, + 0x0103410CUL, + 0x0011F778UL, + /* 4110 */ 0x29043020UL, + /* 4114 */ 0x4040BB88UL, + 0x01024124UL, + 0x00000000UL, + /* 4128 */ 0x00000000UL, + 0x010A4130UL, + 0x0C660664UL, + /* 4134 */ 0x0000010CUL, + /* 4138 */ 0x00FA53E8UL, + /* 413C */ 0x00000000UL, + /* 4140 */ 0x00000000UL, + /* 4144 */ 0x00000000UL, + /* 4148 */ 0x00000000UL, + /* 414C */ 0x00000000UL, + /* 4150 */ 0x00000000UL, + /* 4154 */ 0x00000101UL, + 0x01034168UL, + 0x07830464UL, + /* 416C */ 0x00821388UL, + /* 4170 */ 0x00000000UL, + 0x01044230UL, + 0x00000000UL, + /* 4234 */ 0x0E000000UL, + /* 4238 */ 0x00000000UL, + /* 423C */ 0x00000000UL, + 0x01024244UL, + 0x00000000UL, + /* 4248 */ 0x001F81F4UL, + 0x010C4254UL, + 0x00000000UL, + /* 4258 */ 0x003C0000UL, + /* 425C */ 0x00000000UL, + /* 4260 */ 0x00000000UL, + /* 4264 */ 0x55555555UL, + /* 4268 */ 0x00000017UL, + /* 426C */ 0x00000000UL, + /* 4270 */ 0x00000000UL, + /* 4274 */ 0x0006AAAAUL, + /* 4278 */ 0x00000000UL, + /* 427C */ 0x00000000UL, + /* 4280 */ 0x00000000UL, + 0x01018010UL, + 0x00000003UL, + 0x01028038UL, + 0x00103EC5UL, + /* 803C */ 0x00000001UL, + 0x0103809CUL, + 0x00000000UL, + /* 80A0 */ 0x00037870UL, + /* 80A4 */ 0x000000D0UL, + 0x110180A8UL, + 0x000001F0UL, + 0x310180A8UL, + 0x01CB4205UL, + 0x110180ACUL, + 0x000001F0UL, + 0x310180ACUL, + 0x00FD3E05UL, + 0x010280B0UL, + 0x02000300UL, + /* 80B4 */ 0x01000037UL, + 0x02020098UL, + 0x04000C00UL, + /* 009C */ 0x0000004CUL, + 0x020100A4UL, + 0x00000400UL, + 0x020200D0UL, + 0xAA400005UL, + /* 00D4 */ 0x00000188UL, + 0x020100E4UL, + 0x11512C6CUL, + 0x020200F4UL, + 0x00000000UL, + /* 00F8 */ 0x1108213DUL, + 0x120100FCUL, + 0x0000003FUL, + 0x320100FCUL, + 0x00045400UL, + 0x02010130UL, + 0x02510060UL, + 0x02010154UL, + 0x00003FC4UL, + 0x02010168UL, + 0x00000400UL, + 0x03014FFCUL, + (uint32_t)&phyInfo, + 0xFFFFFFFFUL, +}; + +const RAIL_ChannelConfigEntry_t Protocol_Configuration_channels[] = { + { + .phyConfigDeltaAdd = NULL, + .baseFrequency = 2450000000, + .channelSpacing = 1000000, + .physicalChannelOffset = 0, + .channelNumberStart = 0, + .channelNumberEnd = 20, + .maxPower = RAIL_TX_POWER_MAX, + .attr = &channelConfigEntryAttr, +#ifdef RADIO_CONFIG_ENABLE_CONC_PHY + .entryType = 0, +#endif +#ifdef RADIO_CONFIG_ENABLE_STACK_INFO + .stackInfo = NULL, +#endif + }, +}; + +const RAIL_ChannelConfig_t Protocol_Configuration_channelConfig = { + .phyConfigBase = Protocol_Configuration_modemConfigBase, + .phyConfigDeltaSubtract = NULL, + .configs = Protocol_Configuration_channels, + .length = 1U, + .signature = 0UL, +}; + +const RAIL_ChannelConfig_t *channelConfigs[] = {&Protocol_Configuration_channelConfig, NULL}; + +#ifdef RADIO_CONFIG_ENABLE_STACK_INFO +#endif // RADIO_CONFIG_ENABLE_STACK_INFO + +uint32_t protocolAccelerationBuffer[303]; diff --git a/samples/simple_txrx/src/rail-configs/sltb010a/rail_config.h b/samples/simple_txrx/src/rail-configs/sltb010a/rail_config.h index f8123e0..71e0736 100644 --- a/samples/simple_txrx/src/rail-configs/sltb010a/rail_config.h +++ b/samples/simple_txrx/src/rail-configs/sltb010a/rail_config.h @@ -1,52 +1,52 @@ -/***************************************************************************//** - * @brief RAIL Configuration - * @details - * WARNING: Auto-Generated Radio Config - DO NOT EDIT - * Radio Configurator Version: 2022.5.2 - * RAIL Adapter Version: 2.4.19 - * RAIL Compatibility: 2.x - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ - -#ifndef __RAIL_CONFIG_H__ -#define __RAIL_CONFIG_H__ - -#include -#include "rail_types.h" - -#define PROTOCOL_ACCELERATION_BUFFER protocolAccelerationBuffer -extern uint32_t protocolAccelerationBuffer[]; -#define RADIO_CONFIG_XTAL_FREQUENCY 38400000UL - -#define RAIL0_CHANNEL_GROUP_1_PHY_DATASHEET_2450M_2GFSK_1MBPS_500K -#define RAIL0_CHANNEL_GROUP_1_PROFILE_BASE -extern const RAIL_ChannelConfig_t *channelConfigs[]; - -#ifdef RADIO_CONFIG_ENABLE_STACK_INFO -#endif // RADIO_CONFIG_ENABLE_STACK_INFO - -#endif // __RAIL_CONFIG_H__ +/***************************************************************************//** + * @brief RAIL Configuration + * @details + * WARNING: Auto-Generated Radio Config - DO NOT EDIT + * Radio Configurator Version: 2022.5.2 + * RAIL Adapter Version: 2.4.19 + * RAIL Compatibility: 2.x + ******************************************************************************* + * # License + * Copyright 2019 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * SPDX-License-Identifier: Zlib + * + * The licensor of this software is Silicon Laboratories Inc. + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. + * + ******************************************************************************/ + +#ifndef __RAIL_CONFIG_H__ +#define __RAIL_CONFIG_H__ + +#include +#include "rail_types.h" + +#define PROTOCOL_ACCELERATION_BUFFER protocolAccelerationBuffer +extern uint32_t protocolAccelerationBuffer[]; +#define RADIO_CONFIG_XTAL_FREQUENCY 38400000UL + +#define RAIL0_CHANNEL_GROUP_1_PHY_DATASHEET_2450M_2GFSK_1MBPS_500K +#define RAIL0_CHANNEL_GROUP_1_PROFILE_BASE +extern const RAIL_ChannelConfig_t *channelConfigs[]; + +#ifdef RADIO_CONFIG_ENABLE_STACK_INFO +#endif // RADIO_CONFIG_ENABLE_STACK_INFO + +#endif // __RAIL_CONFIG_H__ diff --git a/samples/simple_txrx/src/rail-configs/xg24_dk2601b/rail_config.c b/samples/simple_txrx/src/rail-configs/xg24_dk2601b/rail_config.c index 6ea2494..a54452e 100644 --- a/samples/simple_txrx/src/rail-configs/xg24_dk2601b/rail_config.c +++ b/samples/simple_txrx/src/rail-configs/xg24_dk2601b/rail_config.c @@ -1,366 +1,366 @@ -/***************************************************************************//** - * @brief RAIL Configuration - * @details - * WARNING: Auto-Generated Radio Config - DO NOT EDIT - * Radio Configurator Version: 2022.5.2 - * RAIL Adapter Version: 2.4.19 - * RAIL Compatibility: 2.x - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ -#include "em_device.h" -#include "rail_config.h" - -uint32_t RAILCb_CalcSymbolRate(RAIL_Handle_t railHandle) -{ - (void) railHandle; - return 0U; -} - -uint32_t RAILCb_CalcBitRate(RAIL_Handle_t railHandle) -{ - (void) railHandle; - return 0U; -} - -void RAILCb_ConfigFrameTypeLength(RAIL_Handle_t railHandle, - const RAIL_FrameType_t *frameType) -{ - (void) railHandle; - (void) frameType; -} - -static const uint8_t irCalConfig[] = { - 25, 63, 1, 6, 4, 16, 1, 0, 0, 1, 1, 6, 0, 16, 39, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0 -}; - -static const int32_t timingConfig[] = { - 8000, 8000, 0 -}; - -static const uint8_t hfxoRetimingConfigEntries[] = { - 2, 0, 0, 0, 0xc0, 0x17, 0x53, 0x02, 6, 20, 0, 0, 0x80, 0x2f, 0xa6, 0x04, 5, 56, 0, 0, 0xa0, 0x08, 0, 0, 0, 0, 0x58, 0x09, 1, 4, 7, 6, 0x10, 0x0a, 1, 4, 7, 7, 0xc8, 0x0a, 0, 4, 8, 7, 0x80, 0x0b, 0, 4, 8, 8, 0x38, 0x0c, 0, 4, 9, 8, 0x61, 0x08, 0, 0, 0, 0, 0x8a, 0x08, 0, 0, 0, 0, 0xc7, 0x09, 1, 4, 4, 3, 0x2c, 0x0b, 1, 4, 4, 4, 0x92, 0x0c, 1, 4, 5, 4 -}; - -static RAIL_ChannelConfigEntryAttr_t channelConfigEntryAttr = { -#if RAIL_SUPPORTS_OFDM_PA - { -#ifdef RADIO_CONFIG_ENABLE_IRCAL_MULTIPLE_RF_PATHS - { 0xFFFFFFFFUL, 0xFFFFFFFFUL, }, -#else - { 0xFFFFFFFFUL }, -#endif // RADIO_CONFIG_ENABLE_IRCAL_MULTIPLE_RF_PATHS - { 0xFFFFFFFFUL, 0xFFFFFFFFUL } - } -#else // RAIL_SUPPORTS_OFDM_PA -#ifdef RADIO_CONFIG_ENABLE_IRCAL_MULTIPLE_RF_PATHS - { 0xFFFFFFFFUL, 0xFFFFFFFFUL, }, -#else - { 0xFFFFFFFFUL }, -#endif // RADIO_CONFIG_ENABLE_IRCAL_MULTIPLE_RF_PATHS -#endif // RAIL_SUPPORTS_OFDM_PA -}; - -static const uint32_t phyInfo[] = { - 13UL, - 0x00444444UL, // 68.26666666666667 - (uint32_t) NULL, - (uint32_t) irCalConfig, - (uint32_t) timingConfig, - 0x00000000UL, - 0UL, - 36000000UL, - 1000000UL, - 0x00F80101UL, - 0x021039C3UL, - (uint32_t) NULL, - (uint32_t) hfxoRetimingConfigEntries, - (uint32_t) NULL, - 0UL, - 0UL, - 1000002UL, - (uint32_t) NULL, - (uint32_t) NULL, -}; - -const uint32_t Protocol_Configuration_modemConfigBase[] = { - 0x0002400CUL, 0x00000000UL, - /* 4010 */ 0x00004000UL, - 0x00024020UL, 0x0000000FUL, - /* 4024 */ 0x00000000UL, - 0x00074030UL, 0x00000000UL, - /* 4034 */ 0x00000000UL, - /* 4038 */ 0x00000000UL, - /* 403C */ 0x00000000UL, - /* 4040 */ 0x00000000UL, - /* 4044 */ 0x00004000UL, - /* 4048 */ 0x03000700UL, - 0x00014050UL, 0x00000000UL, - 0x0002405CUL, 0x00000000UL, - /* 4060 */ 0x00000000UL, - 0x000140A8UL, 0x00000007UL, - 0x000440BCUL, 0x00000000UL, - /* 40C0 */ 0x00000000UL, - /* 40C4 */ 0x00000000UL, - /* 40C8 */ 0x00000000UL, - 0x00044108UL, 0x00004CFFUL, - /* 410C */ 0x00000000UL, - /* 4110 */ 0x00004DFFUL, - /* 4114 */ 0x00000000UL, - 0x1001C020UL, 0x0007F800UL, - 0x3001C020UL, 0x012801FEUL, - 0x0009C024UL, 0x00001300UL, - /* C028 */ 0x03B380ECUL, - /* C02C */ 0x51407543UL, - /* C030 */ 0xF8000FA0UL, - /* C034 */ 0x00004000UL, - /* C038 */ 0x0007AAA8UL, - /* C03C */ 0x00000000UL, - /* C040 */ 0x00000000UL, - /* C044 */ 0x00000000UL, - 0x0010C054UL, 0x00302151UL, - /* C058 */ 0xE6110012UL, - /* C05C */ 0x00000036UL, - /* C060 */ 0x100F0E0AUL, - /* C064 */ 0x00000011UL, - /* C068 */ 0x0002C688UL, - /* C06C */ 0x00000520UL, - /* C070 */ 0x000010BAUL, - /* C074 */ 0x00200400UL, - /* C078 */ 0x00801804UL, - /* C07C */ 0x01203C0BUL, - /* C080 */ 0x02107C18UL, - /* C084 */ 0x06E0FC2FUL, - /* C088 */ 0x0000007FUL, - /* C08C */ 0x00000000UL, - /* C090 */ 0x00000000UL, - 0x0005C0A8UL, 0x15724BBDUL, - /* C0AC */ 0x0518A311UL, - /* C0B0 */ 0x76543210UL, - /* C0B4 */ 0x00000A98UL, - /* C0B8 */ 0x00000000UL, - 0x0004C0CCUL, 0x00000001UL, - /* C0D0 */ 0x00000000UL, - /* C0D4 */ 0x000A0001UL, - /* C0D8 */ 0x00280001UL, - 0x01010008UL, 0x00000744UL, - 0x01010018UL, 0x00000000UL, - 0x01010020UL, 0x0000A001UL, - 0x01254040UL, 0x70400000UL, - /* 4044 */ 0x00000000UL, - /* 4048 */ 0x00000010UL, - /* 404C */ 0x04000000UL, - /* 4050 */ 0x0082C00FUL, - /* 4054 */ 0x20000000UL, - /* 4058 */ 0x00000000UL, - /* 405C */ 0x03000000UL, - /* 4060 */ 0x20000000UL, - /* 4064 */ 0x00000000UL, - /* 4068 */ 0x00F804B9UL, - /* 406C */ 0x00000C40UL, - /* 4070 */ 0x00000008UL, - /* 4074 */ 0x00140012UL, - /* 4078 */ 0x0000B16FUL, - /* 407C */ 0x00000000UL, - /* 4080 */ 0x00000E7CUL, - /* 4084 */ 0x00000000UL, - /* 4088 */ 0x002A03F1UL, - /* 408C */ 0x62040000UL, - /* 4090 */ 0x00000000UL, - /* 4094 */ 0x22140A04UL, - /* 4098 */ 0x4F4A4132UL, - /* 409C */ 0x00000000UL, - /* 40A0 */ 0x00000000UL, - /* 40A4 */ 0x00000000UL, - /* 40A8 */ 0x00000000UL, - /* 40AC */ 0x00000000UL, - /* 40B0 */ 0x00000000UL, - /* 40B4 */ 0x00000000UL, - /* 40B8 */ 0x00000000UL, - /* 40BC */ 0x00000000UL, - /* 40C0 */ 0x00000000UL, - /* 40C4 */ 0x00000000UL, - /* 40C8 */ 0x00000000UL, - /* 40CC */ 0x00000000UL, - /* 40D0 */ 0x00000000UL, - 0x010140E0UL, 0x00000200UL, - 0x01024110UL, 0x00051E33UL, - /* 4114 */ 0x00000000UL, - 0x010E411CUL, 0x8C416000UL, - /* 4120 */ 0x00000000UL, - /* 4124 */ 0x078304FFUL, - /* 4128 */ 0x3AC81388UL, - /* 412C */ 0x0C6606FFUL, - /* 4130 */ 0x078304FFUL, - /* 4134 */ 0x03FF1388UL, - /* 4138 */ 0xF00A20BCUL, - /* 413C */ 0x005160EBUL, - /* 4140 */ 0x40A46503UL, - /* 4144 */ 0x55F68D00UL, - /* 4148 */ 0x42A832A4UL, - /* 414C */ 0x00403B89UL, - /* 4150 */ 0x800003C0UL, - 0x01024158UL, 0x00000000UL, - /* 415C */ 0x0000FDFFUL, - 0x010D4164UL, 0x0000010CUL, - /* 4168 */ 0x00FA53E8UL, - /* 416C */ 0x40000000UL, - /* 4170 */ 0x00000000UL, - /* 4174 */ 0x00000000UL, - /* 4178 */ 0x00000000UL, - /* 417C */ 0x00000000UL, - /* 4180 */ 0x00000000UL, - /* 4184 */ 0x00000101UL, - /* 4188 */ 0x00000000UL, - /* 418C */ 0x00000000UL, - /* 4190 */ 0x00000000UL, - /* 4194 */ 0x00000000UL, - 0x010241A4UL, 0x00000000UL, - /* 41A8 */ 0x00000000UL, - 0x010241B0UL, 0x00000000UL, - /* 41B4 */ 0xC03795E0UL, - 0x010341BCUL, 0x00000000UL, - /* 41C0 */ 0x003C0000UL, - /* 41C4 */ 0x00069069UL, - 0x010341D0UL, 0x55555555UL, - /* 41D4 */ 0x806E01E6UL, - /* 41D8 */ 0x00AA0006UL, - 0x011641E0UL, 0x00000000UL, - /* 41E4 */ 0x30DF0C02UL, - /* 41E8 */ 0x00319E2EUL, - /* 41EC */ 0x00161801UL, - /* 41F0 */ 0x0002939DUL, - /* 41F4 */ 0x0DF03A13UL, - /* 41F8 */ 0x04687FA9UL, - /* 41FC */ 0x2CE524B3UL, - /* 4200 */ 0x30DF0C02UL, - /* 4204 */ 0x00319E2EUL, - /* 4208 */ 0x00161801UL, - /* 420C */ 0x0002939DUL, - /* 4210 */ 0x0DF03A13UL, - /* 4214 */ 0x04687FA9UL, - /* 4218 */ 0x2CE524B3UL, - /* 421C */ 0x80000000UL, - /* 4220 */ 0x00000000UL, - /* 4224 */ 0x00000040UL, - /* 4228 */ 0x00000000UL, - /* 422C */ 0x40001860UL, - /* 4230 */ 0x00000000UL, - /* 4234 */ 0x00000000UL, - 0x0101423CUL, 0x00000000UL, - 0x01034244UL, 0x00000014UL, - /* 4248 */ 0x00000000UL, - /* 424C */ 0x04050008UL, - 0x01014268UL, 0x00000000UL, - 0x01024280UL, 0x00000000UL, - /* 4284 */ 0x00000081UL, - 0x01054298UL, 0x0200003FUL, - /* 429C */ 0x0000FFFFUL, - /* 42A0 */ 0x0000FFFFUL, - /* 42A4 */ 0x000003FFUL, - /* 42A8 */ 0x0000FFFFUL, - 0x010142B4UL, 0x00000000UL, - 0x010A4330UL, 0x01200040UL, - /* 4334 */ 0x000000A0UL, - /* 4338 */ 0x01005008UL, - /* 433C */ 0x1F1F1F1FUL, - /* 4340 */ 0x1B1F1F1FUL, - /* 4344 */ 0x11131518UL, - /* 4348 */ 0x0C0D0E10UL, - /* 434C */ 0x2F87C145UL, - /* 4350 */ 0x00000000UL, - /* 4354 */ 0x00000000UL, - 0x01018010UL, 0x00000003UL, - 0x01028038UL, 0x001039C3UL, - /* 803C */ 0x00000001UL, - 0x0103809CUL, 0x00000000UL, - /* 80A0 */ 0x00037870UL, - /* 80A4 */ 0x0000C0D5UL, - 0x110180A8UL, 0x000001F0UL, - 0x310180A8UL, 0x01CB4205UL, - 0x110180ACUL, 0x000001F0UL, - 0x310180ACUL, 0x008D2205UL, - 0x010280B0UL, 0x02000300UL, - /* 80B4 */ 0x01000037UL, - 0x0201009CUL, 0x04000C00UL, - 0x020300D8UL, 0xAA400005UL, - /* 00DC */ 0x00000188UL, - /* 00E0 */ 0x000000C0UL, - 0x120100ECUL, 0x00000FE0UL, - 0x320100ECUL, 0x1151200CUL, - 0x020100F0UL, 0x0000012BUL, - 0x12010110UL, 0x000FFF00UL, - 0x32010110UL, 0x31000002UL, - 0x12010150UL, 0x0001C000UL, - 0x32010150UL, 0x00A200C1UL, - 0x02010174UL, 0x019BF169UL, - 0x12010178UL, 0x001C0000UL, - 0x32010178UL, 0x1FE00410UL, - 0x12010180UL, 0x00000779UL, - 0x32010180UL, 0x00000002UL, - 0x02020184UL, 0x00000000UL, - /* 0188 */ 0x00000050UL, - 0x03014FFCUL, (uint32_t) &phyInfo, - 0xFFFFFFFFUL, -}; - -const RAIL_ChannelConfigEntry_t Protocol_Configuration_channels[] = { - { - .phyConfigDeltaAdd = NULL, - .baseFrequency = 2450000000, - .channelSpacing = 1000000, - .physicalChannelOffset = 0, - .channelNumberStart = 0, - .channelNumberEnd = 20, - .maxPower = RAIL_TX_POWER_MAX, - .attr = &channelConfigEntryAttr, -#ifdef RADIO_CONFIG_ENABLE_CONC_PHY - .entryType = 0, -#endif -#ifdef RADIO_CONFIG_ENABLE_STACK_INFO - .stackInfo = NULL, -#endif - }, -}; - -const RAIL_ChannelConfig_t Protocol_Configuration_channelConfig = { - .phyConfigBase = Protocol_Configuration_modemConfigBase, - .phyConfigDeltaSubtract = NULL, - .configs = Protocol_Configuration_channels, - .length = 1U, - .signature = 0UL, -}; - -const RAIL_ChannelConfig_t *channelConfigs[] = { - &Protocol_Configuration_channelConfig, - NULL -}; - - -#ifdef RADIO_CONFIG_ENABLE_STACK_INFO -#endif // RADIO_CONFIG_ENABLE_STACK_INFO - -uint32_t protocolAccelerationBuffer[435]; +/***************************************************************************//** + * @brief RAIL Configuration + * @details + * WARNING: Auto-Generated Radio Config - DO NOT EDIT + * Radio Configurator Version: 2022.5.2 + * RAIL Adapter Version: 2.4.19 + * RAIL Compatibility: 2.x + ******************************************************************************* + * # License + * Copyright 2019 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * SPDX-License-Identifier: Zlib + * + * The licensor of this software is Silicon Laboratories Inc. + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. + * + ******************************************************************************/ +#include "em_device.h" +#include "rail_config.h" + +uint32_t RAILCb_CalcSymbolRate(RAIL_Handle_t railHandle) +{ + (void) railHandle; + return 0U; +} + +uint32_t RAILCb_CalcBitRate(RAIL_Handle_t railHandle) +{ + (void) railHandle; + return 0U; +} + +void RAILCb_ConfigFrameTypeLength(RAIL_Handle_t railHandle, + const RAIL_FrameType_t *frameType) +{ + (void) railHandle; + (void) frameType; +} + +static const uint8_t irCalConfig[] = { + 25, 63, 1, 6, 4, 16, 1, 0, 0, 1, 1, 6, 0, 16, 39, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0 +}; + +static const int32_t timingConfig[] = { + 8000, 8000, 0 +}; + +static const uint8_t hfxoRetimingConfigEntries[] = { + 2, 0, 0, 0, 0xc0, 0x17, 0x53, 0x02, 6, 20, 0, 0, 0x80, 0x2f, 0xa6, 0x04, 5, 56, 0, 0, 0xa0, 0x08, 0, 0, 0, 0, 0x58, 0x09, 1, 4, 7, 6, 0x10, 0x0a, 1, 4, 7, 7, 0xc8, 0x0a, 0, 4, 8, 7, 0x80, 0x0b, 0, 4, 8, 8, 0x38, 0x0c, 0, 4, 9, 8, 0x61, 0x08, 0, 0, 0, 0, 0x8a, 0x08, 0, 0, 0, 0, 0xc7, 0x09, 1, 4, 4, 3, 0x2c, 0x0b, 1, 4, 4, 4, 0x92, 0x0c, 1, 4, 5, 4 +}; + +static RAIL_ChannelConfigEntryAttr_t channelConfigEntryAttr = { +#if RAIL_SUPPORTS_OFDM_PA + { +#ifdef RADIO_CONFIG_ENABLE_IRCAL_MULTIPLE_RF_PATHS + { 0xFFFFFFFFUL, 0xFFFFFFFFUL, }, +#else + { 0xFFFFFFFFUL }, +#endif // RADIO_CONFIG_ENABLE_IRCAL_MULTIPLE_RF_PATHS + { 0xFFFFFFFFUL, 0xFFFFFFFFUL } + } +#else // RAIL_SUPPORTS_OFDM_PA +#ifdef RADIO_CONFIG_ENABLE_IRCAL_MULTIPLE_RF_PATHS + { 0xFFFFFFFFUL, 0xFFFFFFFFUL, }, +#else + { 0xFFFFFFFFUL }, +#endif // RADIO_CONFIG_ENABLE_IRCAL_MULTIPLE_RF_PATHS +#endif // RAIL_SUPPORTS_OFDM_PA +}; + +static const uint32_t phyInfo[] = { + 13UL, + 0x00444444UL, // 68.26666666666667 + (uint32_t) NULL, + (uint32_t) irCalConfig, + (uint32_t) timingConfig, + 0x00000000UL, + 0UL, + 36000000UL, + 1000000UL, + 0x00F80101UL, + 0x021039C3UL, + (uint32_t) NULL, + (uint32_t) hfxoRetimingConfigEntries, + (uint32_t) NULL, + 0UL, + 0UL, + 1000002UL, + (uint32_t) NULL, + (uint32_t) NULL, +}; + +const uint32_t Protocol_Configuration_modemConfigBase[] = { + 0x0002400CUL, 0x00000000UL, + /* 4010 */ 0x00004000UL, + 0x00024020UL, 0x0000000FUL, + /* 4024 */ 0x00000000UL, + 0x00074030UL, 0x00000000UL, + /* 4034 */ 0x00000000UL, + /* 4038 */ 0x00000000UL, + /* 403C */ 0x00000000UL, + /* 4040 */ 0x00000000UL, + /* 4044 */ 0x00004000UL, + /* 4048 */ 0x03000700UL, + 0x00014050UL, 0x00000000UL, + 0x0002405CUL, 0x00000000UL, + /* 4060 */ 0x00000000UL, + 0x000140A8UL, 0x00000007UL, + 0x000440BCUL, 0x00000000UL, + /* 40C0 */ 0x00000000UL, + /* 40C4 */ 0x00000000UL, + /* 40C8 */ 0x00000000UL, + 0x00044108UL, 0x00004CFFUL, + /* 410C */ 0x00000000UL, + /* 4110 */ 0x00004DFFUL, + /* 4114 */ 0x00000000UL, + 0x1001C020UL, 0x0007F800UL, + 0x3001C020UL, 0x012801FEUL, + 0x0009C024UL, 0x00001300UL, + /* C028 */ 0x03B380ECUL, + /* C02C */ 0x51407543UL, + /* C030 */ 0xF8000FA0UL, + /* C034 */ 0x00004000UL, + /* C038 */ 0x0007AAA8UL, + /* C03C */ 0x00000000UL, + /* C040 */ 0x00000000UL, + /* C044 */ 0x00000000UL, + 0x0010C054UL, 0x00302151UL, + /* C058 */ 0xE6110012UL, + /* C05C */ 0x00000036UL, + /* C060 */ 0x100F0E0AUL, + /* C064 */ 0x00000011UL, + /* C068 */ 0x0002C688UL, + /* C06C */ 0x00000520UL, + /* C070 */ 0x000010BAUL, + /* C074 */ 0x00200400UL, + /* C078 */ 0x00801804UL, + /* C07C */ 0x01203C0BUL, + /* C080 */ 0x02107C18UL, + /* C084 */ 0x06E0FC2FUL, + /* C088 */ 0x0000007FUL, + /* C08C */ 0x00000000UL, + /* C090 */ 0x00000000UL, + 0x0005C0A8UL, 0x15724BBDUL, + /* C0AC */ 0x0518A311UL, + /* C0B0 */ 0x76543210UL, + /* C0B4 */ 0x00000A98UL, + /* C0B8 */ 0x00000000UL, + 0x0004C0CCUL, 0x00000001UL, + /* C0D0 */ 0x00000000UL, + /* C0D4 */ 0x000A0001UL, + /* C0D8 */ 0x00280001UL, + 0x01010008UL, 0x00000744UL, + 0x01010018UL, 0x00000000UL, + 0x01010020UL, 0x0000A001UL, + 0x01254040UL, 0x70400000UL, + /* 4044 */ 0x00000000UL, + /* 4048 */ 0x00000010UL, + /* 404C */ 0x04000000UL, + /* 4050 */ 0x0082C00FUL, + /* 4054 */ 0x20000000UL, + /* 4058 */ 0x00000000UL, + /* 405C */ 0x03000000UL, + /* 4060 */ 0x20000000UL, + /* 4064 */ 0x00000000UL, + /* 4068 */ 0x00F804B9UL, + /* 406C */ 0x00000C40UL, + /* 4070 */ 0x00000008UL, + /* 4074 */ 0x00140012UL, + /* 4078 */ 0x0000B16FUL, + /* 407C */ 0x00000000UL, + /* 4080 */ 0x00000E7CUL, + /* 4084 */ 0x00000000UL, + /* 4088 */ 0x002A03F1UL, + /* 408C */ 0x62040000UL, + /* 4090 */ 0x00000000UL, + /* 4094 */ 0x22140A04UL, + /* 4098 */ 0x4F4A4132UL, + /* 409C */ 0x00000000UL, + /* 40A0 */ 0x00000000UL, + /* 40A4 */ 0x00000000UL, + /* 40A8 */ 0x00000000UL, + /* 40AC */ 0x00000000UL, + /* 40B0 */ 0x00000000UL, + /* 40B4 */ 0x00000000UL, + /* 40B8 */ 0x00000000UL, + /* 40BC */ 0x00000000UL, + /* 40C0 */ 0x00000000UL, + /* 40C4 */ 0x00000000UL, + /* 40C8 */ 0x00000000UL, + /* 40CC */ 0x00000000UL, + /* 40D0 */ 0x00000000UL, + 0x010140E0UL, 0x00000200UL, + 0x01024110UL, 0x00051E33UL, + /* 4114 */ 0x00000000UL, + 0x010E411CUL, 0x8C416000UL, + /* 4120 */ 0x00000000UL, + /* 4124 */ 0x078304FFUL, + /* 4128 */ 0x3AC81388UL, + /* 412C */ 0x0C6606FFUL, + /* 4130 */ 0x078304FFUL, + /* 4134 */ 0x03FF1388UL, + /* 4138 */ 0xF00A20BCUL, + /* 413C */ 0x005160EBUL, + /* 4140 */ 0x40A46503UL, + /* 4144 */ 0x55F68D00UL, + /* 4148 */ 0x42A832A4UL, + /* 414C */ 0x00403B89UL, + /* 4150 */ 0x800003C0UL, + 0x01024158UL, 0x00000000UL, + /* 415C */ 0x0000FDFFUL, + 0x010D4164UL, 0x0000010CUL, + /* 4168 */ 0x00FA53E8UL, + /* 416C */ 0x40000000UL, + /* 4170 */ 0x00000000UL, + /* 4174 */ 0x00000000UL, + /* 4178 */ 0x00000000UL, + /* 417C */ 0x00000000UL, + /* 4180 */ 0x00000000UL, + /* 4184 */ 0x00000101UL, + /* 4188 */ 0x00000000UL, + /* 418C */ 0x00000000UL, + /* 4190 */ 0x00000000UL, + /* 4194 */ 0x00000000UL, + 0x010241A4UL, 0x00000000UL, + /* 41A8 */ 0x00000000UL, + 0x010241B0UL, 0x00000000UL, + /* 41B4 */ 0xC03795E0UL, + 0x010341BCUL, 0x00000000UL, + /* 41C0 */ 0x003C0000UL, + /* 41C4 */ 0x00069069UL, + 0x010341D0UL, 0x55555555UL, + /* 41D4 */ 0x806E01E6UL, + /* 41D8 */ 0x00AA0006UL, + 0x011641E0UL, 0x00000000UL, + /* 41E4 */ 0x30DF0C02UL, + /* 41E8 */ 0x00319E2EUL, + /* 41EC */ 0x00161801UL, + /* 41F0 */ 0x0002939DUL, + /* 41F4 */ 0x0DF03A13UL, + /* 41F8 */ 0x04687FA9UL, + /* 41FC */ 0x2CE524B3UL, + /* 4200 */ 0x30DF0C02UL, + /* 4204 */ 0x00319E2EUL, + /* 4208 */ 0x00161801UL, + /* 420C */ 0x0002939DUL, + /* 4210 */ 0x0DF03A13UL, + /* 4214 */ 0x04687FA9UL, + /* 4218 */ 0x2CE524B3UL, + /* 421C */ 0x80000000UL, + /* 4220 */ 0x00000000UL, + /* 4224 */ 0x00000040UL, + /* 4228 */ 0x00000000UL, + /* 422C */ 0x40001860UL, + /* 4230 */ 0x00000000UL, + /* 4234 */ 0x00000000UL, + 0x0101423CUL, 0x00000000UL, + 0x01034244UL, 0x00000014UL, + /* 4248 */ 0x00000000UL, + /* 424C */ 0x04050008UL, + 0x01014268UL, 0x00000000UL, + 0x01024280UL, 0x00000000UL, + /* 4284 */ 0x00000081UL, + 0x01054298UL, 0x0200003FUL, + /* 429C */ 0x0000FFFFUL, + /* 42A0 */ 0x0000FFFFUL, + /* 42A4 */ 0x000003FFUL, + /* 42A8 */ 0x0000FFFFUL, + 0x010142B4UL, 0x00000000UL, + 0x010A4330UL, 0x01200040UL, + /* 4334 */ 0x000000A0UL, + /* 4338 */ 0x01005008UL, + /* 433C */ 0x1F1F1F1FUL, + /* 4340 */ 0x1B1F1F1FUL, + /* 4344 */ 0x11131518UL, + /* 4348 */ 0x0C0D0E10UL, + /* 434C */ 0x2F87C145UL, + /* 4350 */ 0x00000000UL, + /* 4354 */ 0x00000000UL, + 0x01018010UL, 0x00000003UL, + 0x01028038UL, 0x001039C3UL, + /* 803C */ 0x00000001UL, + 0x0103809CUL, 0x00000000UL, + /* 80A0 */ 0x00037870UL, + /* 80A4 */ 0x0000C0D5UL, + 0x110180A8UL, 0x000001F0UL, + 0x310180A8UL, 0x01CB4205UL, + 0x110180ACUL, 0x000001F0UL, + 0x310180ACUL, 0x008D2205UL, + 0x010280B0UL, 0x02000300UL, + /* 80B4 */ 0x01000037UL, + 0x0201009CUL, 0x04000C00UL, + 0x020300D8UL, 0xAA400005UL, + /* 00DC */ 0x00000188UL, + /* 00E0 */ 0x000000C0UL, + 0x120100ECUL, 0x00000FE0UL, + 0x320100ECUL, 0x1151200CUL, + 0x020100F0UL, 0x0000012BUL, + 0x12010110UL, 0x000FFF00UL, + 0x32010110UL, 0x31000002UL, + 0x12010150UL, 0x0001C000UL, + 0x32010150UL, 0x00A200C1UL, + 0x02010174UL, 0x019BF169UL, + 0x12010178UL, 0x001C0000UL, + 0x32010178UL, 0x1FE00410UL, + 0x12010180UL, 0x00000779UL, + 0x32010180UL, 0x00000002UL, + 0x02020184UL, 0x00000000UL, + /* 0188 */ 0x00000050UL, + 0x03014FFCUL, (uint32_t) &phyInfo, + 0xFFFFFFFFUL, +}; + +const RAIL_ChannelConfigEntry_t Protocol_Configuration_channels[] = { + { + .phyConfigDeltaAdd = NULL, + .baseFrequency = 2450000000, + .channelSpacing = 1000000, + .physicalChannelOffset = 0, + .channelNumberStart = 0, + .channelNumberEnd = 20, + .maxPower = RAIL_TX_POWER_MAX, + .attr = &channelConfigEntryAttr, +#ifdef RADIO_CONFIG_ENABLE_CONC_PHY + .entryType = 0, +#endif +#ifdef RADIO_CONFIG_ENABLE_STACK_INFO + .stackInfo = NULL, +#endif + }, +}; + +const RAIL_ChannelConfig_t Protocol_Configuration_channelConfig = { + .phyConfigBase = Protocol_Configuration_modemConfigBase, + .phyConfigDeltaSubtract = NULL, + .configs = Protocol_Configuration_channels, + .length = 1U, + .signature = 0UL, +}; + +const RAIL_ChannelConfig_t *channelConfigs[] = { + &Protocol_Configuration_channelConfig, + NULL +}; + + +#ifdef RADIO_CONFIG_ENABLE_STACK_INFO +#endif // RADIO_CONFIG_ENABLE_STACK_INFO + +uint32_t protocolAccelerationBuffer[435]; diff --git a/samples/simple_txrx/src/rail-configs/xg24_dk2601b/rail_config.h b/samples/simple_txrx/src/rail-configs/xg24_dk2601b/rail_config.h index df21122..b0b482b 100644 --- a/samples/simple_txrx/src/rail-configs/xg24_dk2601b/rail_config.h +++ b/samples/simple_txrx/src/rail-configs/xg24_dk2601b/rail_config.h @@ -1,52 +1,52 @@ -/***************************************************************************//** - * @brief RAIL Configuration - * @details - * WARNING: Auto-Generated Radio Config Header - DO NOT EDIT - * Radio Configurator Version: 2022.5.2 - * RAIL Adapter Version: 2.4.19 - * RAIL Compatibility: 2.x - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ - -#ifndef __RAIL_CONFIG_H__ -#define __RAIL_CONFIG_H__ - -#include -#include "rail_types.h" - -#define PROTOCOL_ACCELERATION_BUFFER protocolAccelerationBuffer -extern uint32_t protocolAccelerationBuffer[]; -#define RADIO_CONFIG_XTAL_FREQUENCY 39000000UL - -#define RAIL0_CHANNEL_GROUP_1_PHY_STUDIO_2450M_2GFSK_1MBPS_500K -#define RAIL0_CHANNEL_GROUP_1_PROFILE_BASE -extern const RAIL_ChannelConfig_t *channelConfigs[]; - -#ifdef RADIO_CONFIG_ENABLE_STACK_INFO -#endif // RADIO_CONFIG_ENABLE_STACK_INFO - -#endif // __RAIL_CONFIG_H__ +/***************************************************************************//** + * @brief RAIL Configuration + * @details + * WARNING: Auto-Generated Radio Config Header - DO NOT EDIT + * Radio Configurator Version: 2022.5.2 + * RAIL Adapter Version: 2.4.19 + * RAIL Compatibility: 2.x + ******************************************************************************* + * # License + * Copyright 2019 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * SPDX-License-Identifier: Zlib + * + * The licensor of this software is Silicon Laboratories Inc. + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. + * + ******************************************************************************/ + +#ifndef __RAIL_CONFIG_H__ +#define __RAIL_CONFIG_H__ + +#include +#include "rail_types.h" + +#define PROTOCOL_ACCELERATION_BUFFER protocolAccelerationBuffer +extern uint32_t protocolAccelerationBuffer[]; +#define RADIO_CONFIG_XTAL_FREQUENCY 39000000UL + +#define RAIL0_CHANNEL_GROUP_1_PHY_STUDIO_2450M_2GFSK_1MBPS_500K +#define RAIL0_CHANNEL_GROUP_1_PROFILE_BASE +extern const RAIL_ChannelConfig_t *channelConfigs[]; + +#ifdef RADIO_CONFIG_ENABLE_STACK_INFO +#endif // RADIO_CONFIG_ENABLE_STACK_INFO + +#endif // __RAIL_CONFIG_H__