From 02883a515e8a28a4184d8a3e63075aab795d6766 Mon Sep 17 00:00:00 2001 From: Kevin Gillespie Date: Fri, 11 Oct 2024 13:26:47 -0500 Subject: [PATCH 1/7] Defining bool_t as bool. --- Libraries/Cordio/platform/include/pal_types.h | 6 +++++- Libraries/Cordio/wsf/include/wsf_types.h | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Libraries/Cordio/platform/include/pal_types.h b/Libraries/Cordio/platform/include/pal_types.h index 7b876eaeb46..16427f85ebc 100644 --- a/Libraries/Cordio/platform/include/pal_types.h +++ b/Libraries/Cordio/platform/include/pal_types.h @@ -44,7 +44,11 @@ extern "C" { #include #ifndef bool_t - #define bool_t uint8_t + #define bool_t bool +#endif + +#ifndef bool +#define bool _Bool #endif #ifndef FALSE diff --git a/Libraries/Cordio/wsf/include/wsf_types.h b/Libraries/Cordio/wsf/include/wsf_types.h index 73a5ead76c8..6499b0f2000 100644 --- a/Libraries/Cordio/wsf/include/wsf_types.h +++ b/Libraries/Cordio/wsf/include/wsf_types.h @@ -44,11 +44,13 @@ extern "C" { #include #ifndef bool_t - #define bool_t uint8_t + #define bool_t bool #endif /* New library uses bool instead of bool_t */ +#ifndef bool #define bool _Bool +#endif #ifndef FALSE #define FALSE 0 From fdeb9c06c5385a1fbb37808de95a826c2a7a65fe Mon Sep 17 00:00:00 2001 From: Kevin Gillespie Date: Fri, 11 Oct 2024 13:27:29 -0500 Subject: [PATCH 2/7] Fixing build warning. --- Examples/MAX32655/Bluetooth/BLE5_ctr/main.c | 2 +- Examples/MAX32655/Bluetooth/BLE_FreeRTOS/stack_dats.c | 2 +- Examples/MAX32655/Bluetooth/BLE_HCI_DFU/BLT/main.c | 2 +- Examples/MAX32655/Bluetooth/BLE_datc/main.c | 2 +- Examples/MAX32655/Bluetooth/BLE_dats/main.c | 2 +- Examples/MAX32655/Bluetooth/BLE_fit/main.c | 2 +- Examples/MAX32655/Bluetooth/BLE_fit_FreeRTOS/bt_stack.c | 2 +- Examples/MAX32655/Bluetooth/BLE_mcs/main.c | 2 +- Examples/MAX32655/Bluetooth/BLE_otac/main.c | 2 +- Examples/MAX32655/Bluetooth/BLE_otas/main.c | 2 +- Examples/MAX32655/Bluetooth/RF_Test/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE5_ctr/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_FreeRTOS/stack_dats.c | 2 +- Examples/MAX32665/Bluetooth/BLE_LR_Central/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_LR_Peripheral/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_datc/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_dats/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_fit/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_mcs/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_otac/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_otas/main.c | 2 +- Examples/MAX32665/Bluetooth/RF_Test/main.c | 2 +- Examples/MAX32680/Bluetooth/BLE_dats/main.c | 2 +- Examples/MAX32690/Bluetooth/BLE5_ctr/main.c | 2 +- Examples/MAX32690/Bluetooth/BLE_FreeRTOS/stack_dats.c | 2 +- Examples/MAX32690/Bluetooth/BLE_datc/main.c | 2 +- Examples/MAX32690/Bluetooth/BLE_dats/main.c | 2 +- Examples/MAX32690/Bluetooth/BLE_fit/main.c | 2 +- Examples/MAX32690/Bluetooth/BLE_mcs/main.c | 2 +- Examples/MAX32690/Bluetooth/BLE_otac/main.c | 2 +- Examples/MAX32690/Bluetooth/BLE_otas/main.c | 2 +- Examples/MAX32690/Bluetooth/RF_Test/main.c | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Examples/MAX32655/Bluetooth/BLE5_ctr/main.c b/Examples/MAX32655/Bluetooth/BLE5_ctr/main.c index e2b71be0524..b6456f08139 100644 --- a/Examples/MAX32655/Bluetooth/BLE5_ctr/main.c +++ b/Examples/MAX32655/Bluetooth/BLE5_ctr/main.c @@ -76,7 +76,7 @@ static void mainLoadConfiguration(void) PalBbLoadCfg((PalBbCfg_t *)&mainBbRtCfg); LlGetDefaultRunTimeCfg(&mainLlRtCfg); PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); /* Set 5.0 requirements. */ mainLlRtCfg.btVer = BT_VER; diff --git a/Examples/MAX32655/Bluetooth/BLE_FreeRTOS/stack_dats.c b/Examples/MAX32655/Bluetooth/BLE_FreeRTOS/stack_dats.c index c38bc6e9f33..02411aae353 100644 --- a/Examples/MAX32655/Bluetooth/BLE_FreeRTOS/stack_dats.c +++ b/Examples/MAX32655/Bluetooth/BLE_FreeRTOS/stack_dats.c @@ -308,7 +308,7 @@ void bleStartup(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/BLE_HCI_DFU/BLT/main.c b/Examples/MAX32655/Bluetooth/BLE_HCI_DFU/BLT/main.c index 97389b08e6d..697cc8e490d 100644 --- a/Examples/MAX32655/Bluetooth/BLE_HCI_DFU/BLT/main.c +++ b/Examples/MAX32655/Bluetooth/BLE_HCI_DFU/BLT/main.c @@ -83,7 +83,7 @@ static void mainLoadConfiguration(void) PalBbLoadCfg((PalBbCfg_t *)&mainBbRtCfg); LlGetDefaultRunTimeCfg(&mainLlRtCfg); PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); /* Set 5.0 requirements. */ mainLlRtCfg.btVer = BT_VER; diff --git a/Examples/MAX32655/Bluetooth/BLE_datc/main.c b/Examples/MAX32655/Bluetooth/BLE_datc/main.c index 79d4df10763..abcff66030e 100644 --- a/Examples/MAX32655/Bluetooth/BLE_datc/main.c +++ b/Examples/MAX32655/Bluetooth/BLE_datc/main.c @@ -189,7 +189,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/BLE_dats/main.c b/Examples/MAX32655/Bluetooth/BLE_dats/main.c index 7e3cf7c7d05..37b313ff3bd 100644 --- a/Examples/MAX32655/Bluetooth/BLE_dats/main.c +++ b/Examples/MAX32655/Bluetooth/BLE_dats/main.c @@ -189,7 +189,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/BLE_fit/main.c b/Examples/MAX32655/Bluetooth/BLE_fit/main.c index d583cbf6d79..9e873e6bdf5 100644 --- a/Examples/MAX32655/Bluetooth/BLE_fit/main.c +++ b/Examples/MAX32655/Bluetooth/BLE_fit/main.c @@ -175,7 +175,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/BLE_fit_FreeRTOS/bt_stack.c b/Examples/MAX32655/Bluetooth/BLE_fit_FreeRTOS/bt_stack.c index cd11150b38e..c301950d87f 100644 --- a/Examples/MAX32655/Bluetooth/BLE_fit_FreeRTOS/bt_stack.c +++ b/Examples/MAX32655/Bluetooth/BLE_fit_FreeRTOS/bt_stack.c @@ -308,7 +308,7 @@ void btStartup(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/BLE_mcs/main.c b/Examples/MAX32655/Bluetooth/BLE_mcs/main.c index a53eb4a80ca..77c38938ba4 100644 --- a/Examples/MAX32655/Bluetooth/BLE_mcs/main.c +++ b/Examples/MAX32655/Bluetooth/BLE_mcs/main.c @@ -163,7 +163,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/BLE_otac/main.c b/Examples/MAX32655/Bluetooth/BLE_otac/main.c index 49d7d9f6202..93e08aa831b 100644 --- a/Examples/MAX32655/Bluetooth/BLE_otac/main.c +++ b/Examples/MAX32655/Bluetooth/BLE_otac/main.c @@ -190,7 +190,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/BLE_otas/main.c b/Examples/MAX32655/Bluetooth/BLE_otas/main.c index c4f2320eaa4..244439bf60b 100644 --- a/Examples/MAX32655/Bluetooth/BLE_otas/main.c +++ b/Examples/MAX32655/Bluetooth/BLE_otas/main.c @@ -202,7 +202,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/RF_Test/main.c b/Examples/MAX32655/Bluetooth/RF_Test/main.c index 459bfac8cef..bf841d6b4be 100644 --- a/Examples/MAX32655/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32655/Bluetooth/RF_Test/main.c @@ -462,7 +462,7 @@ static void mainLoadConfiguration(void) PalBbLoadCfg((PalBbCfg_t *)&mainBbRtCfg); LlGetDefaultRunTimeCfg(&mainLlRtCfg); PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); /* Set 5.1 requirements. */ mainLlRtCfg.btVer = LL_VER_BT_CORE_SPEC_5_0; diff --git a/Examples/MAX32665/Bluetooth/BLE5_ctr/main.c b/Examples/MAX32665/Bluetooth/BLE5_ctr/main.c index 62ff05a1c54..035e05731bf 100644 --- a/Examples/MAX32665/Bluetooth/BLE5_ctr/main.c +++ b/Examples/MAX32665/Bluetooth/BLE5_ctr/main.c @@ -76,7 +76,7 @@ static void mainLoadConfiguration(void) PalBbLoadCfg((PalBbCfg_t *)&mainBbRtCfg); LlGetDefaultRunTimeCfg(&mainLlRtCfg); PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); /* Set 5.0 requirements. */ mainLlRtCfg.btVer = BT_VER; diff --git a/Examples/MAX32665/Bluetooth/BLE_FreeRTOS/stack_dats.c b/Examples/MAX32665/Bluetooth/BLE_FreeRTOS/stack_dats.c index 4c4a35eb7d8..87ec0c0344f 100644 --- a/Examples/MAX32665/Bluetooth/BLE_FreeRTOS/stack_dats.c +++ b/Examples/MAX32665/Bluetooth/BLE_FreeRTOS/stack_dats.c @@ -341,7 +341,7 @@ void bleStartup(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_LR_Central/main.c b/Examples/MAX32665/Bluetooth/BLE_LR_Central/main.c index e18016b6532..6fa28f7cae8 100644 --- a/Examples/MAX32665/Bluetooth/BLE_LR_Central/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_LR_Central/main.c @@ -208,7 +208,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_LR_Peripheral/main.c b/Examples/MAX32665/Bluetooth/BLE_LR_Peripheral/main.c index d6bceb705f7..a382a273b70 100644 --- a/Examples/MAX32665/Bluetooth/BLE_LR_Peripheral/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_LR_Peripheral/main.c @@ -207,7 +207,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_datc/main.c b/Examples/MAX32665/Bluetooth/BLE_datc/main.c index f0700a02017..67a84cc6226 100644 --- a/Examples/MAX32665/Bluetooth/BLE_datc/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_datc/main.c @@ -206,7 +206,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_dats/main.c b/Examples/MAX32665/Bluetooth/BLE_dats/main.c index bdd2cbd8b0d..405941cbd75 100644 --- a/Examples/MAX32665/Bluetooth/BLE_dats/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_dats/main.c @@ -207,7 +207,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_fit/main.c b/Examples/MAX32665/Bluetooth/BLE_fit/main.c index 6650ab98da2..869eafb6016 100644 --- a/Examples/MAX32665/Bluetooth/BLE_fit/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_fit/main.c @@ -206,7 +206,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_mcs/main.c b/Examples/MAX32665/Bluetooth/BLE_mcs/main.c index f8efc506743..ca19819ea34 100644 --- a/Examples/MAX32665/Bluetooth/BLE_mcs/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_mcs/main.c @@ -181,7 +181,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_otac/main.c b/Examples/MAX32665/Bluetooth/BLE_otac/main.c index dfeed8d3355..fd3a30ddf64 100644 --- a/Examples/MAX32665/Bluetooth/BLE_otac/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_otac/main.c @@ -207,7 +207,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_otas/main.c b/Examples/MAX32665/Bluetooth/BLE_otas/main.c index 6bd44b24959..47659303305 100644 --- a/Examples/MAX32665/Bluetooth/BLE_otas/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_otas/main.c @@ -207,7 +207,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/RF_Test/main.c b/Examples/MAX32665/Bluetooth/RF_Test/main.c index 1a01be00a7f..f405d71ff38 100644 --- a/Examples/MAX32665/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32665/Bluetooth/RF_Test/main.c @@ -465,7 +465,7 @@ static void mainLoadConfiguration(void) PalBbLoadCfg((PalBbCfg_t *)&mainBbRtCfg); LlGetDefaultRunTimeCfg(&mainLlRtCfg); PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); /* Set 5.1 requirements. */ mainLlRtCfg.btVer = LL_VER_BT_CORE_SPEC_5_0; diff --git a/Examples/MAX32680/Bluetooth/BLE_dats/main.c b/Examples/MAX32680/Bluetooth/BLE_dats/main.c index bc2d8735206..e3ddb88ea02 100644 --- a/Examples/MAX32680/Bluetooth/BLE_dats/main.c +++ b/Examples/MAX32680/Bluetooth/BLE_dats/main.c @@ -200,7 +200,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/BLE5_ctr/main.c b/Examples/MAX32690/Bluetooth/BLE5_ctr/main.c index f4b076f5f24..ee8520c9d22 100644 --- a/Examples/MAX32690/Bluetooth/BLE5_ctr/main.c +++ b/Examples/MAX32690/Bluetooth/BLE5_ctr/main.c @@ -76,7 +76,7 @@ static void mainLoadConfiguration(void) PalBbLoadCfg((PalBbCfg_t *)&mainBbRtCfg); LlGetDefaultRunTimeCfg(&mainLlRtCfg); PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); /* Set 5.0 requirements. */ mainLlRtCfg.btVer = BT_VER; diff --git a/Examples/MAX32690/Bluetooth/BLE_FreeRTOS/stack_dats.c b/Examples/MAX32690/Bluetooth/BLE_FreeRTOS/stack_dats.c index 9ff548426e2..ef5ccd9b157 100644 --- a/Examples/MAX32690/Bluetooth/BLE_FreeRTOS/stack_dats.c +++ b/Examples/MAX32690/Bluetooth/BLE_FreeRTOS/stack_dats.c @@ -308,7 +308,7 @@ void bleStartup(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/BLE_datc/main.c b/Examples/MAX32690/Bluetooth/BLE_datc/main.c index 060c2a2a01e..73e90e6d564 100644 --- a/Examples/MAX32690/Bluetooth/BLE_datc/main.c +++ b/Examples/MAX32690/Bluetooth/BLE_datc/main.c @@ -189,7 +189,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/BLE_dats/main.c b/Examples/MAX32690/Bluetooth/BLE_dats/main.c index f9d854e8c15..2edb4e5fb89 100644 --- a/Examples/MAX32690/Bluetooth/BLE_dats/main.c +++ b/Examples/MAX32690/Bluetooth/BLE_dats/main.c @@ -189,7 +189,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/BLE_fit/main.c b/Examples/MAX32690/Bluetooth/BLE_fit/main.c index 80196c3a170..31bab407a40 100644 --- a/Examples/MAX32690/Bluetooth/BLE_fit/main.c +++ b/Examples/MAX32690/Bluetooth/BLE_fit/main.c @@ -189,7 +189,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/BLE_mcs/main.c b/Examples/MAX32690/Bluetooth/BLE_mcs/main.c index a53eb4a80ca..77c38938ba4 100644 --- a/Examples/MAX32690/Bluetooth/BLE_mcs/main.c +++ b/Examples/MAX32690/Bluetooth/BLE_mcs/main.c @@ -163,7 +163,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/BLE_otac/main.c b/Examples/MAX32690/Bluetooth/BLE_otac/main.c index 13feaae0cf5..4afb509dba4 100644 --- a/Examples/MAX32690/Bluetooth/BLE_otac/main.c +++ b/Examples/MAX32690/Bluetooth/BLE_otac/main.c @@ -190,7 +190,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/BLE_otas/main.c b/Examples/MAX32690/Bluetooth/BLE_otas/main.c index e329d43fcda..cda14b6086c 100644 --- a/Examples/MAX32690/Bluetooth/BLE_otas/main.c +++ b/Examples/MAX32690/Bluetooth/BLE_otas/main.c @@ -190,7 +190,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/RF_Test/main.c b/Examples/MAX32690/Bluetooth/RF_Test/main.c index 1a01be00a7f..f405d71ff38 100644 --- a/Examples/MAX32690/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32690/Bluetooth/RF_Test/main.c @@ -465,7 +465,7 @@ static void mainLoadConfiguration(void) PalBbLoadCfg((PalBbCfg_t *)&mainBbRtCfg); LlGetDefaultRunTimeCfg(&mainLlRtCfg); PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, &mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); /* Set 5.1 requirements. */ mainLlRtCfg.btVer = LL_VER_BT_CORE_SPEC_5_0; From f058b5732ae544e5d1a86fca7c5c335cbf390e50 Mon Sep 17 00:00:00 2001 From: Kevin Gillespie Date: Fri, 11 Oct 2024 13:38:55 -0500 Subject: [PATCH 3/7] Fixing formatting. --- Examples/MAX32655/Bluetooth/BLE5_ctr/main.c | 2 +- Examples/MAX32655/Bluetooth/BLE_FreeRTOS/stack_dats.c | 2 +- Examples/MAX32655/Bluetooth/BLE_HCI_DFU/BLT/main.c | 2 +- Examples/MAX32655/Bluetooth/BLE_datc/main.c | 2 +- Examples/MAX32655/Bluetooth/BLE_dats/main.c | 2 +- Examples/MAX32655/Bluetooth/BLE_fit/main.c | 2 +- Examples/MAX32655/Bluetooth/BLE_fit_FreeRTOS/bt_stack.c | 2 +- Examples/MAX32655/Bluetooth/BLE_mcs/main.c | 2 +- Examples/MAX32655/Bluetooth/BLE_otac/main.c | 2 +- Examples/MAX32655/Bluetooth/BLE_otas/main.c | 2 +- Examples/MAX32655/Bluetooth/RF_Test/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE5_ctr/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_FreeRTOS/stack_dats.c | 2 +- Examples/MAX32665/Bluetooth/BLE_LR_Central/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_LR_Peripheral/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_datc/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_dats/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_fit/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_mcs/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_otac/main.c | 2 +- Examples/MAX32665/Bluetooth/BLE_otas/main.c | 2 +- Examples/MAX32665/Bluetooth/RF_Test/main.c | 2 +- Examples/MAX32680/Bluetooth/BLE_dats/main.c | 2 +- Examples/MAX32690/Bluetooth/BLE5_ctr/main.c | 2 +- Examples/MAX32690/Bluetooth/BLE_FreeRTOS/stack_dats.c | 2 +- Examples/MAX32690/Bluetooth/BLE_datc/main.c | 2 +- Examples/MAX32690/Bluetooth/BLE_dats/main.c | 2 +- Examples/MAX32690/Bluetooth/BLE_fit/main.c | 2 +- Examples/MAX32690/Bluetooth/BLE_mcs/main.c | 2 +- Examples/MAX32690/Bluetooth/BLE_otac/main.c | 2 +- Examples/MAX32690/Bluetooth/BLE_otas/main.c | 2 +- Examples/MAX32690/Bluetooth/RF_Test/main.c | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Examples/MAX32655/Bluetooth/BLE5_ctr/main.c b/Examples/MAX32655/Bluetooth/BLE5_ctr/main.c index b6456f08139..864348ee44a 100644 --- a/Examples/MAX32655/Bluetooth/BLE5_ctr/main.c +++ b/Examples/MAX32655/Bluetooth/BLE5_ctr/main.c @@ -76,7 +76,7 @@ static void mainLoadConfiguration(void) PalBbLoadCfg((PalBbCfg_t *)&mainBbRtCfg); LlGetDefaultRunTimeCfg(&mainLlRtCfg); PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); /* Set 5.0 requirements. */ mainLlRtCfg.btVer = BT_VER; diff --git a/Examples/MAX32655/Bluetooth/BLE_FreeRTOS/stack_dats.c b/Examples/MAX32655/Bluetooth/BLE_FreeRTOS/stack_dats.c index 02411aae353..be5185af202 100644 --- a/Examples/MAX32655/Bluetooth/BLE_FreeRTOS/stack_dats.c +++ b/Examples/MAX32655/Bluetooth/BLE_FreeRTOS/stack_dats.c @@ -308,7 +308,7 @@ void bleStartup(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/BLE_HCI_DFU/BLT/main.c b/Examples/MAX32655/Bluetooth/BLE_HCI_DFU/BLT/main.c index 697cc8e490d..d44a212cdcc 100644 --- a/Examples/MAX32655/Bluetooth/BLE_HCI_DFU/BLT/main.c +++ b/Examples/MAX32655/Bluetooth/BLE_HCI_DFU/BLT/main.c @@ -83,7 +83,7 @@ static void mainLoadConfiguration(void) PalBbLoadCfg((PalBbCfg_t *)&mainBbRtCfg); LlGetDefaultRunTimeCfg(&mainLlRtCfg); PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); /* Set 5.0 requirements. */ mainLlRtCfg.btVer = BT_VER; diff --git a/Examples/MAX32655/Bluetooth/BLE_datc/main.c b/Examples/MAX32655/Bluetooth/BLE_datc/main.c index abcff66030e..5ffb01957b7 100644 --- a/Examples/MAX32655/Bluetooth/BLE_datc/main.c +++ b/Examples/MAX32655/Bluetooth/BLE_datc/main.c @@ -189,7 +189,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/BLE_dats/main.c b/Examples/MAX32655/Bluetooth/BLE_dats/main.c index 37b313ff3bd..bdcee7ab7cc 100644 --- a/Examples/MAX32655/Bluetooth/BLE_dats/main.c +++ b/Examples/MAX32655/Bluetooth/BLE_dats/main.c @@ -189,7 +189,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/BLE_fit/main.c b/Examples/MAX32655/Bluetooth/BLE_fit/main.c index 9e873e6bdf5..0199877ad72 100644 --- a/Examples/MAX32655/Bluetooth/BLE_fit/main.c +++ b/Examples/MAX32655/Bluetooth/BLE_fit/main.c @@ -175,7 +175,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/BLE_fit_FreeRTOS/bt_stack.c b/Examples/MAX32655/Bluetooth/BLE_fit_FreeRTOS/bt_stack.c index c301950d87f..68f0c51d05d 100644 --- a/Examples/MAX32655/Bluetooth/BLE_fit_FreeRTOS/bt_stack.c +++ b/Examples/MAX32655/Bluetooth/BLE_fit_FreeRTOS/bt_stack.c @@ -308,7 +308,7 @@ void btStartup(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/BLE_mcs/main.c b/Examples/MAX32655/Bluetooth/BLE_mcs/main.c index 77c38938ba4..507205876e8 100644 --- a/Examples/MAX32655/Bluetooth/BLE_mcs/main.c +++ b/Examples/MAX32655/Bluetooth/BLE_mcs/main.c @@ -163,7 +163,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/BLE_otac/main.c b/Examples/MAX32655/Bluetooth/BLE_otac/main.c index 93e08aa831b..e0b023266b5 100644 --- a/Examples/MAX32655/Bluetooth/BLE_otac/main.c +++ b/Examples/MAX32655/Bluetooth/BLE_otac/main.c @@ -190,7 +190,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/BLE_otas/main.c b/Examples/MAX32655/Bluetooth/BLE_otas/main.c index 244439bf60b..01a0b4b19fe 100644 --- a/Examples/MAX32655/Bluetooth/BLE_otas/main.c +++ b/Examples/MAX32655/Bluetooth/BLE_otas/main.c @@ -202,7 +202,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32655/Bluetooth/RF_Test/main.c b/Examples/MAX32655/Bluetooth/RF_Test/main.c index bf841d6b4be..ad2168753c4 100644 --- a/Examples/MAX32655/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32655/Bluetooth/RF_Test/main.c @@ -462,7 +462,7 @@ static void mainLoadConfiguration(void) PalBbLoadCfg((PalBbCfg_t *)&mainBbRtCfg); LlGetDefaultRunTimeCfg(&mainLlRtCfg); PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); /* Set 5.1 requirements. */ mainLlRtCfg.btVer = LL_VER_BT_CORE_SPEC_5_0; diff --git a/Examples/MAX32665/Bluetooth/BLE5_ctr/main.c b/Examples/MAX32665/Bluetooth/BLE5_ctr/main.c index 035e05731bf..0d9f01d126c 100644 --- a/Examples/MAX32665/Bluetooth/BLE5_ctr/main.c +++ b/Examples/MAX32665/Bluetooth/BLE5_ctr/main.c @@ -76,7 +76,7 @@ static void mainLoadConfiguration(void) PalBbLoadCfg((PalBbCfg_t *)&mainBbRtCfg); LlGetDefaultRunTimeCfg(&mainLlRtCfg); PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); /* Set 5.0 requirements. */ mainLlRtCfg.btVer = BT_VER; diff --git a/Examples/MAX32665/Bluetooth/BLE_FreeRTOS/stack_dats.c b/Examples/MAX32665/Bluetooth/BLE_FreeRTOS/stack_dats.c index 87ec0c0344f..c262788bb8d 100644 --- a/Examples/MAX32665/Bluetooth/BLE_FreeRTOS/stack_dats.c +++ b/Examples/MAX32665/Bluetooth/BLE_FreeRTOS/stack_dats.c @@ -341,7 +341,7 @@ void bleStartup(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_LR_Central/main.c b/Examples/MAX32665/Bluetooth/BLE_LR_Central/main.c index 6fa28f7cae8..93dbda8a127 100644 --- a/Examples/MAX32665/Bluetooth/BLE_LR_Central/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_LR_Central/main.c @@ -208,7 +208,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_LR_Peripheral/main.c b/Examples/MAX32665/Bluetooth/BLE_LR_Peripheral/main.c index a382a273b70..4f86e3bc239 100644 --- a/Examples/MAX32665/Bluetooth/BLE_LR_Peripheral/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_LR_Peripheral/main.c @@ -207,7 +207,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_datc/main.c b/Examples/MAX32665/Bluetooth/BLE_datc/main.c index 67a84cc6226..26c3b1cb10e 100644 --- a/Examples/MAX32665/Bluetooth/BLE_datc/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_datc/main.c @@ -206,7 +206,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_dats/main.c b/Examples/MAX32665/Bluetooth/BLE_dats/main.c index 405941cbd75..f6792f04e03 100644 --- a/Examples/MAX32665/Bluetooth/BLE_dats/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_dats/main.c @@ -207,7 +207,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_fit/main.c b/Examples/MAX32665/Bluetooth/BLE_fit/main.c index 869eafb6016..308f7221b19 100644 --- a/Examples/MAX32665/Bluetooth/BLE_fit/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_fit/main.c @@ -206,7 +206,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_mcs/main.c b/Examples/MAX32665/Bluetooth/BLE_mcs/main.c index ca19819ea34..1b2b9d92787 100644 --- a/Examples/MAX32665/Bluetooth/BLE_mcs/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_mcs/main.c @@ -181,7 +181,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_otac/main.c b/Examples/MAX32665/Bluetooth/BLE_otac/main.c index fd3a30ddf64..6ba17c14f45 100644 --- a/Examples/MAX32665/Bluetooth/BLE_otac/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_otac/main.c @@ -207,7 +207,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/BLE_otas/main.c b/Examples/MAX32665/Bluetooth/BLE_otas/main.c index 47659303305..618d2c35a33 100644 --- a/Examples/MAX32665/Bluetooth/BLE_otas/main.c +++ b/Examples/MAX32665/Bluetooth/BLE_otas/main.c @@ -207,7 +207,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32665/Bluetooth/RF_Test/main.c b/Examples/MAX32665/Bluetooth/RF_Test/main.c index f405d71ff38..4abcaee86c6 100644 --- a/Examples/MAX32665/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32665/Bluetooth/RF_Test/main.c @@ -465,7 +465,7 @@ static void mainLoadConfiguration(void) PalBbLoadCfg((PalBbCfg_t *)&mainBbRtCfg); LlGetDefaultRunTimeCfg(&mainLlRtCfg); PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); /* Set 5.1 requirements. */ mainLlRtCfg.btVer = LL_VER_BT_CORE_SPEC_5_0; diff --git a/Examples/MAX32680/Bluetooth/BLE_dats/main.c b/Examples/MAX32680/Bluetooth/BLE_dats/main.c index e3ddb88ea02..226ae80574b 100644 --- a/Examples/MAX32680/Bluetooth/BLE_dats/main.c +++ b/Examples/MAX32680/Bluetooth/BLE_dats/main.c @@ -200,7 +200,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/BLE5_ctr/main.c b/Examples/MAX32690/Bluetooth/BLE5_ctr/main.c index ee8520c9d22..848d21f777c 100644 --- a/Examples/MAX32690/Bluetooth/BLE5_ctr/main.c +++ b/Examples/MAX32690/Bluetooth/BLE5_ctr/main.c @@ -76,7 +76,7 @@ static void mainLoadConfiguration(void) PalBbLoadCfg((PalBbCfg_t *)&mainBbRtCfg); LlGetDefaultRunTimeCfg(&mainLlRtCfg); PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); /* Set 5.0 requirements. */ mainLlRtCfg.btVer = BT_VER; diff --git a/Examples/MAX32690/Bluetooth/BLE_FreeRTOS/stack_dats.c b/Examples/MAX32690/Bluetooth/BLE_FreeRTOS/stack_dats.c index ef5ccd9b157..700c2dde6c8 100644 --- a/Examples/MAX32690/Bluetooth/BLE_FreeRTOS/stack_dats.c +++ b/Examples/MAX32690/Bluetooth/BLE_FreeRTOS/stack_dats.c @@ -308,7 +308,7 @@ void bleStartup(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/BLE_datc/main.c b/Examples/MAX32690/Bluetooth/BLE_datc/main.c index 73e90e6d564..ed1ca5eb378 100644 --- a/Examples/MAX32690/Bluetooth/BLE_datc/main.c +++ b/Examples/MAX32690/Bluetooth/BLE_datc/main.c @@ -189,7 +189,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/BLE_dats/main.c b/Examples/MAX32690/Bluetooth/BLE_dats/main.c index 2edb4e5fb89..f7430274b73 100644 --- a/Examples/MAX32690/Bluetooth/BLE_dats/main.c +++ b/Examples/MAX32690/Bluetooth/BLE_dats/main.c @@ -189,7 +189,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/BLE_fit/main.c b/Examples/MAX32690/Bluetooth/BLE_fit/main.c index 31bab407a40..f43129c09bc 100644 --- a/Examples/MAX32690/Bluetooth/BLE_fit/main.c +++ b/Examples/MAX32690/Bluetooth/BLE_fit/main.c @@ -189,7 +189,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/BLE_mcs/main.c b/Examples/MAX32690/Bluetooth/BLE_mcs/main.c index 77c38938ba4..507205876e8 100644 --- a/Examples/MAX32690/Bluetooth/BLE_mcs/main.c +++ b/Examples/MAX32690/Bluetooth/BLE_mcs/main.c @@ -163,7 +163,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/BLE_otac/main.c b/Examples/MAX32690/Bluetooth/BLE_otac/main.c index 4afb509dba4..cfc16e2cbfe 100644 --- a/Examples/MAX32690/Bluetooth/BLE_otac/main.c +++ b/Examples/MAX32690/Bluetooth/BLE_otac/main.c @@ -190,7 +190,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/BLE_otas/main.c b/Examples/MAX32690/Bluetooth/BLE_otas/main.c index cda14b6086c..0a9e752ec2a 100644 --- a/Examples/MAX32690/Bluetooth/BLE_otas/main.c +++ b/Examples/MAX32690/Bluetooth/BLE_otas/main.c @@ -190,7 +190,7 @@ int main(void) #endif PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); #if (BT_VER >= LL_VER_BT_CORE_SPEC_5_0) - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); #endif /* Set the 32k sleep clock accuracy into one of the following bins, default is 20 diff --git a/Examples/MAX32690/Bluetooth/RF_Test/main.c b/Examples/MAX32690/Bluetooth/RF_Test/main.c index f405d71ff38..4abcaee86c6 100644 --- a/Examples/MAX32690/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32690/Bluetooth/RF_Test/main.c @@ -465,7 +465,7 @@ static void mainLoadConfiguration(void) PalBbLoadCfg((PalBbCfg_t *)&mainBbRtCfg); LlGetDefaultRunTimeCfg(&mainLlRtCfg); PalCfgLoadData(PAL_CFG_ID_LL_PARAM, &mainLlRtCfg.maxAdvSets, sizeof(LlRtCfg_t) - 9); - PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t*)&mainLlRtCfg.phy2mSup, 4); + PalCfgLoadData(PAL_CFG_ID_BLE_PHY, (uint8_t *)&mainLlRtCfg.phy2mSup, 4); /* Set 5.1 requirements. */ mainLlRtCfg.btVer = LL_VER_BT_CORE_SPEC_5_0; From 3c146ca19fb35ea1565501a74e71b57f45798334 Mon Sep 17 00:00:00 2001 From: Kevin Gillespie Date: Fri, 11 Oct 2024 13:42:21 -0500 Subject: [PATCH 4/7] Fixing formatting. --- Libraries/Cordio/platform/include/pal_types.h | 6 +++--- Libraries/Cordio/wsf/include/wsf_types.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Libraries/Cordio/platform/include/pal_types.h b/Libraries/Cordio/platform/include/pal_types.h index 16427f85ebc..085074bf359 100644 --- a/Libraries/Cordio/platform/include/pal_types.h +++ b/Libraries/Cordio/platform/include/pal_types.h @@ -44,7 +44,7 @@ extern "C" { #include #ifndef bool_t - #define bool_t bool +#define bool_t bool #endif #ifndef bool @@ -52,11 +52,11 @@ extern "C" { #endif #ifndef FALSE - #define FALSE 0 +#define FALSE 0 #endif #ifndef TRUE - #define TRUE (!FALSE) +#define TRUE (!FALSE) #endif /*! \} */ /* Integer Data Types */ diff --git a/Libraries/Cordio/wsf/include/wsf_types.h b/Libraries/Cordio/wsf/include/wsf_types.h index 6499b0f2000..be6802772f6 100644 --- a/Libraries/Cordio/wsf/include/wsf_types.h +++ b/Libraries/Cordio/wsf/include/wsf_types.h @@ -44,7 +44,7 @@ extern "C" { #include #ifndef bool_t - #define bool_t bool +#define bool_t bool #endif /* New library uses bool instead of bool_t */ @@ -53,11 +53,11 @@ extern "C" { #endif #ifndef FALSE - #define FALSE 0 +#define FALSE 0 #endif #ifndef TRUE - #define TRUE (!FALSE) +#define TRUE (!FALSE) #endif /*! \} */ /* Integer Data Types */ From 39ec664f7ede072964542cffb5585fe34039a390 Mon Sep 17 00:00:00 2001 From: Kevin Gillespie Date: Fri, 11 Oct 2024 15:02:23 -0500 Subject: [PATCH 5/7] Fixing build warnings. --- .../ble-profiles/sources/af/common/app_db.c | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/Libraries/Cordio/ble-profiles/sources/af/common/app_db.c b/Libraries/Cordio/ble-profiles/sources/af/common/app_db.c index d954e1bcebe..6e707f461ba 100644 --- a/Libraries/Cordio/ble-profiles/sources/af/common/app_db.c +++ b/Libraries/Cordio/ble-profiles/sources/af/common/app_db.c @@ -962,7 +962,7 @@ bool_t AppDbNvmStorePeerRpao(appDbHdl_t hdl) appDbRec_t *pRec = &appDb.rec[recIndex]; uint32_t nvmId = DBNV_ID(APP_DB_NVM_PEER_RAPO_ID, recIndex); - return WsfNvmWriteData(nvmId, &pRec->peerRpao, sizeof(bool_t), NULL); + return WsfNvmWriteData(nvmId, (uint8_t*) &pRec->peerRpao, sizeof(bool_t), NULL); }else { APP_TRACE_INFO0("Invalid record index!"); @@ -1021,7 +1021,7 @@ bool_t AppDbNvmStoreHdlList(appDbHdl_t hdl) nvmId = DBNV_ID(APP_DB_NVM_DISC_STATUS_ID, recIndex); - return WsfNvmWriteData(nvmId, &pRec->discStatus, sizeof(uint8_t), NULL); + return WsfNvmWriteData(nvmId, (uint8_t*) &pRec->discStatus, sizeof(uint8_t), NULL); }else { APP_TRACE_INFO0("Invalid record index!"); @@ -1181,7 +1181,7 @@ bool_t AppDbNvmStoreDbHash(appDbHdl_t hdl) appDbRec_t *pRec = &appDb.rec[recIndex]; uint32_t nvmId = DBNV_ID(APP_DB_NVM_HASH_ID, recIndex); - return WsfNvmWriteData(nvmId, pRec->dbHash, ATT_DATABASE_HASH_LEN, NULL); + return WsfNvmWriteData(nvmId, (uint8_t*) pRec->dbHash, ATT_DATABASE_HASH_LEN, NULL); } else { @@ -1213,7 +1213,7 @@ bool_t AppDbNvmStoreBond(appDbHdl_t hdl) /* Protect against corrupt bond state due to incomplete writes (power failure, crash, etc.). */ /* - First ensure valid FALSE before writing parameters. */ - bool_t writeOk = WsfNvmWriteData(DBNV_ID(APP_DB_NVM_VALID_ID, i), &valid, sizeof(bool_t), NULL); + bool_t writeOk = WsfNvmWriteData(DBNV_ID(APP_DB_NVM_VALID_ID, i), (uint8_t*) &valid, sizeof(bool_t), NULL); if(!writeOk){ return FALSE; @@ -1221,7 +1221,7 @@ bool_t AppDbNvmStoreBond(appDbHdl_t hdl) /* Write record parameters. */ - writeOk = WsfNvmWriteData(DBNV_ID(APP_DB_NVM_KV_MASK_ID, i), &pRec->keyValidMask, sizeof(uint8_t), NULL); + writeOk = WsfNvmWriteData(DBNV_ID(APP_DB_NVM_KV_MASK_ID, i), (uint8_t*) &pRec->keyValidMask, sizeof(uint8_t), NULL); if(!writeOk){ return FALSE; } @@ -1232,7 +1232,7 @@ bool_t AppDbNvmStoreBond(appDbHdl_t hdl) if(!writeOk){ return FALSE; } - writeOk = WsfNvmWriteData(DBNV_ID(APP_DB_NVM_LOCAL_SEC_LVL_ID, i), &pRec->localLtkSecLevel, sizeof(uint8_t), NULL); + writeOk = WsfNvmWriteData(DBNV_ID(APP_DB_NVM_LOCAL_SEC_LVL_ID, i), (uint8_t*) &pRec->localLtkSecLevel, sizeof(uint8_t), NULL); if(!writeOk){ return FALSE; } @@ -1244,7 +1244,7 @@ bool_t AppDbNvmStoreBond(appDbHdl_t hdl) if(!writeOk){ return FALSE; } - writeOk = WsfNvmWriteData(DBNV_ID(APP_DB_NVM_PEER_SEC_LVL_ID, i), &pRec->peerLtkSecLevel, sizeof(uint8_t), NULL); + writeOk = WsfNvmWriteData(DBNV_ID(APP_DB_NVM_PEER_SEC_LVL_ID, i), (uint8_t*) &pRec->peerLtkSecLevel, sizeof(uint8_t), NULL); if(!writeOk){ return FALSE; } @@ -1266,21 +1266,21 @@ bool_t AppDbNvmStoreBond(appDbHdl_t hdl) } } - writeOk = WsfNvmWriteData(DBNV_ID(APP_DB_NVM_PEER_ADDR_ID, i), pRec->peerAddr, sizeof(bdAddr_t), NULL); + writeOk = WsfNvmWriteData(DBNV_ID(APP_DB_NVM_PEER_ADDR_ID, i), (uint8_t*) pRec->peerAddr, sizeof(bdAddr_t), NULL); if(!writeOk){ return FALSE; } - writeOk = WsfNvmWriteData(DBNV_ID(APP_DB_NVM_ADDR_TYPE_ID, i), &pRec->addrType, sizeof(uint8_t), NULL); + writeOk = WsfNvmWriteData(DBNV_ID(APP_DB_NVM_ADDR_TYPE_ID, i), (uint8_t*) &pRec->addrType, sizeof(uint8_t), NULL); if(!writeOk){ return FALSE; } - writeOk = WsfNvmWriteData(DBNV_ID(APP_DB_NVM_CACHE_HASH_ID, i), &pRec->cacheByHash, sizeof(bool_t), NULL); + writeOk = WsfNvmWriteData(DBNV_ID(APP_DB_NVM_CACHE_HASH_ID, i), (uint8_t*) &pRec->cacheByHash, sizeof(bool_t), NULL); if(!writeOk){ return FALSE; } /* Protect against corrupt bond state due to incomplete writes (power failure, crash, etc.). */ /* - Second set valid TRUE after writing parameters. */ - return WsfNvmWriteData(DBNV_ID(APP_DB_NVM_VALID_ID, i), &pRec->valid, sizeof(bool_t), NULL); + return WsfNvmWriteData(DBNV_ID(APP_DB_NVM_VALID_ID, i), (uint8_t*) &pRec->valid, sizeof(bool_t), NULL); } return TRUE; @@ -1310,7 +1310,7 @@ void AppDbNvmReadAll(void) appDbRec_t *pRec = &appDb.rec[i]; /* Verify record is valid. */ - WsfNvmReadData(DBNV_ID(APP_DB_NVM_VALID_ID, i), &valid, sizeof(bool_t), NULL); + WsfNvmReadData(DBNV_ID(APP_DB_NVM_VALID_ID, i), (uint8_t*) &valid, sizeof(bool_t), NULL); if (valid && valid != 0xFF) { @@ -1318,21 +1318,21 @@ void AppDbNvmReadAll(void) pRec->valid = TRUE; /* Read bonding parameters. */ - WsfNvmReadData(DBNV_ID(APP_DB_NVM_PEER_ADDR_ID, i), pRec->peerAddr, sizeof(bdAddr_t), NULL); - WsfNvmReadData(DBNV_ID(APP_DB_NVM_ADDR_TYPE_ID, i), &pRec->addrType, sizeof(uint8_t), NULL); + WsfNvmReadData(DBNV_ID(APP_DB_NVM_PEER_ADDR_ID, i), (uint8_t*) pRec->peerAddr, sizeof(bdAddr_t), NULL); + WsfNvmReadData(DBNV_ID(APP_DB_NVM_ADDR_TYPE_ID, i), (uint8_t*) &pRec->addrType, sizeof(uint8_t), NULL); - WsfNvmReadData(DBNV_ID(APP_DB_NVM_KV_MASK_ID, i), &pRec->keyValidMask, sizeof(uint8_t), NULL); + WsfNvmReadData(DBNV_ID(APP_DB_NVM_KV_MASK_ID, i), (uint8_t*) &pRec->keyValidMask, sizeof(uint8_t), NULL); if (pRec->keyValidMask & DM_KEY_LOCAL_LTK) { WsfNvmReadData(DBNV_ID(APP_DB_NVM_LOCAL_LTK_ID, i), (uint8_t*) &pRec->localLtk, sizeof(dmSecLtk_t), NULL); - WsfNvmReadData(DBNV_ID(APP_DB_NVM_LOCAL_SEC_LVL_ID, i), &pRec->localLtkSecLevel, sizeof(uint8_t), NULL); + WsfNvmReadData(DBNV_ID(APP_DB_NVM_LOCAL_SEC_LVL_ID, i), (uint8_t*) &pRec->localLtkSecLevel, sizeof(uint8_t), NULL); } if (pRec->keyValidMask & DM_KEY_PEER_LTK) { WsfNvmReadData(DBNV_ID(APP_DB_NVM_PEER_LTK_ID, i), (uint8_t*) &pRec->peerLtk, sizeof(dmSecLtk_t), NULL); - WsfNvmReadData(DBNV_ID(APP_DB_NVM_PEER_SEC_LVL_ID, i), &pRec->peerLtkSecLevel, sizeof(uint8_t), NULL); + WsfNvmReadData(DBNV_ID(APP_DB_NVM_PEER_SEC_LVL_ID, i), (uint8_t*) &pRec->peerLtkSecLevel, sizeof(uint8_t), NULL); } if (pRec->keyValidMask & DM_KEY_IRK) @@ -1346,17 +1346,17 @@ void AppDbNvmReadAll(void) } /* Read additional parameters. */ - WsfNvmReadData(DBNV_ID(APP_DB_NVM_PEER_RAPO_ID, i), &pRec->peerRpao, sizeof(bool_t), NULL); + WsfNvmReadData(DBNV_ID(APP_DB_NVM_PEER_RAPO_ID, i), (uint8_t*) &pRec->peerRpao, sizeof(bool_t), NULL); WsfNvmReadData(DBNV_ID(APP_DB_NVM_CCC_TBL_ID, i), (uint8_t*) pRec->cccTbl, sizeof(uint16_t) * APP_DB_NUM_CCCD, NULL); WsfNvmReadData(DBNV_ID(APP_DB_NVM_HDL_LIST_ID, i), (uint8_t*) &pRec->hdlList, sizeof(uint16_t) * APP_DB_HDL_LIST_LEN, NULL); - WsfNvmReadData(DBNV_ID(APP_DB_NVM_DISC_STATUS_ID, i), &pRec->discStatus, sizeof(uint8_t), NULL); - WsfNvmReadData(DBNV_ID(APP_DB_NVM_PEER_ADDR_RES_ID, i), &pRec->peerAddrRes, sizeof(bool_t), NULL); + WsfNvmReadData(DBNV_ID(APP_DB_NVM_DISC_STATUS_ID, i), (uint8_t*) &pRec->discStatus, sizeof(uint8_t), NULL); + WsfNvmReadData(DBNV_ID(APP_DB_NVM_PEER_ADDR_RES_ID, i), (uint8_t*) &pRec->peerAddrRes, sizeof(bool_t), NULL); - WsfNvmReadData(DBNV_ID(APP_DB_NVM_CAS_ID, i), &pRec->changeAwareState, sizeof(uint8_t), NULL); - WsfNvmReadData(DBNV_ID(APP_DB_NVM_CSF_ID, i), pRec->csf, ATT_CSF_LEN, NULL); - WsfNvmReadData(DBNV_ID(APP_DB_NVM_CACHE_HASH_ID, i), &pRec->cacheByHash, sizeof(bool_t), NULL); - WsfNvmReadData(DBNV_ID(APP_DB_NVM_HASH_ID, i), pRec->dbHash, ATT_DATABASE_HASH_LEN, NULL); + WsfNvmReadData(DBNV_ID(APP_DB_NVM_CAS_ID, i), (uint8_t*) &pRec->changeAwareState, sizeof(uint8_t), NULL); + WsfNvmReadData(DBNV_ID(APP_DB_NVM_CSF_ID, i), (uint8_t*) pRec->csf, ATT_CSF_LEN, NULL); + WsfNvmReadData(DBNV_ID(APP_DB_NVM_CACHE_HASH_ID, i), (uint8_t*) &pRec->cacheByHash, sizeof(bool_t), NULL); + WsfNvmReadData(DBNV_ID(APP_DB_NVM_HASH_ID, i), (uint8_t*) pRec->dbHash, ATT_DATABASE_HASH_LEN, NULL); } } } From e4de02fdaffd606d8608bffc1889da3c1d1d7ecc Mon Sep 17 00:00:00 2001 From: Kevin Gillespie Date: Fri, 11 Oct 2024 15:08:05 -0500 Subject: [PATCH 6/7] Removing duplicate definitions. --- Libraries/Cordio/platform/include/pal_types.h | 9 +++------ Libraries/Cordio/wsf/include/wsf_types.h | 19 ++----------------- 2 files changed, 5 insertions(+), 23 deletions(-) diff --git a/Libraries/Cordio/platform/include/pal_types.h b/Libraries/Cordio/platform/include/pal_types.h index 085074bf359..eaef2967a9e 100644 --- a/Libraries/Cordio/platform/include/pal_types.h +++ b/Libraries/Cordio/platform/include/pal_types.h @@ -42,21 +42,18 @@ extern "C" { #include #include +#include #ifndef bool_t #define bool_t bool #endif -#ifndef bool -#define bool _Bool -#endif - #ifndef FALSE -#define FALSE 0 +#define FALSE false #endif #ifndef TRUE -#define TRUE (!FALSE) +#define TRUE true #endif /*! \} */ /* Integer Data Types */ diff --git a/Libraries/Cordio/wsf/include/wsf_types.h b/Libraries/Cordio/wsf/include/wsf_types.h index be6802772f6..abc363fb4c7 100644 --- a/Libraries/Cordio/wsf/include/wsf_types.h +++ b/Libraries/Cordio/wsf/include/wsf_types.h @@ -42,23 +42,8 @@ extern "C" { #include #include - -#ifndef bool_t -#define bool_t bool -#endif - -/* New library uses bool instead of bool_t */ -#ifndef bool -#define bool _Bool -#endif - -#ifndef FALSE -#define FALSE 0 -#endif - -#ifndef TRUE -#define TRUE (!FALSE) -#endif +#include +#include "pal_types.h" /*! \} */ /* Integer Data Types */ From 9c3322006e7bfdaa80bf69de410ad5a73f73fedd Mon Sep 17 00:00:00 2001 From: Kevin Gillespie Date: Fri, 11 Oct 2024 15:21:59 -0500 Subject: [PATCH 7/7] Fixing build warnings. --- Libraries/Cordio/ble-profiles/sources/af/common/app_db.c | 2 +- Libraries/Cordio/controller/sources/ble/lhci/lhci_cmd_vs.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/Cordio/ble-profiles/sources/af/common/app_db.c b/Libraries/Cordio/ble-profiles/sources/af/common/app_db.c index 6e707f461ba..9b8322223a4 100644 --- a/Libraries/Cordio/ble-profiles/sources/af/common/app_db.c +++ b/Libraries/Cordio/ble-profiles/sources/af/common/app_db.c @@ -1306,7 +1306,7 @@ void AppDbNvmReadAll(void) /* Read all records. */ for (i = 0; i < APP_DB_NUM_RECS; i++) { - bool_t valid = FALSE; + uint8_t valid = 0; appDbRec_t *pRec = &appDb.rec[i]; /* Verify record is valid. */ diff --git a/Libraries/Cordio/controller/sources/ble/lhci/lhci_cmd_vs.c b/Libraries/Cordio/controller/sources/ble/lhci/lhci_cmd_vs.c index 8c4d4027b75..6e036362529 100644 --- a/Libraries/Cordio/controller/sources/ble/lhci/lhci_cmd_vs.c +++ b/Libraries/Cordio/controller/sources/ble/lhci/lhci_cmd_vs.c @@ -94,7 +94,6 @@ bool_t lhciCommonVsStdDecodeCmdPkt(LhciHdr_t *pHdr, uint8_t *pBuf) { uint8_t status = HCI_SUCCESS; uint8_t evtParamLen = 1; /* default is status field only */ - uint32_t regReadAddr = 0; uint32_t channel = 0; (void)channel;