Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/Core/Inc/lp_timer.h')
-rw-r--r--Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/Core/Inc/lp_timer.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/Core/Inc/lp_timer.h b/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/Core/Inc/lp_timer.h
new file mode 100644
index 000000000..cc30a4de0
--- /dev/null
+++ b/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/Core/Inc/lp_timer.h
@@ -0,0 +1,57 @@
+/**
+ ******************************************************************************
+* @file lp_timer.h
+* @brief Header for lp_timer.c module
+ ******************************************************************************
+ * @attention
+ *
+ * Copyright (c) 2019-2021 STMicroelectronics.
+ * All rights reserved.
+ *
+ * This software is licensed under terms that can be found in the LICENSE file
+ * in the root directory of this software component.
+ * If no LICENSE file comes with this software, it is provided AS-IS.
+ *
+ ******************************************************************************
+ */
+
+/* Define to prevent recursive inclusion -------------------------------------*/
+#ifndef __LP_TIMER_H
+#define __LP_TIMER_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Includes ------------------------------------------------------------------*/
+
+ /**
+ * @brief Initialize the low power timer
+ *
+ * @param None
+ * @retval None
+ */
+ void LpTimerInit(void);
+
+ /**
+ * @brief Request to start a low power timer ( running is stop mode )
+ *
+ * @param time_to_sleep : in ms
+ * @retval None
+ */
+ void LpTimerStart(uint32_t time_to_sleep);
+
+ /**
+ * @brief Read how long the timer has run
+ *
+ * @param None
+ * @retval The time elapsed in ms
+ */
+ uint32_t LpGetElapsedTime(void);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /*__LP_TIMER_H */