Initial commit

This commit is contained in:
Johannes Kutning committed 2023-10-31 07:47:27 +01:00
commit 0d1b73e3e0
255 files changed
+16057

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#include "io.h"
#include "Hardware.h"
#include <cstdio>
void IOWR( uint32_t base, uint32_t REG_CONFIG_OFFSET, uint32_t value ) {
auto hardware = Hardware::getInstance();
hardware->write( base, REG_CONFIG_OFFSET, value );
}
uint32_t IORD( uint32_t base, uint32_t REG_CONFIG_OFFSET ) {
auto hardware = Hardware::getInstance();
return hardware->read( base, REG_CONFIG_OFFSET );
}