1- /* SPDX-License-Identifier: Apache-2.0
2- *
1+ /*
32 * Copyright (c) 2021 Florin Stancu
43 * Copyright (c) 2021 Jason Kridner, BeagleBoard.org Foundation
54 * Copyright (c) 2024 Ayush Singh <[email protected] > 65 *
6+ * SPDX-License-Identifier: Apache-2.0
77 */
88
99/*
@@ -33,14 +33,13 @@ static int board_antenna_init(const struct device *dev);
3333static void board_cc13xx_rf_callback (RF_Handle client , RF_GlobalEvent events , void * arg );
3434
3535const RFCC26XX_HWAttrsV2 RFCC26XX_hwAttrs = {
36- .hwiPriority = INT_PRI_LEVEL7 ,
37- .swiPriority = 0 ,
36+ .hwiPriority = INT_PRI_LEVEL7 ,
37+ .swiPriority = 0 ,
3838 .xoscHfAlwaysNeeded = true,
3939 /* RF driver callback for custom antenna switching */
4040 .globalCallback = board_cc13xx_rf_callback ,
4141 /* Subscribe to events */
42- .globalEventMask = (RF_GlobalEventRadioSetup |
43- RF_GlobalEventRadioPowerDown ),
42+ .globalEventMask = (RF_GlobalEventRadioSetup | RF_GlobalEventRadioPowerDown ),
4443};
4544
4645PINCTRL_DT_INST_DEFINE (0 );
@@ -73,7 +72,7 @@ static int board_antenna_init(const struct device *dev)
7372 */
7473static void board_cc13xx_rf_callback (RF_Handle client , RF_GlobalEvent events , void * arg )
7574{
76- bool sub1GHz = false;
75+ bool sub1GHz = false;
7776 uint8_t loDivider = 0 ;
7877 int i ;
7978
@@ -84,17 +83,17 @@ static void board_cc13xx_rf_callback(RF_Handle client, RF_GlobalEvent events, vo
8483
8584 if (events & RF_GlobalEventRadioSetup ) {
8685 /* Decode the current PA configuration. */
87- RF_TxPowerTable_PAType paType = ( RF_TxPowerTable_PAType )
88- RF_getTxPower (client ).paType ;
86+ RF_TxPowerTable_PAType paType =
87+ ( RF_TxPowerTable_PAType ) RF_getTxPower (client ).paType ;
8988 /* Decode the generic argument as a setup command. */
9089 RF_RadioSetup * setupCommand = (RF_RadioSetup * )arg ;
9190
9291 switch (setupCommand -> common .commandNo ) {
93- case ( CMD_RADIO_SETUP ) :
94- case ( CMD_BLE5_RADIO_SETUP ) :
92+ case CMD_RADIO_SETUP :
93+ case CMD_BLE5_RADIO_SETUP :
9594 loDivider = RF_LODIVIDER_MASK & setupCommand -> common .loDivider ;
9695 break ;
97- case ( CMD_PROP_RADIO_DIV_SETUP ) :
96+ case CMD_PROP_RADIO_DIV_SETUP :
9897 loDivider = RF_LODIVIDER_MASK & setupCommand -> prop_div .loDivider ;
9998 break ;
10099 default :
0 commit comments