does not even compile yet

This commit is contained in:
folkert van heusden 2023-03-22 13:01:01 +01:00
parent 9040a2b075
commit 22cacbe020
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1
36 changed files with 71 additions and 2 deletions

1
RP2040/bus.cpp Symbolic link
View file

@ -0,0 +1 @@
../bus.cpp

1
RP2040/bus.h Symbolic link
View file

@ -0,0 +1 @@
../bus.h

1
RP2040/console.cpp Symbolic link
View file

@ -0,0 +1 @@
../console.cpp

1
RP2040/console.h Symbolic link
View file

@ -0,0 +1 @@
../console.h

1
RP2040/cpu.cpp Symbolic link
View file

@ -0,0 +1 @@
../cpu.cpp

1
RP2040/cpu.h Symbolic link
View file

@ -0,0 +1 @@
../cpu.h

1
RP2040/debugger.cpp Symbolic link
View file

@ -0,0 +1 @@
../debugger.cpp

1
RP2040/debugger.h Symbolic link
View file

@ -0,0 +1 @@
../debugger.h

1
RP2040/disk_backend.cpp Symbolic link
View file

@ -0,0 +1 @@
../disk_backend.cpp

1
RP2040/disk_backend.h Symbolic link
View file

@ -0,0 +1 @@
../disk_backend.h

View file

@ -0,0 +1 @@
../disk_backend_file.cpp

1
RP2040/disk_backend_file.h Symbolic link
View file

@ -0,0 +1 @@
../disk_backend_file.h

1
RP2040/error.cpp Symbolic link
View file

@ -0,0 +1 @@
../error.cpp

1
RP2040/error.h Symbolic link
View file

@ -0,0 +1 @@
../error.h

1
RP2040/gen.h Symbolic link
View file

@ -0,0 +1 @@
../gen.h

1
RP2040/kw11-l.cpp Symbolic link
View file

@ -0,0 +1 @@
../kw11-l.cpp

1
RP2040/kw11-l.h Symbolic link
View file

@ -0,0 +1 @@
../kw11-l.h

1
RP2040/loaders.cpp Symbolic link
View file

@ -0,0 +1 @@
../loaders.cpp

1
RP2040/loaders.h Symbolic link
View file

@ -0,0 +1 @@
../loaders.h

1
RP2040/log.cpp Symbolic link
View file

@ -0,0 +1 @@
../log.cpp

1
RP2040/log.h Symbolic link
View file

@ -0,0 +1 @@
../log.h

1
RP2040/memory.cpp Symbolic link
View file

@ -0,0 +1 @@
../memory.cpp

1
RP2040/memory.h Symbolic link
View file

@ -0,0 +1 @@
../memory.h

17
RP2040/platformio.ini Normal file
View file

@ -0,0 +1,17 @@
[platformio]
default_envs = RP2040
src_dir = .
[env:RP2040]
lib_ldf_mode = deep+
src_filter = +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/> -<build> -<player.cpp>
platform = raspberrypi
board = pico
framework = arduino
monitor_speed = 115200
upload_speed = 1000000
lib_deps = greiman/SdFat@^2.1.2
adafruit/Adafruit NeoPixel@^1.10.4
build_flags = -std=gnu++17 -Ofast -DRP2040=1 -ggdb3
#-D_GLIBCXX_USE_C99
build_unflags = -std=gnu++14 -Os

1
RP2040/rk05.cpp Symbolic link
View file

@ -0,0 +1 @@
../rk05.cpp

1
RP2040/rk05.h Symbolic link
View file

@ -0,0 +1 @@
../rk05.h

1
RP2040/rl02.cpp Symbolic link
View file

@ -0,0 +1 @@
../rl02.cpp

1
RP2040/rl02.h Symbolic link
View file

@ -0,0 +1 @@
../rl02.h

11
RP2040/rp2040.h Normal file
View file

@ -0,0 +1,11 @@
#pragma once
#if defined(RP2040)
#include <Arduino.h>
#include <SPI.h>
#define USE_SDFAT
#define SD_FAT_TYPE 1
#include <SdFat.h>
#endif

1
RP2040/tm-11.cpp Symbolic link
View file

@ -0,0 +1 @@
../tm-11.cpp

1
RP2040/tm-11.h Symbolic link
View file

@ -0,0 +1 @@
../tm-11.h

1
RP2040/tty.cpp Symbolic link
View file

@ -0,0 +1 @@
../tty.cpp

1
RP2040/tty.h Symbolic link
View file

@ -0,0 +1 @@
../tty.h

1
RP2040/utils.cpp Symbolic link
View file

@ -0,0 +1 @@
../utils.cpp

1
RP2040/utils.h Symbolic link
View file

@ -0,0 +1 @@
../utils.h

View file

@ -6,8 +6,12 @@
#include "utils.h" #include "utils.h"
#if defined(ESP32) || defined(RP2040)
#if defined(ESP32) #if defined(ESP32)
#include "esp32.h" #include "esp32.h"
#else
#include "rp2040.h"
#endif
void setBootLoader(bus *const b); void setBootLoader(bus *const b);
@ -348,12 +352,14 @@ void debugger(console *const cnsl, bus *const b, std::atomic_uint32_t *const sto
#endif #endif
continue; continue;
} }
#if defined(ESP32) #if defined(ESP32) || define(RP2040)
else if (cmd == "cfgdisk") { else if (cmd == "cfgdisk") {
configure_disk(cnsl); configure_disk(cnsl);
continue; continue;
} }
#endif
#if defined(ESP32)
else if (cmd == "cfgnet") { else if (cmd == "cfgnet") {
configure_network(cnsl); configure_network(cnsl);
@ -374,7 +380,7 @@ void debugger(console *const cnsl, bus *const b, std::atomic_uint32_t *const sto
else if (cmd == "help" || cmd == "h" || cmd == "?") { else if (cmd == "help" || cmd == "h" || cmd == "?") {
cnsl->put_string_lf("disassemble/d - show current instruction (pc=/n=)"); cnsl->put_string_lf("disassemble/d - show current instruction (pc=/n=)");
cnsl->put_string_lf("go - run until trap or ^e"); cnsl->put_string_lf("go - run until trap or ^e");
#if !defined(ESP32) #if !defined(ESP32) && !define(RP2040)
cnsl->put_string_lf("quit/q - stop emulator"); cnsl->put_string_lf("quit/q - stop emulator");
#endif #endif
cnsl->put_string_lf("examine/e - show memory address (<b|w> <octal address> [<n>])"); cnsl->put_string_lf("examine/e - show memory address (<b|w> <octal address> [<n>])");
@ -390,6 +396,8 @@ void debugger(console *const cnsl, bus *const b, std::atomic_uint32_t *const sto
#if defined(ESP32) #if defined(ESP32)
cnsl->put_string_lf("cfgnet - configure network (e.g. WiFi)"); cnsl->put_string_lf("cfgnet - configure network (e.g. WiFi)");
cnsl->put_string_lf("startnet - start network"); cnsl->put_string_lf("startnet - start network");
#endif
#if defined(ESP32) || define(RP2040)
cnsl->put_string_lf("cfgdisk - configure disk"); cnsl->put_string_lf("cfgdisk - configure disk");
#endif #endif