From 2c26e82a0de41094000ec630c1419ea477856403 Mon Sep 17 00:00:00 2001 From: Byron Lathi Date: Tue, 8 Mar 2022 15:41:03 -0600 Subject: [PATCH] Remove io c code --- sw/io.c | 6 ------ sw/io.h | 15 --------------- sw/main.c | 1 - 3 files changed, 22 deletions(-) delete mode 100644 sw/io.c delete mode 100644 sw/io.h diff --git a/sw/io.c b/sw/io.c deleted file mode 100644 index 685a771..0000000 --- a/sw/io.c +++ /dev/null @@ -1,6 +0,0 @@ -#include - -int io_remap(int region) { - *(unsigned char*)IO_REMAP = region; - return (*(unsigned char*)IO_REMAP == region); -} diff --git a/sw/io.h b/sw/io.h deleted file mode 100644 index a5247b1..0000000 --- a/sw/io.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef _IO_H -#define IO_H - - -#define IO_REMAP 0x7fff - - -enum io_regions { - io_region_de10lite = 0, -}; - - -int io_remap(int region); - -#endif diff --git a/sw/main.c b/sw/main.c index 296b1c6..4940ce5 100644 --- a/sw/main.c +++ b/sw/main.c @@ -1,6 +1,5 @@ #include int main() { - io_remap(io_region_de10lite); return 0; }