Configure PWM timers for 25 KHz

This commit is contained in:
2024-09-02 23:12:19 +02:00
parent d60efc009e
commit 4453156641
3 changed files with 29 additions and 28 deletions

View File

@@ -3,15 +3,14 @@
#include <stdarg.h>
#define BIT(n) (0x1U << (n))
#define UNUSED(s) (void)(s)
#define BIT(n) (0x1U << (n))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define CLAMP(n, hi, lo) (MIN(hi, MAX(n, lo)))
#define CLAMP(n, hi, lo) (MIN((hi), MAX((n), (lo))))
void Info(const char *fmt, ...);
void Error(const char *fmt, ...);
double Clamp(double n, double upper, double lower);
#include <util/delay.h>
#define Sleep(ms) _delay_ms(ms)