cm3-bluepill/timer.h
2025-07-16 21:56:11 +02:00

9 lines
194 B
C

#pragma once
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/timer.h>
#define PRESCALER (72)
#define ARR_VAL (1000)
void timer_setup(void);
void timer_pwm_set_duty(float duty);