mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 19:31:12 +00:00
display: add pwm duty getter
This commit is contained in:
parent
edff6c551d
commit
345d36287e
2 changed files with 6 additions and 0 deletions
|
@ -507,6 +507,11 @@ void display_backlight_brightness(u32 brightness, u32 step_delay)
|
||||||
PWM(PWM_CONTROLLER_PWM_CSR_0) = 0;
|
PWM(PWM_CONTROLLER_PWM_CSR_0) = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
u32 display_get_backlight_brightness()
|
||||||
|
{
|
||||||
|
return ((PWM(PWM_CONTROLLER_PWM_CSR_0) >> 16) & 0xFF);
|
||||||
|
}
|
||||||
|
|
||||||
static void _display_panel_and_hw_end(bool no_panel_deinit)
|
static void _display_panel_and_hw_end(bool no_panel_deinit)
|
||||||
{
|
{
|
||||||
if (no_panel_deinit)
|
if (no_panel_deinit)
|
||||||
|
|
|
@ -706,6 +706,7 @@ void display_color_screen(u32 color);
|
||||||
/*! Switches screen backlight ON/OFF. */
|
/*! Switches screen backlight ON/OFF. */
|
||||||
void display_backlight(bool enable);
|
void display_backlight(bool enable);
|
||||||
void display_backlight_brightness(u32 brightness, u32 step_delay);
|
void display_backlight_brightness(u32 brightness, u32 step_delay);
|
||||||
|
u32 display_get_backlight_brightness();
|
||||||
|
|
||||||
/*! Init display in full 1280x720 resolution (B8G8R8A8, line stride 768, framebuffer size = 1280*768*4 bytes). */
|
/*! Init display in full 1280x720 resolution (B8G8R8A8, line stride 768, framebuffer size = 1280*768*4 bytes). */
|
||||||
u32 *display_init_framebuffer_pitch();
|
u32 *display_init_framebuffer_pitch();
|
||||||
|
|
Loading…
Reference in a new issue