diff --git a/os/hal/include/hal.h b/os/hal/include/hal.h index 1c62622f9..31d2918d7 100644 --- a/os/hal/include/hal.h +++ b/os/hal/include/hal.h @@ -252,6 +252,11 @@ /* Driver data structures and types. */ /*===========================================================================*/ +/** + * @brief Type of a clock point identifier. + */ +typedef unsigned halclkpt_t; + /*===========================================================================*/ /* Driver macros. */ /*===========================================================================*/ diff --git a/os/hal/ports/STM32/STM32G4xx/hal_lld.h b/os/hal/ports/STM32/STM32G4xx/hal_lld.h index 19a9db32c..652d3de6a 100644 --- a/os/hal/ports/STM32/STM32G4xx/hal_lld.h +++ b/os/hal/ports/STM32/STM32G4xx/hal_lld.h @@ -1542,11 +1542,6 @@ /* Driver data structures and types. */ /*===========================================================================*/ -/** - * @brief Type of a clock point identifier. - */ -typedef unsigned halclkpt_t; - #if defined(HAL_LLD_USE_CLOCK_MANAGEMENT) || defined(__DOXYGEN__) /** * @brief Type of a clock point frequency in Hz. diff --git a/os/hal/templates/hal_lld.h b/os/hal/templates/hal_lld.h index 3a4f011d5..d68ac355b 100644 --- a/os/hal/templates/hal_lld.h +++ b/os/hal/templates/hal_lld.h @@ -67,14 +67,6 @@ /*===========================================================================*/ #if defined(HAL_LLD_USE_CLOCK_MANAGEMENT) || defined(__DOXYGEN__) -/** - * @brief Type of clock point names. - */ -typedef enum { - clk_core = 0, - clk_peripherals = 1 -} halclkpt_t; - /** * @brief Type of a clock point frequency in Hz. */