1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-04-12 20:37:11 +00:00

Takes a wild swings at speeding up startup.

With no success.
This commit is contained in:
Thomas Harte 2019-08-18 22:40:16 -04:00
parent 955e909e61
commit 90cf99b626

View File

@ -25,8 +25,15 @@ class RealTimeClock {
public:
RealTimeClock() {
// TODO: this should persist, if possible, rather than
// being randomly initialised.
Memory::Fuzz(data_, sizeof(data_));
// being default initialised.
const uint8_t default_data[] = {
0xa8, 0x00, 0x00, 0x00,
0xcc, 0x0a, 0xcc, 0x0a,
0x00, 0x00, 0x00, 0x00,
0x00, 0x02, 0x63, 0x00,
0x03, 0x88, 0x00, 0x4c
};
memcpy(data_, default_data, sizeof(data_));
}
/*!