Add io helper functions

This commit is contained in:
Byron Lathi
2022-03-05 22:34:34 -06:00
parent 859a954996
commit 6b24abdbd5
3 changed files with 18 additions and 2 deletions

6
sw/io.c Normal file
View File

@@ -0,0 +1,6 @@
#include <io.h>
int io_remap(int region) {
*(unsigned char*)IO_REMAP = region;
return (*(unsigned char*)IO_REMAP == region);
}