Explorar el Código

emul: bring "hw" subfolders one level higher

master
Virgil Dupras hace 3 años
padre
commit
46c95320af
Se han modificado 35 ficheros con 18 adiciones y 29 borrados
  1. +1
    -2
      emul/README.md
  2. +0
    -10
      emul/hw/README.md
  3. +0
    -0
      emul/rc2014/.gitignore
  4. +3
    -3
      emul/rc2014/Makefile
  5. +0
    -0
      emul/rc2014/README.md
  6. +0
    -0
      emul/rc2014/acia.c
  7. +0
    -0
      emul/rc2014/acia.h
  8. +1
    -1
      emul/rc2014/classic.c
  9. +0
    -0
      emul/rc2014/sdc.c
  10. +0
    -0
      emul/rc2014/sdc.h
  11. +0
    -0
      emul/rc2014/sio.c
  12. +0
    -0
      emul/rc2014/sio.h
  13. +0
    -0
      emul/sms/.gitignore
  14. +3
    -3
      emul/sms/Makefile
  15. +0
    -0
      emul/sms/README.md
  16. +0
    -0
      emul/sms/kbd.c
  17. +0
    -0
      emul/sms/kbd.h
  18. +0
    -0
      emul/sms/pad.c
  19. +0
    -0
      emul/sms/pad.h
  20. +0
    -0
      emul/sms/port.c
  21. +1
    -1
      emul/sms/port.h
  22. +1
    -1
      emul/sms/sms.c
  23. +0
    -0
      emul/sms/vdp.c
  24. +0
    -0
      emul/sms/vdp.h
  25. +0
    -0
      emul/ti/.gitignore
  26. +3
    -3
      emul/ti/Makefile
  27. +0
    -0
      emul/ti/README.md
  28. +0
    -0
      emul/ti/kbd.c
  29. +0
    -0
      emul/ti/kbd.h
  30. +0
    -0
      emul/ti/t6a04.c
  31. +0
    -0
      emul/ti/t6a04.h
  32. +1
    -1
      emul/ti/ti84.c
  33. +1
    -1
      recipes/rc2014/Makefile
  34. +2
    -2
      recipes/sms/Makefile
  35. +1
    -1
      recipes/ti84/Makefile

+ 1
- 2
emul/README.md Ver fichero

@@ -28,7 +28,6 @@ because the goal here is to facilitate "high level" development.

These apps run on imaginary hardware and use many cheats to simplify I/Os.

For real hardware emulation (which helps developing drivers), see the `hw`
folder.
For real hardware emulation (which helps developing drivers), see subfolders.

[libz80]: https://github.com/ggambetta/libz80

+ 0
- 10
emul/hw/README.md Ver fichero

@@ -1,10 +0,0 @@
# Hardware emulation

In this folder, we emulate some of the hardware used in recipes. The emulation
is done in a simplistic manner, just enough to verify that the driver code for
it works generally well. No tricky stuff implemented.

This kind of emulation is useful for detecting obvious regressions without
having to get the code on actual hardware for the upteenth time.

To use, go to the appropriate subfolder and read README there.

emul/hw/rc2014/.gitignore → emul/rc2014/.gitignore Ver fichero


emul/hw/rc2014/Makefile → emul/rc2014/Makefile Ver fichero

@@ -1,12 +1,12 @@
EXTOBJS = ../../emul.o ../../libz80/libz80.o
EXTOBJS = ../emul.o ../libz80/libz80.o
OBJS = sio.o acia.o sdc.o classic.o
TARGET = classic

.PHONY: all
all: $(TARGET)

../../emul.o:
make -C ../..
../emul.o:
make -C ..

$(TARGET): $(OBJS) $(EXTOBJS)
$(CC) $(OBJS) $(EXTOBJS) -o $@

emul/hw/rc2014/README.md → emul/rc2014/README.md Ver fichero


emul/hw/rc2014/acia.c → emul/rc2014/acia.c Ver fichero


emul/hw/rc2014/acia.h → emul/rc2014/acia.h Ver fichero


emul/hw/rc2014/classic.c → emul/rc2014/classic.c Ver fichero

@@ -11,7 +11,7 @@
#include <stdio.h>
#include <unistd.h>
#include <termios.h>
#include "../../emul.h"
#include "../emul.h"
#include "acia.h"
#include "sio.h"
#include "sdc.h"

emul/hw/rc2014/sdc.c → emul/rc2014/sdc.c Ver fichero


emul/hw/rc2014/sdc.h → emul/rc2014/sdc.h Ver fichero


emul/hw/rc2014/sio.c → emul/rc2014/sio.c Ver fichero


emul/hw/rc2014/sio.h → emul/rc2014/sio.h Ver fichero


emul/hw/sms/.gitignore → emul/sms/.gitignore Ver fichero


emul/hw/sms/Makefile → emul/sms/Makefile Ver fichero

