File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -51,16 +51,15 @@ void CoreSTM32HalBasicTimer::_registerMspCallbacks()
51
51
{
52
52
static auto &self = (*this );
53
53
54
- _hal.HAL_TIM_RegisterCallback (&_htim, HAL_TIM_BASE_MSPINIT_CB_ID, []([[maybe_unused]] TIM_HandleTypeDef *htim) {
55
- self. _hal .HAL_RCC_TIM6_CLK_ENABLE ();
54
+ _hal.HAL_TIM_RegisterCallback (&_htim, HAL_TIM_BASE_MSPINIT_CB_ID, [_hal ]([[maybe_unused]] TIM_HandleTypeDef *htim) {
55
+ _hal.HAL_RCC_TIM6_CLK_ENABLE ();
56
56
57
- self. _hal .HAL_NVIC_SetPriority (TIM6_DAC_IRQn, 0x00 , 0x00 );
58
- self. _hal .HAL_NVIC_EnableIRQ (TIM6_DAC_IRQn);
57
+ _hal.HAL_NVIC_SetPriority (TIM6_DAC_IRQn, 0x00 , 0x00 );
58
+ _hal.HAL_NVIC_EnableIRQ (TIM6_DAC_IRQn);
59
59
});
60
60
61
- _hal.HAL_TIM_RegisterCallback (&_htim, HAL_TIM_BASE_MSPDEINIT_CB_ID, []([[maybe_unused]] TIM_HandleTypeDef *htim) {
62
- self._hal .HAL_RCC_TIM6_CLK_DISABLE ();
63
- });
61
+ _hal.HAL_TIM_RegisterCallback (&_htim, HAL_TIM_BASE_MSPDEINIT_CB_ID,
62
+ []([[maybe_unused]] TIM_HandleTypeDef *htim) { _hal.HAL_RCC_TIM6_CLK_DISABLE (); });
64
63
}
65
64
66
65
void CoreSTM32HalBasicTimer::linkDACTimer (DAC_ChannelConfTypeDef *config)
You can’t perform that action at this time.
0 commit comments