From ade752891aeeacabb638280cb2139701ea384e54 Mon Sep 17 00:00:00 2001 From: EricB-ADI <122300463+EricB-ADI@users.noreply.github.com> Date: Mon, 4 Nov 2024 15:58:03 -0600 Subject: [PATCH 1/4] fixed RF Test example --- Examples/MAX32655/Bluetooth/RF_Test/main.c | 3 ++- Examples/MAX32665/Bluetooth/RF_Test/main.c | 3 ++- Examples/MAX32690/Bluetooth/RF_Test/main.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Examples/MAX32655/Bluetooth/RF_Test/main.c b/Examples/MAX32655/Bluetooth/RF_Test/main.c index e4387d401e0..ea568b00347 100644 --- a/Examples/MAX32655/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32655/Bluetooth/RF_Test/main.c @@ -706,7 +706,8 @@ void txTestTask(void *pvParameters) if (testConfig.testType == BLE_TX_TEST) { res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0); } else { - res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0); + // Transmitters decision if it is S2 or S8. + res = LlEnhancedRxTest(testConfig.channel, LL_PHY_LE_CODED, 0, 0); } xTaskResumeAll(); //Restore scheduler diff --git a/Examples/MAX32665/Bluetooth/RF_Test/main.c b/Examples/MAX32665/Bluetooth/RF_Test/main.c index 1659783e480..3a97d35640d 100644 --- a/Examples/MAX32665/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32665/Bluetooth/RF_Test/main.c @@ -709,7 +709,8 @@ void txTestTask(void *pvParameters) if (testConfig.testType == BLE_TX_TEST) { res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0); } else { - res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0); + // Transmitters decision if S2 or S8 + res = LlEnhancedRxTest(testConfig.channel, LL_PHY_LE_CODED, 0, 0); } xTaskResumeAll(); //Restore scheduler diff --git a/Examples/MAX32690/Bluetooth/RF_Test/main.c b/Examples/MAX32690/Bluetooth/RF_Test/main.c index a6c78d8b502..54c1c113fd8 100644 --- a/Examples/MAX32690/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32690/Bluetooth/RF_Test/main.c @@ -710,7 +710,8 @@ void txTestTask(void *pvParameters) if (testConfig.testType == BLE_TX_TEST) { res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0); } else { - res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0); + // Transmitters decision if S2 or S8 + res = LlEnhancedRxTest(testConfig.channel, LL_PHY_LE_CODED, 0, 0); } xTaskResumeAll(); //Restore scheduler From 6b6b801cd7591d29fe7de9dfe92d083801e77434 Mon Sep 17 00:00:00 2001 From: EricB-ADI Date: Mon, 4 Nov 2024 22:07:12 +0000 Subject: [PATCH 2/4] clang-format bot reformatting. --- Examples/MAX32655/Bluetooth/RF_Test/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/MAX32655/Bluetooth/RF_Test/main.c b/Examples/MAX32655/Bluetooth/RF_Test/main.c index ea568b00347..002c1ab111a 100644 --- a/Examples/MAX32655/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32655/Bluetooth/RF_Test/main.c @@ -706,7 +706,7 @@ void txTestTask(void *pvParameters) if (testConfig.testType == BLE_TX_TEST) { res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0); } else { - // Transmitters decision if it is S2 or S8. + // Transmitters decision if it is S2 or S8. res = LlEnhancedRxTest(testConfig.channel, LL_PHY_LE_CODED, 0, 0); } xTaskResumeAll(); //Restore scheduler From a87494f8aebcf67acb4194505669ef911beafa40 Mon Sep 17 00:00:00 2001 From: EricB-ADI <122300463+EricB-ADI@users.noreply.github.com> Date: Tue, 5 Nov 2024 09:23:58 -0600 Subject: [PATCH 3/4] conditionally swap phy --- Examples/MAX32655/Bluetooth/RF_Test/main.c | 7 +++++-- Examples/MAX32665/Bluetooth/RF_Test/main.c | 7 +++++-- Examples/MAX32690/Bluetooth/RF_Test/main.c | 7 +++++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Examples/MAX32655/Bluetooth/RF_Test/main.c b/Examples/MAX32655/Bluetooth/RF_Test/main.c index 002c1ab111a..f674337c47e 100644 --- a/Examples/MAX32655/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32655/Bluetooth/RF_Test/main.c @@ -706,8 +706,11 @@ void txTestTask(void *pvParameters) if (testConfig.testType == BLE_TX_TEST) { res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0); } else { - // Transmitters decision if it is S2 or S8. - res = LlEnhancedRxTest(testConfig.channel, LL_PHY_LE_CODED, 0, 0); + // Transmitters decision if it is S2 or S8. + if(phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2 ) { + phy = LL_PHY_LE_CODED; + } + res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0); } xTaskResumeAll(); //Restore scheduler diff --git a/Examples/MAX32665/Bluetooth/RF_Test/main.c b/Examples/MAX32665/Bluetooth/RF_Test/main.c index 3a97d35640d..6d78adc0c5f 100644 --- a/Examples/MAX32665/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32665/Bluetooth/RF_Test/main.c @@ -709,8 +709,11 @@ void txTestTask(void *pvParameters) if (testConfig.testType == BLE_TX_TEST) { res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0); } else { - // Transmitters decision if S2 or S8 - res = LlEnhancedRxTest(testConfig.channel, LL_PHY_LE_CODED, 0, 0); + // Transmitters decision if it is S2 or S8. + if(phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2 ) { + phy = LL_PHY_LE_CODED; + } + res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0); } xTaskResumeAll(); //Restore scheduler diff --git a/Examples/MAX32690/Bluetooth/RF_Test/main.c b/Examples/MAX32690/Bluetooth/RF_Test/main.c index 54c1c113fd8..1f46ec0e309 100644 --- a/Examples/MAX32690/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32690/Bluetooth/RF_Test/main.c @@ -710,8 +710,11 @@ void txTestTask(void *pvParameters) if (testConfig.testType == BLE_TX_TEST) { res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0); } else { - // Transmitters decision if S2 or S8 - res = LlEnhancedRxTest(testConfig.channel, LL_PHY_LE_CODED, 0, 0); + // Transmitters decision if it is S2 or S8. + if(phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2 ) { + phy = LL_PHY_LE_CODED; + } + res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0); } xTaskResumeAll(); //Restore scheduler From 6bc2ab712e0a6ea6ee994c31d8d2987165e881ca Mon Sep 17 00:00:00 2001 From: EricB-ADI Date: Tue, 5 Nov 2024 15:36:01 +0000 Subject: [PATCH 4/4] clang-format bot reformatting. --- Examples/MAX32655/Bluetooth/RF_Test/main.c | 4 ++-- Examples/MAX32665/Bluetooth/RF_Test/main.c | 4 ++-- Examples/MAX32690/Bluetooth/RF_Test/main.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Examples/MAX32655/Bluetooth/RF_Test/main.c b/Examples/MAX32655/Bluetooth/RF_Test/main.c index f674337c47e..f2919ceb67c 100644 --- a/Examples/MAX32655/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32655/Bluetooth/RF_Test/main.c @@ -706,8 +706,8 @@ void txTestTask(void *pvParameters) if (testConfig.testType == BLE_TX_TEST) { res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0); } else { - // Transmitters decision if it is S2 or S8. - if(phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2 ) { + // Transmitters decision if it is S2 or S8. + if (phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2) { phy = LL_PHY_LE_CODED; } res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0); diff --git a/Examples/MAX32665/Bluetooth/RF_Test/main.c b/Examples/MAX32665/Bluetooth/RF_Test/main.c index 6d78adc0c5f..87cd83fe309 100644 --- a/Examples/MAX32665/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32665/Bluetooth/RF_Test/main.c @@ -709,8 +709,8 @@ void txTestTask(void *pvParameters) if (testConfig.testType == BLE_TX_TEST) { res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0); } else { - // Transmitters decision if it is S2 or S8. - if(phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2 ) { + // Transmitters decision if it is S2 or S8. + if (phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2) { phy = LL_PHY_LE_CODED; } res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0); diff --git a/Examples/MAX32690/Bluetooth/RF_Test/main.c b/Examples/MAX32690/Bluetooth/RF_Test/main.c index 1f46ec0e309..05335263ec9 100644 --- a/Examples/MAX32690/Bluetooth/RF_Test/main.c +++ b/Examples/MAX32690/Bluetooth/RF_Test/main.c @@ -710,8 +710,8 @@ void txTestTask(void *pvParameters) if (testConfig.testType == BLE_TX_TEST) { res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0); } else { - // Transmitters decision if it is S2 or S8. - if(phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2 ) { + // Transmitters decision if it is S2 or S8. + if (phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2) { phy = LL_PHY_LE_CODED; } res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0);