Integrate new IO Code into memory_io

This commit is contained in:
2023-09-17 08:50:06 +02:00
parent b0189469cd
commit 19c5485658
3 changed files with 25 additions and 25 deletions

View File

@@ -4,20 +4,20 @@
namespace JabyEngine {
namespace Memory_IO {
__declare_io_type(COM_DELAY, uint32_t,
void setup() {
this->raw_value = 0x1325;
}
);
__new_declare_io_value(COM_DELAY, uint32_t) {
static constexpr COM_DELAY create() {
return COM_DELAY{0x1325};
}
};
__declare_io_type(CD_DELAY, uint32_t,
void setup() {
this->raw_value = 0x20943;
}
);
__new_declare_io_value(CD_DELAY, uint32_t) {
static constexpr CD_DELAY create() {
return CD_DELAY{0x20943};
}
};
__declare_new_io_port(COM_DELAY, 0x1F801020);
__declare_new_io_port(CD_DELAY, 0x1F801018);
__new_declare_io_port(COM_DELAY, 0x1F801020);
__new_declare_io_port(CD_DELAY, 0x1F801018);
}
}