File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -281,12 +281,16 @@ uint32_t HardwareTimer::getLLChannel(uint32_t channel)
281
281
case 1 :
282
282
ll_channel = LL_TIM_CHANNEL_CH1N;
283
283
break ;
284
+ #if defined(LL_TIM_CHANNEL_CH2N)
284
285
case 2 :
285
286
ll_channel = LL_TIM_CHANNEL_CH2N;
286
287
break ;
288
+ #endif
289
+ #if defined(LL_TIM_CHANNEL_CH3N)
287
290
case 3 :
288
291
ll_channel = LL_TIM_CHANNEL_CH3N;
289
292
break ;
293
+ #endif
290
294
#if defined(LL_TIM_CHANNEL_CH4N)
291
295
case 4 :
292
296
ll_channel = LL_TIM_CHANNEL_CH4N;
@@ -1343,6 +1347,8 @@ uint32_t HardwareTimer::getTimerClkFreq()
1343
1347
uint8_t timerClkSrc = getTimerClkSrc (_timerObj.handle .Instance );
1344
1348
uint64_t clkSelection = timerClkSrc == 1 ? RCC_PERIPHCLK_TIMG1 : RCC_PERIPHCLK_TIMG2;
1345
1349
return HAL_RCCEx_GetPeriphCLKFreq (clkSelection);
1350
+ #elif defined(STM32WB0x)
1351
+ return SystemCoreClock;
1346
1352
#else
1347
1353
RCC_ClkInitTypeDef clkconfig = {};
1348
1354
uint32_t pFLatency = 0U ;
You can’t perform that action at this time.
0 commit comments