Support FAN03 PWM with reduced frequency on m32a until m1284p port is finished

This commit is contained in:
2024-10-01 03:12:17 +02:00
parent 396662bf7c
commit f85ff6bf3e
3 changed files with 12 additions and 15 deletions

View File

@@ -11,7 +11,7 @@
#define PWM_CYCLE_TOP (F_CPU / 25000 - 1) // 8 MHz / 25 KHz
#define FAN01_MIN_DUTY (PWM_CYCLE_TOP * 0.2f)
#define FAN02_MIN_DUTY (PWM_CYCLE_TOP * 0.2f)
#define FAN03_MIN_DUTY (PWM_CYCLE_TOP * 0.2f)
#define FAN03_MIN_DUTY (0xFF * 0.2f)
int PWM_Init(void);
void PWM_SetValue(int port, int value);