Add testserial part of the build.

This commit is contained in:
Godzil 2021-11-23 14:56:27 +00:00
parent 1df15b0192
commit 4fc5193bc7
2 changed files with 6 additions and 1 deletions

View File

@ -47,4 +47,5 @@ add_subdirectory(source)
target_link_libraries(wonderswan wswan glfw ${OPENGL_glu_LIBRARY} ${OPENGL_gl_LIBRARY}) target_link_libraries(wonderswan wswan glfw ${OPENGL_glu_LIBRARY} ${OPENGL_gl_LIBRARY})
add_executable(dumpinfo dumpinfo.c) add_executable(dumpinfo dumpinfo.c)
add_executable(testserial testserial.c)

View File

@ -15,6 +15,10 @@
#include <errno.h> /* Error number definitions */ #include <errno.h> /* Error number definitions */
#include <termios.h> /* POSIX terminal control definitions */ #include <termios.h> /* POSIX terminal control definitions */
/*
* The code, as is, was part of a fuzzer for the WonderSwan Tetris game.
*/
/* Serial port */ /* Serial port */
#define BDR_9600 (0) #define BDR_9600 (0)
#define BDR_38400 (1) #define BDR_38400 (1)