From 409ddd98c7ab8311bebd81cf3d0d46233e1bde2f Mon Sep 17 00:00:00 2001 From: EricB-ADI <122300463+EricB-ADI@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:30:41 -0600 Subject: [PATCH 1/3] added declaration for PalBbIsEnabled --- Libraries/Cordio/platform/include/pal_bb.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Libraries/Cordio/platform/include/pal_bb.h b/Libraries/Cordio/platform/include/pal_bb.h index 0fc16a6661a..7c3a08c9e84 100644 --- a/Libraries/Cordio/platform/include/pal_bb.h +++ b/Libraries/Cordio/platform/include/pal_bb.h @@ -250,6 +250,17 @@ void PalBbLoadCfg(PalBbCfg_t *pCfg); /*************************************************************************************************/ uint32_t PalBbGetCurrentTime(void); +/*************************************************************************************************/ +/*! + * \brief Get the current BB clock value in microseconds. + * + * \return true is BB is enabled + * + * Checks to see if BB is enabled. + */ +/*************************************************************************************************/ +bool PalBbIsEnabled(void); + /*************************************************************************************************/ /*! * \brief Get the current FRC time. From dea085696a0b25101b24f7c49f2790ff9114d37e Mon Sep 17 00:00:00 2001 From: EricB-ADI <122300463+EricB-ADI@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:33:23 -0600 Subject: [PATCH 2/3] moved api to group with Enable --- Libraries/Cordio/platform/include/pal_bb.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Libraries/Cordio/platform/include/pal_bb.h b/Libraries/Cordio/platform/include/pal_bb.h index 7c3a08c9e84..7450a9232ae 100644 --- a/Libraries/Cordio/platform/include/pal_bb.h +++ b/Libraries/Cordio/platform/include/pal_bb.h @@ -210,6 +210,17 @@ void PalBbRestore(void); /*************************************************************************************************/ void PalBbEnable(void); +/*************************************************************************************************/ +/*! + * \brief Get the current BB clock value in microseconds. + * + * \return true is BB is enabled + * + * Checks to see if BB is enabled. + */ +/*************************************************************************************************/ +bool PalBbIsEnabled(void); + /*************************************************************************************************/ /*! * \brief Disable the BB hardware. @@ -250,17 +261,6 @@ void PalBbLoadCfg(PalBbCfg_t *pCfg); /*************************************************************************************************/ uint32_t PalBbGetCurrentTime(void); -/*************************************************************************************************/ -/*! - * \brief Get the current BB clock value in microseconds. - * - * \return true is BB is enabled - * - * Checks to see if BB is enabled. - */ -/*************************************************************************************************/ -bool PalBbIsEnabled(void); - /*************************************************************************************************/ /*! * \brief Get the current FRC time. From 78a886241876623968e967a29e9101f0396f1e5d Mon Sep 17 00:00:00 2001 From: EricB-ADI <122300463+EricB-ADI@users.noreply.github.com> Date: Mon, 4 Nov 2024 13:46:56 -0600 Subject: [PATCH 3/3] Update pal_bb.h --- Libraries/Cordio/platform/include/pal_bb.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Libraries/Cordio/platform/include/pal_bb.h b/Libraries/Cordio/platform/include/pal_bb.h index 7450a9232ae..aba61dbedaf 100644 --- a/Libraries/Cordio/platform/include/pal_bb.h +++ b/Libraries/Cordio/platform/include/pal_bb.h @@ -212,11 +212,9 @@ void PalBbEnable(void); /*************************************************************************************************/ /*! - * \brief Get the current BB clock value in microseconds. + * \brief Checks to see if BB is enabled. * * \return true is BB is enabled - * - * Checks to see if BB is enabled. */ /*************************************************************************************************/ bool PalBbIsEnabled(void);