- ESP32 compile fixes
- ESP32: let FreeRTOS scheduler decide on which core to run each thread
This commit is contained in:
parent
6ad2c2c3ad
commit
85d7c57453
5 changed files with 7 additions and 9 deletions
|
@ -517,14 +517,10 @@ void setup()
|
||||||
Serial.println(F("Connect TTY to bus"));
|
Serial.println(F("Connect TTY to bus"));
|
||||||
b->add_tty(tty_);
|
b->add_tty(tty_);
|
||||||
|
|
||||||
Serial.print(F("Starting panel (on CPU 0, main emulator runs on CPU "));
|
Serial.println(F("Starting panel"));
|
||||||
Serial.print(xPortGetCoreID());
|
xTaskCreate(&console_thread_wrapper_panel, "panel", 2048, cnsl, 1, nullptr);
|
||||||
Serial.println(F(")"));
|
|
||||||
xTaskCreatePinnedToCore(&console_thread_wrapper_panel, "panel", 2048, cnsl, 1, nullptr, 0);
|
|
||||||
|
|
||||||
xTaskCreatePinnedToCore(&console_thread_wrapper_io, "c-io", 2048, cnsl, 1, nullptr, 0);
|
xTaskCreate(&console_thread_wrapper_io, "c-io", 2048, cnsl, 1, nullptr);
|
||||||
|
|
||||||
// setup_wifi_stations();
|
|
||||||
|
|
||||||
Serial.print(F("Free RAM after init: "));
|
Serial.print(F("Free RAM after init: "));
|
||||||
Serial.println(ESP.getFreeHeap());
|
Serial.println(ESP.getFreeHeap());
|
||||||
|
|
1
ESP32/win32.cpp
Symbolic link
1
ESP32/win32.cpp
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../win32.cpp
|
1
ESP32/win32.h
Symbolic link
1
ESP32/win32.h
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../win32.h
|
|
@ -21,7 +21,7 @@
|
||||||
{
|
{
|
||||||
int e = errno;
|
int e = errno;
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32) && !defined(ESP32)
|
||||||
(void)endwin();
|
(void)endwin();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ void thread_wrapper_kw11(void *p)
|
||||||
kw11_l::kw11_l(bus *const b, console *const cnsl) : b(b), cnsl(cnsl)
|
kw11_l::kw11_l(bus *const b, console *const cnsl) : b(b), cnsl(cnsl)
|
||||||
{
|
{
|
||||||
#if defined(ESP32)
|
#if defined(ESP32)
|
||||||
xTaskCreatePinnedToCore(&thread_wrapper_kw11, "kw11-l", 2048, this, 1, nullptr, 0);
|
xTaskCreate(&thread_wrapper_kw11, "kw11-l", 2048, this, 1, nullptr);
|
||||||
#else
|
#else
|
||||||
th = new std::thread(std::ref(*this));
|
th = new std::thread(std::ref(*this));
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue