mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Onda VX747 backlight: use a higher frequency to reduce flickering
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21671 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1b752474a6
commit
e63904c7e9
1 changed files with 2 additions and 3 deletions
|
|
@ -39,7 +39,6 @@ static void set_backlight(int val)
|
|||
if(val == old_val)
|
||||
return;
|
||||
|
||||
/* Clock = 32 768 Hz */
|
||||
__tcu_disable_pwm_output(BACKLIGHT_PWM);
|
||||
__tcu_stop_counter(BACKLIGHT_PWM);
|
||||
|
||||
|
|
@ -75,8 +74,8 @@ bool _backlight_init(void)
|
|||
__tcu_set_pwm_output_shutdown_graceful(BACKLIGHT_PWM);
|
||||
__tcu_disable_pwm_output(BACKLIGHT_PWM);
|
||||
|
||||
__tcu_select_rtcclk(BACKLIGHT_PWM); /* 32.768 kHz */
|
||||
__tcu_select_clk_div1(BACKLIGHT_PWM);
|
||||
__tcu_select_extalclk(BACKLIGHT_PWM); /* 12 MHz */
|
||||
__tcu_select_clk_div64(BACKLIGHT_PWM); /* 187.5 kHz */
|
||||
|
||||
__tcu_mask_half_match_irq(BACKLIGHT_PWM);
|
||||
__tcu_mask_full_match_irq(BACKLIGHT_PWM);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue