Convert Memory IO
This commit is contained in:
parent
9c8102cb87
commit
2b03925201
|
@ -0,0 +1,18 @@
|
||||||
|
#pragma once
|
||||||
|
#include "../ioport.hpp"
|
||||||
|
|
||||||
|
namespace JabyEngine {
|
||||||
|
namespace Memory_IO_Values {
|
||||||
|
__declare_io_value(CD_DELAY, uint32_t) {
|
||||||
|
static constexpr CD_DELAY create() {
|
||||||
|
return CD_DELAY{0x20943};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
__declare_io_value(COM_DELAY, uint32_t) {
|
||||||
|
static constexpr COM_DELAY create() {
|
||||||
|
return COM_DELAY{0x1325};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,21 +1,14 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "ioport.hpp"
|
#include "IOValues/memory_io_values.hpp"
|
||||||
|
|
||||||
namespace JabyEngine {
|
namespace JabyEngine {
|
||||||
namespace Memory_IO {
|
namespace Memory_IO {
|
||||||
__declare_io_value(COM_DELAY, uint32_t) {
|
using namespace Memory_IO_Values;
|
||||||
static constexpr COM_DELAY create() {
|
|
||||||
return COM_DELAY{0x1325};
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
__declare_io_value(CD_DELAY, uint32_t) {
|
using CD_DELAY_IO = IOPort<Memory_IO_Values::CD_DELAY>;
|
||||||
static constexpr CD_DELAY create() {
|
using COM_DELAY_IO = IOPort<Memory_IO_Values::COM_DELAY>;
|
||||||
return CD_DELAY{0x20943};
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
__declare_io_port(, COM_DELAY, 0x1F801020);
|
static auto& CD_DELAY = __new_declare_io_port(CD_DELAY_IO, 0x1F801018);
|
||||||
__declare_io_port(, CD_DELAY, 0x1F801018);
|
static auto& COM_DELAY = __new_declare_io_port(COM_DELAY_IO, 0x1F801020);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue