-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
The feature is related to changing the PWM/TIM low level implementation.
To be more precise, the module enabling function.
Describe the solution you'd like
Instead of generalized HAL_LL_CCP_MODULE_x_TIMx_ENABLE_BIT macros, use module specified macros as masks.
Describe alternatives you've considered
Suggestion for low level TIM implementation is:
// In the @b _hal_ll_tim_select_timer function.
#ifdef CCP_MODULE_1
#ifdef HAL_LL_CCPTMRS_CCP_MODULE_1
case CCP_MODULE_1:
#ifdef HAL_LL_CCP_MODULE_1_TIM2_ENABLE_MASK
write_reg_bitwise_or( HAL_LL_CCPTMRS_CCP_MODULE_1, HAL_LL_CCP_MODULE_1_TIM2_ENABLE_MASK );
#else
set_reg_bits( HAL_LL_CCPTMRS_CCP_MODULE_1, HAL_LL_CCP_MODULE_1_TIM2_ENABLE_BIT );
#endif
break;
#endif
#endifAdditional context
This will work in congestion with new mcu_definition.h files.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request