aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F1xx/PWM-ICU/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32F1xx/PWM-ICU/main.c')
-rw-r--r--testhal/STM32F1xx/PWM-ICU/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/testhal/STM32F1xx/PWM-ICU/main.c b/testhal/STM32F1xx/PWM-ICU/main.c
index ab9cd8be2..fd8fb581f 100644
--- a/testhal/STM32F1xx/PWM-ICU/main.c
+++ b/testhal/STM32F1xx/PWM-ICU/main.c
@@ -34,7 +34,7 @@ static void pwmc1cb(PWMDriver *pwmp) {
}
static PWMConfig pwmcfg = {
- 10000, /* 10KHz PWM clock frequency. */
+ 10000, /* 10kHz PWM clock frequency. */
10000, /* Initial PWM period 1S. */
pwmpcb,
{
@@ -63,9 +63,10 @@ static void icuperiodcb(ICUDriver *icup) {
static ICUConfig icucfg = {
ICU_INPUT_ACTIVE_HIGH,
- 10000, /* 10KHz ICU clock frequency. */
+ 10000, /* 10kHz ICU clock frequency. */
icuwidthcb,
icuperiodcb,
+ NULL,
ICU_CHANNEL_1
};