diff options
author | Arisotura <thetotalworm@gmail.com> | 2023-11-03 20:17:00 +0100 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2023-11-03 20:17:00 +0100 |
commit | 440b3566745bbf967210bd6c51e791e1df472ff2 (patch) | |
tree | 75d630f0915159348899f1e445d06f7270210499 /src/Platform.h | |
parent | 70c6750561b0c130b430e2ec3d076708b3767674 (diff) |
get this started: refactor SPI in OOP
Diffstat (limited to 'src/Platform.h')
-rw-r--r-- | src/Platform.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Platform.h b/src/Platform.h index 144fce1..7fa8fbd 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -24,10 +24,7 @@ #include <functional> #include <string> -namespace SPI_Firmware -{ - class Firmware; -} +class Firmware; namespace Platform { @@ -335,7 +332,7 @@ void WriteGBASave(const u8* savedata, u32 savelen, u32 writeoffset, u32 writelen /// @param firmware The firmware that was just written. /// @param writeoffset The offset of the first byte that was written to firmware. /// @param writelen The number of bytes that were written to firmware. -void WriteFirmware(const SPI_Firmware::Firmware& firmware, u32 writeoffset, u32 writelen); +void WriteFirmware(const Firmware& firmware, u32 writeoffset, u32 writelen); // called when the RTC date/time is changed and the frontend might need to take it into account void WriteDateTime(int year, int month, int day, int hour, int minute, int second); |