From 5e1d81980f16a94c64d3d778bf6468e577982461 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 24 Apr 2021 07:10:12 +0000 Subject: [PATCH] Updated PWM config in various demos. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14284 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- testhal/STM32/STM32F0xx/PWM-ICU/main.c | 1 + testhal/STM32/STM32F1xx/PWM-ICU/main.c | 2 -- testhal/STM32/STM32F37x/PWM-ICU/main.c | 1 + testhal/STM32/STM32F3xx/PWM-ICU/main.c | 1 + testhal/STM32/STM32F4xx/PWM-ICU/main.c | 1 + testhal/STM32/STM32F7xx/PWM-ICU/main.c | 1 + testhal/STM32/STM32L1xx/PWM-ICU/main.c | 1 + 7 files changed, 6 insertions(+), 2 deletions(-) diff --git a/testhal/STM32/STM32F0xx/PWM-ICU/main.c b/testhal/STM32/STM32F0xx/PWM-ICU/main.c index f2f22fb01..3cb7d84f4 100644 --- a/testhal/STM32/STM32F0xx/PWM-ICU/main.c +++ b/testhal/STM32/STM32F0xx/PWM-ICU/main.c @@ -40,6 +40,7 @@ static PWMConfig pwmcfg = { {PWM_OUTPUT_DISABLED, NULL} }, 0, + 0, 0 }; diff --git a/testhal/STM32/STM32F1xx/PWM-ICU/main.c b/testhal/STM32/STM32F1xx/PWM-ICU/main.c index 43c16a8a8..69b5ed5c6 100644 --- a/testhal/STM32/STM32F1xx/PWM-ICU/main.c +++ b/testhal/STM32/STM32F1xx/PWM-ICU/main.c @@ -41,9 +41,7 @@ static PWMConfig pwmcfg = { }, 0, 0, -#if STM32_PWM_USE_ADVANCED 0 -#endif }; icucnt_t last_width, last_period; diff --git a/testhal/STM32/STM32F37x/PWM-ICU/main.c b/testhal/STM32/STM32F37x/PWM-ICU/main.c index f9551c2ff..81598e939 100644 --- a/testhal/STM32/STM32F37x/PWM-ICU/main.c +++ b/testhal/STM32/STM32F37x/PWM-ICU/main.c @@ -40,6 +40,7 @@ static PWMConfig pwmcfg = { {PWM_OUTPUT_DISABLED, NULL} }, 0, + 0, 0 }; diff --git a/testhal/STM32/STM32F3xx/PWM-ICU/main.c b/testhal/STM32/STM32F3xx/PWM-ICU/main.c index f2db9dcd7..c3fc135c0 100644 --- a/testhal/STM32/STM32F3xx/PWM-ICU/main.c +++ b/testhal/STM32/STM32F3xx/PWM-ICU/main.c @@ -40,6 +40,7 @@ static PWMConfig pwmcfg = { {PWM_OUTPUT_DISABLED, NULL} }, 0, + 0, 0 }; diff --git a/testhal/STM32/STM32F4xx/PWM-ICU/main.c b/testhal/STM32/STM32F4xx/PWM-ICU/main.c index 291de746e..d97c2f205 100644 --- a/testhal/STM32/STM32F4xx/PWM-ICU/main.c +++ b/testhal/STM32/STM32F4xx/PWM-ICU/main.c @@ -40,6 +40,7 @@ static PWMConfig pwmcfg = { {PWM_OUTPUT_DISABLED, NULL} }, 0, + 0, 0 }; diff --git a/testhal/STM32/STM32F7xx/PWM-ICU/main.c b/testhal/STM32/STM32F7xx/PWM-ICU/main.c index 0fedcd5c1..712f410a0 100644 --- a/testhal/STM32/STM32F7xx/PWM-ICU/main.c +++ b/testhal/STM32/STM32F7xx/PWM-ICU/main.c @@ -42,6 +42,7 @@ static PWMConfig pwmcfg = { {PWM_OUTPUT_DISABLED, NULL} }, 0, + 0, 0 }; diff --git a/testhal/STM32/STM32L1xx/PWM-ICU/main.c b/testhal/STM32/STM32L1xx/PWM-ICU/main.c index 84252ec3f..3a98ce50c 100644 --- a/testhal/STM32/STM32L1xx/PWM-ICU/main.c +++ b/testhal/STM32/STM32L1xx/PWM-ICU/main.c @@ -40,6 +40,7 @@ static PWMConfig pwmcfg = { {PWM_OUTPUT_DISABLED, NULL} }, 0, + 0, 0 };