From c721e6405ff7315be093991eae3870999e4f0101 Mon Sep 17 00:00:00 2001 From: Adam Greenwood-Byrne Date: Tue, 23 Feb 2021 16:27:12 +0000 Subject: [PATCH] Finalised visuals for part10 --- part10-multicore/kernel.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/part10-multicore/kernel.c b/part10-multicore/kernel.c index f9c6f7f..6c8c86f 100644 --- a/part10-multicore/kernel.c +++ b/part10-multicore/kernel.c @@ -211,20 +211,21 @@ void core2_main(void) if (core2_val < 100) core2_val++; } debugstr("done"); + + drawProgress(2, 100); } void core1_main(void) { - unsigned int core1_val = 0; - clear_core1(); // Only run once + drawProgress(1, 50); + debugstr("Playing on CPU Core #1... "); playaudio_cpu(); debugstr("done"); debugcrlf(); - core1_val = 100; - drawProgress(1, core1_val); + drawProgress(1, 100); start_core2(core2_main); // Kick it off on core 2 }