9 lines
194 B
C
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);
|