142142#error "SYS clock frequency for M7 core doesn't match CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC"
143143#endif
144144
145- /* end of clock feasability check */
145+ /* end of clock feasibility check */
146146#endif /* CONFIG_CPU_CORTEX_M7 */
147147
148148
@@ -329,7 +329,7 @@ static uint32_t get_vco_output_range(uint32_t vco_input_range)
329329
330330#endif /* ! CONFIG_CPU_CORTEX_M4 */
331331
332- /** @brief Verifies clock is part of actve clock configuration */
332+ /** @brief Verifies clock is part of active clock configuration */
333333static int enabled_clock (uint32_t src_clk )
334334{
335335
@@ -365,7 +365,7 @@ static inline int stm32_clock_control_on(const struct device *dev,
365365 ARG_UNUSED (dev );
366366
367367 if (IN_RANGE (pclken -> bus , STM32_PERIPH_BUS_MIN , STM32_PERIPH_BUS_MAX ) == 0 ) {
368- /* Attemp to toggle a wrong periph clock bit */
368+ /* Attempt to toggle a wrong periph clock bit */
369369 return - ENOTSUP ;
370370 }
371371
@@ -391,7 +391,7 @@ static inline int stm32_clock_control_off(const struct device *dev,
391391 ARG_UNUSED (dev );
392392
393393 if (IN_RANGE (pclken -> bus , STM32_PERIPH_BUS_MIN , STM32_PERIPH_BUS_MAX ) == 0 ) {
394- /* Attemp to toggle a wrong periph clock bit */
394+ /* Attempt to toggle a wrong periph clock bit */
395395 return - ENOTSUP ;
396396 }
397397
@@ -416,7 +416,7 @@ static inline int stm32_clock_control_configure(const struct device *dev,
416416
417417 err = enabled_clock (pclken -> bus );
418418 if (err < 0 ) {
419- /* Attemp to configure a src clock not available or not valid */
419+ /* Attempt to configure a src clock not available or not valid */
420420 return err ;
421421 }
422422
@@ -852,7 +852,7 @@ int stm32_clock_control_init(const struct device *dev)
852852 /* Configure MCO1/MCO2 based on Kconfig */
853853 stm32_clock_control_mco_init ();
854854
855- /* Set up indiviual enabled clocks */
855+ /* Set up individual enabled clocks */
856856 set_up_fixed_clock_sources ();
857857
858858 /* Set up PLLs */
@@ -877,7 +877,7 @@ int stm32_clock_control_init(const struct device *dev)
877877 LL_SetFlashLatency (new_hclk_freq );
878878 }
879879
880- /* Preset the prescalers prior to chosing SYSCLK */
880+ /* Preset the prescalers prior to choosing SYSCLK */
881881 /* Prevents APB clock to go over limits */
882882 /* Set buses (Sys,AHB, APB1, APB2 & APB4) prescalers */
883883 LL_RCC_SetSysPrescaler (sysclk_prescaler (STM32_D1CPRE ));
0 commit comments