ESP32 compile fixes
This commit is contained in:
parent
8d8af7153b
commit
18cfbaf2d3
7 changed files with 12 additions and 14 deletions
|
@ -10,8 +10,8 @@
|
|||
|
||||
#define NEOPIXELS_PIN 25
|
||||
|
||||
console_esp32::console_esp32(std::atomic_bool *const terminate, std::atomic_bool *const interrupt_emulation, bus *const b) :
|
||||
console(terminate, interrupt_emulation, b)
|
||||
console_esp32::console_esp32(std::atomic_uint32_t *const stop_event, bus *const b) :
|
||||
console(stop_event, b)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ protected:
|
|||
void put_char_ll(const char c) override;
|
||||
|
||||
public:
|
||||
console_esp32(std::atomic_bool *const terminate, std::atomic_bool *const interrupt_emulation, bus *const b);
|
||||
console_esp32(std::atomic_uint32_t *const stop_event, bus *const b);
|
||||
virtual ~console_esp32();
|
||||
|
||||
void put_string_lf(const std::string & what) override;
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "debugger.h"
|
||||
#include "error.h"
|
||||
#include "esp32.h"
|
||||
#include "gen.h"
|
||||
#include "memory.h"
|
||||
#include "tty.h"
|
||||
#include "utils.h"
|
||||
|
@ -24,20 +25,17 @@ cpu *c = nullptr;
|
|||
tty *tty_ = nullptr;
|
||||
console *cnsl = nullptr;
|
||||
|
||||
uint32_t event = 0;
|
||||
|
||||
uint16_t exec_addr = 0;
|
||||
|
||||
uint32_t start_ts = 0;
|
||||
|
||||
SdFat32 sd;
|
||||
|
||||
std::atomic_bool terminate { false };
|
||||
std::atomic_bool interrupt_emulation { false };
|
||||
std::atomic_uint32_t stop_event { EVENT_NONE };
|
||||
|
||||
std::atomic_bool *running { nullptr };
|
||||
std::atomic_bool *running { nullptr };
|
||||
|
||||
bool trace_output { false };
|
||||
bool trace_output { false };
|
||||
|
||||
// std::atomic_bool on_wifi { false };
|
||||
|
||||
|
@ -182,7 +180,7 @@ void setup() {
|
|||
b = new bus();
|
||||
|
||||
Serial.println(F("Init CPU"));
|
||||
c = new cpu(b, &event);
|
||||
c = new cpu(b, &stop_event);
|
||||
|
||||
Serial.println(F("Connect CPU to BUS"));
|
||||
b->add_cpu(c);
|
||||
|
@ -190,7 +188,7 @@ void setup() {
|
|||
c->setEmulateMFPT(true);
|
||||
|
||||
Serial.println(F("Init console"));
|
||||
cnsl = new console_esp32(&terminate, &interrupt_emulation, b);
|
||||
cnsl = new console_esp32(&stop_event, b);
|
||||
|
||||
running = cnsl->get_running_flag();
|
||||
|
||||
|
@ -232,7 +230,7 @@ void setup() {
|
|||
}
|
||||
|
||||
void loop() {
|
||||
debugger(cnsl, b, &interrupt_emulation, false);
|
||||
debugger(cnsl, b, &stop_event, false);
|
||||
|
||||
c->reset();
|
||||
}
|
||||
|
|
1
ESP32/rl02.cpp
Symbolic link
1
ESP32/rl02.cpp
Symbolic link
|
@ -0,0 +1 @@
|
|||
../rl02.cpp
|
1
ESP32/rl02.h
Symbolic link
1
ESP32/rl02.h
Symbolic link
|
@ -0,0 +1 @@
|
|||
../rl02.h
|
|
@ -1 +0,0 @@
|
|||
../rx02.cpp
|
|
@ -1 +0,0 @@
|
|||
../rx02.h
|
Loading…
Add table
Reference in a new issue