From 6e3affef96b7c9c00167d057cd2e804e4a729068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Pouiller?= Date: Thu, 10 Oct 2024 09:19:25 +0200 Subject: [PATCH] samples: Remove C99 comments in generated files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While we don't want to modify generated files, C99 comments generated hard failures in the Zephyr CI. Until the issue is fixed in upstream, we edit generated files to remove C99 comments. Signed-off-by: Jérôme Pouiller --- .../src/rail-configs/sltb010a/rail_config.c | 8 ++++---- .../src/rail-configs/sltb010a/rail_config.h | 4 ++-- .../src/rail-configs/xg24_dk2601b/rail_config.c | 12 ++++++------ .../src/rail-configs/xg24_dk2601b/rail_config.h | 4 ++-- 4 files changed, 14 insertions(+), 14 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 4401aa1..c6fb962 100644 --- a/samples/simple_txrx/src/rail-configs/sltb010a/rail_config.c +++ b/samples/simple_txrx/src/rail-configs/sltb010a/rail_config.c @@ -68,14 +68,14 @@ static const uint8_t hfxoRetimingConfigEntries[] = { static RAIL_ChannelConfigEntryAttr_t channelConfigEntryAttr = { #if RAIL_SUPPORTS_OFDM_PA {{0xFFFFFFFFUL}, {0xFFFFFFFFUL, 0xFFFFFFFFUL}} -#else // RAIL_SUPPORTS_OFDM_PA +#else {0xFFFFFFFFUL}, -#endif // RAIL_SUPPORTS_OFDM_PA +#endif }; static const uint32_t phyInfo[] = { 13UL, - 0x00924924UL, // 146.28571428571428 + 0x00924924UL, /* 146.28571428571428 */ (uint32_t)NULL, (uint32_t)irCalConfig, (uint32_t)timingConfig, @@ -328,6 +328,6 @@ const RAIL_ChannelConfig_t Protocol_Configuration_channelConfig = { const RAIL_ChannelConfig_t *channelConfigs[] = {&Protocol_Configuration_channelConfig, NULL}; #ifdef RADIO_CONFIG_ENABLE_STACK_INFO -#endif // RADIO_CONFIG_ENABLE_STACK_INFO +#endif 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 71e0736..6a2d2cb 100644 --- a/samples/simple_txrx/src/rail-configs/sltb010a/rail_config.h +++ b/samples/simple_txrx/src/rail-configs/sltb010a/rail_config.h @@ -47,6 +47,6 @@ extern uint32_t protocolAccelerationBuffer[]; extern const RAIL_ChannelConfig_t *channelConfigs[]; #ifdef RADIO_CONFIG_ENABLE_STACK_INFO -#endif // RADIO_CONFIG_ENABLE_STACK_INFO +#endif -#endif // __RAIL_CONFIG_H__ +#endif 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 a54452e..283f361 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 @@ -72,21 +72,21 @@ static RAIL_ChannelConfigEntryAttr_t channelConfigEntryAttr = { { 0xFFFFFFFFUL, 0xFFFFFFFFUL, }, #else { 0xFFFFFFFFUL }, -#endif // RADIO_CONFIG_ENABLE_IRCAL_MULTIPLE_RF_PATHS +#endif { 0xFFFFFFFFUL, 0xFFFFFFFFUL } } -#else // RAIL_SUPPORTS_OFDM_PA +#else #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 +#endif +#endif }; static const uint32_t phyInfo[] = { 13UL, - 0x00444444UL, // 68.26666666666667 + 0x00444444UL, /* 68.26666666666667 */ (uint32_t) NULL, (uint32_t) irCalConfig, (uint32_t) timingConfig, @@ -361,6 +361,6 @@ const RAIL_ChannelConfig_t *channelConfigs[] = { #ifdef RADIO_CONFIG_ENABLE_STACK_INFO -#endif // RADIO_CONFIG_ENABLE_STACK_INFO +#endif 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 b0b482b..5f0d5de 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 @@ -47,6 +47,6 @@ extern uint32_t protocolAccelerationBuffer[]; extern const RAIL_ChannelConfig_t *channelConfigs[]; #ifdef RADIO_CONFIG_ENABLE_STACK_INFO -#endif // RADIO_CONFIG_ENABLE_STACK_INFO +#endif -#endif // __RAIL_CONFIG_H__ +#endif