@@ -1,4 +1,4 @@
EXTOBJS = ../../emul.o ../../libz80/libz80.o
EXTOBJS = ../emul.o ../libz80/libz80.o
OBJS = sms.o vdp.o port.o pad.o kbd.o
TARGET = sms
CFLAGS += `pkg-config --cflags xcb`
@@ -7,8 +7,8 @@ LDFLAGS += `pkg-config --libs xcb`
.PHONY: all
all: $(TARGET)

../../emul.o:
make -C ../..
../emul.o:
make -C ..

$(TARGET): $(OBJS) $(EXTOBJS)
$(CC) $(OBJS) $(EXTOBJS) -o $@ $(LDFLAGS)

emul/hw/sms/README.md → emul/sms/README.md Ver fichero


emul/hw/sms/kbd.c → emul/sms/kbd.c Ver fichero


emul/hw/sms/kbd.h → emul/sms/kbd.h Ver fichero


emul/hw/sms/pad.c → emul/sms/pad.c Ver fichero


emul/hw/sms/pad.h → emul/sms/pad.h Ver fichero


emul/hw/sms/port.c → emul/sms/port.c Ver fichero


emul/hw/sms/port.h → emul/sms/port.h Ver fichero

@@ -1,5 +1,5 @@
#pragma once
#include "../../emul.h"
#include "../emul.h"

// Each port is a bitmask of each pin's status. 1 means high.
// From Bit 0 to 6: up, down, left, right, TL, TR, TH

emul/hw/sms/sms.c → emul/sms/sms.c Ver fichero

@@ -7,7 +7,7 @@
#define XK_MISCELLANY
#include <X11/keysymdef.h>

#include "../../emul.h"
#include "../emul.h"
#include "vdp.h"
#include "port.h"
#include "pad.h"

emul/hw/sms/vdp.c → emul/sms/vdp.c Ver fichero


emul/hw/sms/vdp.h → emul/sms/vdp.h Ver fichero


emul/hw/ti/.gitignore → emul/ti/.gitignore Ver fichero


emul/hw/ti/Makefile → emul/ti/Makefile Ver fichero

@@ -1,4 +1,4 @@
EXTOBJS = ../../emul.o ../../libz80/libz80.o
EXTOBJS = ../emul.o ../libz80/libz80.o
OBJS = ti84.o t6a04.o kbd.o
TARGET = ti84
CFLAGS += `pkg-config --cflags xcb`
@@ -7,8 +7,8 @@ LDFLAGS += `pkg-config --libs xcb`
.PHONY: all
all: $(TARGET)

../../emul.o:
make -C ../..
../emul.o:
make -C ..

$(TARGET): $(OBJS) $(EXTOBJS)
$(CC) $(OBJS) $(EXTOBJS) -o $@ $(LDFLAGS)

emul/hw/ti/README.md → emul/ti/README.md Ver fichero


emul/hw/ti/kbd.c → emul/ti/kbd.c Ver fichero


emul/hw/ti/kbd.h → emul/ti/kbd.h Ver fichero


emul/hw/ti/t6a04.c → emul/ti/t6a04.c Ver fichero


emul/hw/ti/t6a04.h → emul/ti/t6a04.h Ver fichero


emul/hw/ti/ti84.c → emul/ti/ti84.c Ver fichero

@@ -14,7 +14,7 @@
#define XK_MISCELLANY
#include <X11/keysymdef.h>

#include "../../emul.h"
#include "../emul.h"
#include "t6a04.h"
#include "kbd.h"


+ 1
- 1
recipes/rc2014/Makefile Ver fichero

@@ -4,7 +4,7 @@ CDIR = $(BASE)/cvm
EDIR = $(BASE)/emul
STAGE = $(CDIR)/stage
BLKPACK = $(BASE)/tools/blkpack
EMUL = $(EDIR)/hw/rc2014/classic
EMUL = $(EDIR)/rc2014/classic

.PHONY: all
all: $(TARGET)


+ 2
- 2
recipes/sms/Makefile Ver fichero

@@ -1,9 +1,9 @@
TARGET = os.bin
BASE = ../../
BASE = ../..
STAGE = $(BASE)/cvm/stage
BLKPACK = $(BASE)/tools/blkpack
SMSROM = $(BASE)/tools/smsrom
EMUL = $(BASE)/emul/hw/sms/sms
EMUL = $(BASE)/emul/sms/sms

.PHONY: all
all: $(TARGET)


+ 1
- 1
recipes/ti84/Makefile Ver fichero

@@ -3,7 +3,7 @@ BASE = ../..
CDIR = $(BASE)/cvm
STAGE = $(CDIR)/stage
BLKPACK = $(BASE)/tools/blkpack
EMUL = $(BASE)/emul/hw/ti/ti84
EMUL = $(BASE)/emul/ti/ti84
MKTIUPGRADE = mktiupgrade

.PHONY: all


Cargando…
Cancelar
Guardar