mirror of
https://github.com/jhbruhn/eurorack.git
synced 2025-03-15 02:55:49 +00:00
Re-Enlarge settings storage, add some tests to bootloader
This commit is contained in:
parent
44e3792ffb
commit
1715990efb
2 changed files with 16 additions and 3 deletions
|
@ -1,11 +1,18 @@
|
||||||
#include <stm32f37x_conf.h>
|
#include <stm32f37x_conf.h>
|
||||||
|
|
||||||
#include "stmlib/system/bootloader_utils.h"
|
#include "stmlib/system/bootloader_utils.h"
|
||||||
|
#include "stmlib/system/system_clock.h"
|
||||||
#include "midi2cv/drivers/eco_display.h"
|
#include "midi2cv/drivers/eco_display.h"
|
||||||
#include <U8x8lib.h>
|
#include <U8x8lib.h>
|
||||||
|
|
||||||
using namespace stmlib;
|
using namespace stmlib;
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
void SysTick_Handler() {
|
||||||
|
system_clock.Tick();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const uint32_t kStartAddress = 0x08008000;
|
const uint32_t kStartAddress = 0x08008000;
|
||||||
|
|
||||||
EcoDisplay display;
|
EcoDisplay display;
|
||||||
|
@ -14,12 +21,18 @@ int main(void)
|
||||||
{
|
{
|
||||||
SystemInit();
|
SystemInit();
|
||||||
|
|
||||||
|
SysTick_Config(F_CPU / 1000);
|
||||||
|
|
||||||
|
system_clock.Init();
|
||||||
|
|
||||||
display.Init();
|
display.Init();
|
||||||
|
|
||||||
display.u8x8()->setFont(u8x8_font_amstrad_cpc_extended_r);
|
display.u8x8()->setFont(u8x8_font_amstrad_cpc_extended_r);
|
||||||
display.u8x8()->drawString(0, 0, "Moin");
|
display.u8x8()->drawString(0, 0, "Moin");
|
||||||
for (int i = 0; i < 100000000; i++)
|
system_clock.Delay(500);
|
||||||
;
|
display.u8x8()->drawString(0, 10, "i bims");
|
||||||
|
system_clock.Delay(1000);
|
||||||
|
|
||||||
Uninitialize();
|
Uninitialize();
|
||||||
JumpTo(kStartAddress);
|
JumpTo(kStartAddress);
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ class Settings {
|
||||||
State state_;
|
State state_;
|
||||||
|
|
||||||
stmlib::ChunkStorage<
|
stmlib::ChunkStorage<
|
||||||
0x08006000,
|
0x08004000,
|
||||||
0x08008000,
|
0x08008000,
|
||||||
PersistentData,
|
PersistentData,
|
||||||
State>
|
State>
|
||||||
|
|
Loading…
Reference in a new issue