mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-22 02:00:40 +00:00
Finalised visuals for part10
This commit is contained in:
parent
89f33b4b83
commit
c721e6405f
1 changed files with 5 additions and 4 deletions
|
@ -211,20 +211,21 @@ void core2_main(void)
|
||||||
if (core2_val < 100) core2_val++;
|
if (core2_val < 100) core2_val++;
|
||||||
}
|
}
|
||||||
debugstr("done");
|
debugstr("done");
|
||||||
|
|
||||||
|
drawProgress(2, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
void core1_main(void)
|
void core1_main(void)
|
||||||
{
|
{
|
||||||
unsigned int core1_val = 0;
|
|
||||||
|
|
||||||
clear_core1(); // Only run once
|
clear_core1(); // Only run once
|
||||||
|
|
||||||
|
drawProgress(1, 50);
|
||||||
|
|
||||||
debugstr("Playing on CPU Core #1... ");
|
debugstr("Playing on CPU Core #1... ");
|
||||||
playaudio_cpu();
|
playaudio_cpu();
|
||||||
debugstr("done"); debugcrlf();
|
debugstr("done"); debugcrlf();
|
||||||
|
|
||||||
core1_val = 100;
|
drawProgress(1, 100);
|
||||||
drawProgress(1, core1_val);
|
|
||||||
|
|
||||||
start_core2(core2_main); // Kick it off on core 2
|
start_core2(core2_main); // Kick it off on core 2
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue