ESP32: allocate memory & init disks
This commit is contained in:
parent
7cc3dab687
commit
6be8f2c970
1 changed files with 11 additions and 0 deletions
|
@ -70,6 +70,9 @@ std::atomic_bool *running { nullptr };
|
|||
|
||||
bool trace_output { false };
|
||||
|
||||
std::vector<disk_backend *> rk05_files;
|
||||
std::vector<disk_backend *> rl02_files;
|
||||
|
||||
void console_thread_wrapper_panel(void *const c)
|
||||
{
|
||||
console *const cnsl = reinterpret_cast<console *>(c);
|
||||
|
@ -258,12 +261,20 @@ void setup() {
|
|||
Serial.println(F("Init bus"));
|
||||
b = new bus();
|
||||
|
||||
Serial.println(F("Allocate memory"));
|
||||
b->set_memory_size(DEFAULT_N_PAGES);
|
||||
|
||||
Serial.println(F("Init CPU"));
|
||||
c = new cpu(b, &stop_event);
|
||||
|
||||
Serial.println(F("Connect CPU to BUS"));
|
||||
b->add_cpu(c);
|
||||
|
||||
Serial.println(F("Connect RK05 and RL02 to BUS"));
|
||||
b->add_rk05(new rk05(rk05_files, b, cnsl->get_disk_read_activity_flag(), cnsl->get_disk_write_activity_flag()));
|
||||
|
||||
b->add_rl02(new rl02(rl02_files, b, cnsl->get_disk_read_activity_flag(), cnsl->get_disk_write_activity_flag()));
|
||||
|
||||
constexpr uint32_t hwSerialConfig = SERIAL_8N1;
|
||||
uint32_t bitrate = load_serial_speed_configuration();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue