mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-05 18:21:54 +00:00
added profiler and updated delay implementation
This commit is contained in:
@@ -58,6 +58,7 @@ namespace sta
|
||||
*/
|
||||
#define _STA_STM32_PCLK_IDX_MAP(type, idx) STA_STM32_ ## type ## _ ## idx ## _PCLK_IDX
|
||||
// Get HAL handle to PCLK index map macro
|
||||
|
||||
/**
|
||||
* @brief Map instance handle to PCLK index.
|
||||
*
|
||||
|
@@ -16,12 +16,27 @@ namespace sta
|
||||
* @return Time in milliseconds
|
||||
*/
|
||||
using TimeMsFn = uint32_t (*)();
|
||||
|
||||
/**
|
||||
* @brief Signature for microseconds precision time.
|
||||
*
|
||||
* @return Time in microseconds
|
||||
*/
|
||||
using TimeUsFn = uint32_t (*)();
|
||||
|
||||
/**
|
||||
* @brief Gets the current time in milliseconds.
|
||||
*
|
||||
* @return Time in milliseconds
|
||||
*/
|
||||
uint32_t timeMs();
|
||||
|
||||
/**
|
||||
* @brief Gets the current time in microseconds.
|
||||
*
|
||||
* @return Time in microseconds
|
||||
*/
|
||||
uint32_t timeUs();
|
||||
} // namespace sta
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user