mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[bootloader] Fix minimum brightness when booting
This commit is contained in:
@@ -39,6 +39,8 @@ void Bootloader::UpsilonRecoveryMenu::postOpen() {
|
||||
} else if (scan == Ion::Keyboard::State(Ion::Keyboard::Key::OK)) {
|
||||
Slot slot = Slot::Upsilon();
|
||||
Ion::Device::Board::bootloaderMPU();
|
||||
// Deinitialize the backlight to prevent bugs when the firmware boots
|
||||
Ion::Backlight::shutdown();
|
||||
jump_to_firmware(slot.kernelHeader()->stackPointer(), slot.userlandHeader()->upsilonRecoveryBootFunction());
|
||||
for(;;);
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <ion/src/device/shared/drivers/flash.h>
|
||||
#include <bootloader/boot.h>
|
||||
#include <assert.h>
|
||||
#include <ion.h>
|
||||
|
||||
extern "C" void jump_to_firmware(const uint32_t* stackPtr, const void(*startPtr)(void));
|
||||
|
||||
@@ -50,6 +51,9 @@ const UserlandHeader* Slot::userlandHeader() const {
|
||||
// Configure the MPU for the booted firmware
|
||||
Ion::Device::Board::bootloaderMPU();
|
||||
|
||||
// Deinitialize the backlight to prevent bugs when the firmware boots
|
||||
Ion::Backlight::shutdown();
|
||||
|
||||
// Jump
|
||||
jump_to_firmware(kernelHeader()->stackPointer(), kernelHeader()->startPointer());
|
||||
for(;;);
|
||||
|
||||
Reference in New Issue
Block a user