Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/targets/f6/furi_hal/furi_hal_pwm.h')
-rw-r--r--firmware/targets/f6/furi_hal/furi_hal_pwm.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/firmware/targets/f6/furi_hal/furi_hal_pwm.h b/firmware/targets/f6/furi_hal/furi_hal_pwm.h
new file mode 100644
index 00000000..58b5701e
--- /dev/null
+++ b/firmware/targets/f6/furi_hal/furi_hal_pwm.h
@@ -0,0 +1,16 @@
+#pragma once
+#include "main.h"
+#include "stdbool.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void hal_pwm_set(float value, float freq, TIM_HandleTypeDef* tim, uint32_t channel);
+void hal_pwmn_set(float value, float freq, TIM_HandleTypeDef* tim, uint32_t channel);
+void hal_pwm_stop(TIM_HandleTypeDef* tim, uint32_t channel);
+void hal_pwmn_stop(TIM_HandleTypeDef* tim, uint32_t channel);
+
+#ifdef __cplusplus
+}
+#endif