This commit is contained in:
2025-12-15 13:20:58 +01:00
parent 7e02e20878
commit b064038c2d
9 changed files with 27 additions and 10 deletions

View File

@@ -10,6 +10,7 @@
#include "../debug/output.h"
#include "../object/bbuffer.h"
#include "epilogues.h"
#include "../debug/copystream.h"
//! \brief The protected data for the epilogue level
static Vault global_vault;

View File

@@ -12,17 +12,21 @@
#include "../thread/scheduler.h"
#include "../types.h"
#include "./epilogues.h"
#include "../device/serialstream.h"
//! \brief The epilogue vault contains the protected data for the epilogue level
struct Vault {
TextStream kout = TextStream(0, 80, 0, 17, true);
//TextStream dout = TextStream(0, 80, 17, 25);
//SerialStream sout;
Scheduler scheduler;
Bellringer bellringer;
BBuffer<Key, 16> keys;
Semaphore keys_sem;
static constexpr int MAX_SEMS =32;
Semaphore sems[MAX_SEMS];
static constexpr int MAX_SEMS =32;
Semaphore sems[MAX_SEMS];
// Ignore this for now, this is for a bonus task
Graphics graphics;