@@ -211,7 +211,7 @@ void HardwareTimer::pauseChannel(uint32_t channel)
211
211
*/
212
212
void HardwareTimer::resume (void )
213
213
{
214
- // Clear flag and ennable IT
214
+ // Clear flag and enable IT
215
215
if (callbacks[0 ]) {
216
216
__HAL_TIM_CLEAR_FLAG (&(_timerObj.handle ), TIM_FLAG_UPDATE);
217
217
__HAL_TIM_ENABLE_IT (&(_timerObj.handle ), TIM_IT_UPDATE);
@@ -470,7 +470,7 @@ void HardwareTimer::setPrescaleFactor(uint32_t prescaler)
470
470
471
471
/* *
472
472
* @brief Retrieve overflow (rollover) value from hardware register
473
- * @param format of returned value. If ommited default format is Tick
473
+ * @param format of returned value. If omitted default format is Tick
474
474
* @retval overflow depending on format value:
475
475
* TICK_FORMAT: return number of tick for overflow
476
476
* MICROSEC_FORMAT: return number of microsecondes for overflow
@@ -505,7 +505,7 @@ uint32_t HardwareTimer::getOverflow(TimerFormat_t format)
505
505
* (usually the next timer overflow). See setPreloadEnable()
506
506
* for controlling this behaviour.
507
507
* @param overflow: depend on format parameter
508
- * @param format of overflow parameter. If ommited default format is Tick
508
+ * @param format of overflow parameter. If omitted default format is Tick
509
509
* TICK_FORMAT: overflow is the number of tick for overflow
510
510
* MICROSEC_FORMAT: overflow is the number of microsecondes for overflow
511
511
* HERTZ_FORMAT: overflow is the frequency in hertz for overflow
@@ -549,7 +549,7 @@ void HardwareTimer::setOverflow(uint32_t overflow, TimerFormat_t format)
549
549
550
550
/* *
551
551
* @brief Retreive timer counter value
552
- * @param format of returned value. If ommited default format is Tick
552
+ * @param format of returned value. If omitted default format is Tick
553
553
* @retval overflow depending on format value:
554
554
* TICK_FORMAT: return number of tick for counter
555
555
* MICROSEC_FORMAT: return number of microsecondes for counter
@@ -578,7 +578,7 @@ uint32_t HardwareTimer::getCount(TimerFormat_t format)
578
578
/* *
579
579
* @brief Set timer counter value
580
580
* @param counter: depend on format parameter
581
- * @param format of overflow parameter. If ommited default format is Tick
581
+ * @param format of overflow parameter. If omitted default format is Tick
582
582
* TICK_FORMAT: counter is the number of tick
583
583
* MICROSEC_FORMAT: counter is the number of microsecondes
584
584
* HERTZ_FORMAT: counter is the frequency in hertz
@@ -793,7 +793,7 @@ void HardwareTimer::setPreloadEnable(bool value)
793
793
* @brief Set channel Capture/Compare register
794
794
* @param channel: Arduino channel [1..4]
795
795
* @param compare: compare value depending on format
796
- * @param format of compare parameter. If ommited default format is Tick
796
+ * @param format of compare parameter. If omitted default format is Tick
797
797
* TICK_FORMAT: compare is the number of tick
798
798
* MICROSEC_FORMAT: compare is the number of microsecondes
799
799
* HERTZ_FORMAT: compare is the frequency in hertz
@@ -857,7 +857,7 @@ void HardwareTimer::setCaptureCompare(uint32_t channel, uint32_t compare, TimerC
857
857
/* *
858
858
* @brief Retrieve Capture/Compare value
859
859
* @param channel: Arduino channel [1..4]
860
- * @param format of return value. If ommited default format is Tick
860
+ * @param format of return value. If omitted default format is Tick
861
861
* TICK_FORMAT: return value is the number of tick for Capture/Compare value
862
862
* MICROSEC_FORMAT: return value is the number of microsecondes for Capture/Compare value
863
863
* HERTZ_FORMAT: return value is the frequency in hertz for Capture/Compare value
@@ -913,9 +913,9 @@ uint32_t HardwareTimer::getCaptureCompare(uint32_t channel, TimerCompareFormat_
913
913
/* *
914
914
* @param channel: Arduino channel [1..4]
915
915
* @param pin: Arduino pin number, ex D1, 1 or PA1
916
- * @param frequency: PWM frequency expessed in hertz
916
+ * @param frequency: PWM frequency expressed in hertz
917
917
* @param dutycycle: PWM dutycycle expressed in percentage
918
- * @param PeriodCallback: timer period callback (timer rollover upon udate event)
918
+ * @param PeriodCallback: timer period callback (timer rollover upon update event)
919
919
* @param CompareCallback: timer compare callback
920
920
* @retval None
921
921
*/
@@ -928,9 +928,9 @@ void HardwareTimer::setPWM(uint32_t channel, uint32_t pin, uint32_t frequency, u
928
928
* @brief All in one function to configure PWM
929
929
* @param channel: Arduino channel [1..4]
930
930
* @param pin: pin name, ex PB_0
931
- * @param frequency: PWM frequency expessed in hertz
931
+ * @param frequency: PWM frequency expressed in hertz
932
932
* @param dutycycle: PWM dutycycle expressed in percentage
933
- * @param PeriodCallback: timer period callback (timer rollover upon udate event)
933
+ * @param PeriodCallback: timer period callback (timer rollover upon update event)
934
934
* @param CompareCallback: timer compare callback
935
935
* @retval None
936
936
*/
@@ -1033,7 +1033,7 @@ void HardwareTimer::attachInterrupt(uint32_t channel, callback_function_t callba
1033
1033
}
1034
1034
1035
1035
/* *
1036
- * @brief Dettach interrupt callback on Capture/Compare event
1036
+ * @brief Detach interrupt callback on Capture/Compare event
1037
1037
* @param channel: Arduino channel [1..4]
1038
1038
* @retval None
1039
1039
*/
@@ -1118,7 +1118,7 @@ void HardwareTimer::updateCallback(TIM_HandleTypeDef *htim)
1118
1118
}
1119
1119
1120
1120
/* *
1121
- * @brief Generic Caputre and Compare callback which will call user callback
1121
+ * @brief Generic Capture and Compare callback which will call user callback
1122
1122
* @param htim: HAL timer handle
1123
1123
* @retval None
1124
1124
*/
0 commit comments