Skip to content

Commit 409cc46

Browse files
committed
boards: beagle: beagleconnect_freedom: Fix formatting
- Fix formatting in board_antenna.c by using the standard config in Zephyr. Signed-off-by: Ayush Singh <[email protected]>
1 parent ebd6b52 commit 409cc46

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

boards/beagle/beagleconnect_freedom/board_antenna.c

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@ static int board_antenna_init(const struct device *dev);
3333
static void board_cc13xx_rf_callback(RF_Handle client, RF_GlobalEvent events, void *arg);
3434

3535
const 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

4645
PINCTRL_DT_INST_DEFINE(0);
@@ -75,7 +74,7 @@ static int board_antenna_init(const struct device *dev)
7574
*/
7675
static void board_cc13xx_rf_callback(RF_Handle client, RF_GlobalEvent events, void *arg)
7776
{
78-
bool sub1GHz = false;
77+
bool sub1GHz = false;
7978
uint8_t loDivider = 0;
8079
int i;
8180

@@ -86,8 +85,8 @@ static void board_cc13xx_rf_callback(RF_Handle client, RF_GlobalEvent events, vo
8685

8786
if (events & RF_GlobalEventRadioSetup) {
8887
/* Decode the current PA configuration. */
89-
RF_TxPowerTable_PAType paType = (RF_TxPowerTable_PAType)
90-
RF_getTxPower(client).paType;
88+
RF_TxPowerTable_PAType paType =
89+
(RF_TxPowerTable_PAType)RF_getTxPower(client).paType;
9190
/* Decode the generic argument as a setup command. */
9291
RF_RadioSetup *setupCommand = (RF_RadioSetup *)arg;
9392

@@ -96,14 +95,16 @@ static void board_cc13xx_rf_callback(RF_Handle client, RF_GlobalEvent events, vo
9695
case (CMD_BLE5_RADIO_SETUP):
9796
loDivider = RF_LODIVIDER_MASK & setupCommand->common.loDivider;
9897
/* Sub-1GHz front-end. */
99-
if (loDivider != 0)
98+
if (loDivider != 0) {
10099
sub1GHz = true;
100+
}
101101
break;
102102
case (CMD_PROP_RADIO_DIV_SETUP):
103103
loDivider = RF_LODIVIDER_MASK & setupCommand->prop_div.loDivider;
104104
/* Sub-1GHz front-end. */
105-
if (loDivider != 0)
105+
if (loDivider != 0) {
106106
sub1GHz = true;
107+
}
107108
break;
108109
default:
109110
break;

0 commit comments

Comments
 (0)