Skip to content

Commit

Permalink
samples: Remove C99 comments in generated files
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jerome-pouiller committed Oct 14, 2024
1 parent aa034e2 commit 6e3affe
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions samples/simple_txrx/src/rail-configs/sltb010a/rail_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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];
4 changes: 2 additions & 2 deletions samples/simple_txrx/src/rail-configs/sltb010a/rail_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 6 additions & 6 deletions samples/simple_txrx/src/rail-configs/xg24_dk2601b/rail_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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];
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6e3affe

Please sign in to comment.