[Core] Allow customizing PWM frequency (#21717)
* [Core] Allow customizing PWM frequency Some frequencies can cause audible noise. Changing the frequency eliminates that. Signed-off-by: Daniel Schaefer <dhs@frame.work> * docs/feature-backlight: Mention PWM frequency Signed-off-by: Daniel Schaefer <dhs@frame.work> --------- Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
@@ -37,7 +37,9 @@
|
||||
# define BACKLIGHT_PAL_MODE (PAL_MODE_ALTERNATE_PWM | PAL_RP_PAD_DRIVE12 | PAL_RP_GPIO_OE)
|
||||
# endif
|
||||
# define BACKLIGHT_PWM_COUNTER_FREQUENCY 1000000
|
||||
# define BACKLIGHT_PWM_PERIOD BACKLIGHT_PWM_COUNTER_FREQUENCY / 2048
|
||||
# ifndef BACKLIGHT_PWM_PERIOD
|
||||
# define BACKLIGHT_PWM_PERIOD BACKLIGHT_PWM_COUNTER_FREQUENCY / 2048
|
||||
# endif
|
||||
|
||||
# ifndef AUDIO_PWM_PAL_MODE
|
||||
# define AUDIO_PWM_PAL_MODE (PAL_MODE_ALTERNATE_PWM | PAL_RP_PAD_DRIVE12 | PAL_RP_GPIO_OE)
|
||||
|
||||
Reference in New Issue
Block a user