summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/main.cpp b/main.cpp
index 8f1785a..18c2ab6 100644
--- a/main.cpp
+++ b/main.cpp
@@ -76,17 +76,16 @@ void foo(PWMDriver*) {
}
static PWMConfig pwmcfg = {
- foo,
- {
- {PWM_OUTPUT_ACTIVE_HIGH, NULL},
- {PWM_OUTPUT_ACTIVE_HIGH, NULL},
- {PWM_OUTPUT_ACTIVE_HIGH, NULL},
- {PWM_OUTPUT_ACTIVE_HIGH, NULL}
- },
-
- PWM_COMPUTE_PSC(STM32_TIMCLK1, 1000000),
- 20000,
- 0
+ 1000000,
+ 1000000 / 50,
+ foo,
+ {
+ {PWM_OUTPUT_ACTIVE_HIGH, NULL},
+ {PWM_OUTPUT_ACTIVE_HIGH, NULL},
+ {PWM_OUTPUT_ACTIVE_HIGH, NULL},
+ {PWM_OUTPUT_ACTIVE_HIGH, NULL}
+ },
+ 0
};
USBSerial usbs;