refactor(simu): use SDL & ImGui (#6233)
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com> Co-authored-by: Malte Langermann <malte@langermann.net>
This commit is contained in:
co-authored by
raphaelcoeffic
Malte Langermann
parent
14287cb91d
commit
4eddda034d
@@ -31,7 +31,7 @@
|
||||
void backlightEnable(uint8_t level) {}
|
||||
void backlightFullOn() {}
|
||||
void backlightDisable() {}
|
||||
uint8_t isBacklightEnabled() {return false;}
|
||||
bool isBacklightEnabled() { return false; }
|
||||
#elif defined(PCBX9E)
|
||||
void backlightInit()
|
||||
{
|
||||
@@ -65,7 +65,7 @@ void backlightDisable()
|
||||
BACKLIGHT_TIMER->CCR2 = 0;
|
||||
}
|
||||
|
||||
uint8_t isBacklightEnabled()
|
||||
bool isBacklightEnabled()
|
||||
{
|
||||
return (BACKLIGHT_TIMER->CCR1 != 0 || BACKLIGHT_TIMER->CCR2 != 0);
|
||||
}
|
||||
@@ -103,7 +103,7 @@ void backlightDisable()
|
||||
BACKLIGHT_TIMER->CCR2 = 0;
|
||||
}
|
||||
|
||||
uint8_t isBacklightEnabled()
|
||||
bool isBacklightEnabled()
|
||||
{
|
||||
return (BACKLIGHT_TIMER->CCR4 != 0 || BACKLIGHT_TIMER->CCR2 != 0);
|
||||
}
|
||||
@@ -144,7 +144,7 @@ void backlightDisable()
|
||||
BACKLIGHT_COUNTER_REGISTER = 0;
|
||||
}
|
||||
|
||||
uint8_t isBacklightEnabled()
|
||||
bool isBacklightEnabled()
|
||||
{
|
||||
return BACKLIGHT_COUNTER_REGISTER != 0;
|
||||
}
|
||||
@@ -178,7 +178,7 @@ void backlightDisable()
|
||||
BACKLIGHT_TIMER->CCR1 = 0;
|
||||
}
|
||||
|
||||
uint8_t isBacklightEnabled()
|
||||
bool isBacklightEnabled()
|
||||
{
|
||||
return BACKLIGHT_TIMER->CCR1 != 0;
|
||||
}
|
||||
|
||||
@@ -202,7 +202,7 @@ void pwrResetHandler();
|
||||
void backlightInit();
|
||||
void backlightDisable();
|
||||
void backlightFullOn();
|
||||
uint8_t isBacklightEnabled();
|
||||
bool isBacklightEnabled();
|
||||
|
||||
#if defined(PCBX9E) || defined(PCBX9DP)
|
||||
void backlightEnable(uint8_t level, uint8_t color);
|
||||
|
||||
Reference in New Issue
Block a user