You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2020/11/17 16:08:20 UTC
[mynewt-core] 01/02: hw/mcu/cmac: Dispatch RF calibration req
This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 9a4a5b8b75511d132fea9f3e0d0e0a467695f2ab
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Mon Nov 16 17:04:13 2020 +0100
hw/mcu/cmac: Dispatch RF calibration req
Handled in mynewt-nimble.
---
hw/mcu/dialog/cmac/src/cmac_isr.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hw/mcu/dialog/cmac/src/cmac_isr.c b/hw/mcu/dialog/cmac/src/cmac_isr.c
index 91876c7..9d90ab9 100644
--- a/hw/mcu/dialog/cmac/src/cmac_isr.c
+++ b/hw/mcu/dialog/cmac/src/cmac_isr.c
@@ -23,6 +23,8 @@
#include "cmac_priv.h"
#include "CMAC.h"
+extern void ble_rf_calibrate_req(void);
+
void
SYS2CMAC_IRQHandler(void)
{
@@ -41,6 +43,10 @@ SYS2CMAC_IRQHandler(void)
cmac_sleep_recalculate();
}
+ if (pending_ops & CMAC_PENDING_OP_RF_CAL) {
+ ble_rf_calibrate_req();
+ }
+
CMAC->CM_EXC_STAT_REG = CMAC_CM_EXC_STAT_REG_EXC_SYS2CMAC_Msk;
}