Skip to content

Commit

Permalink
Implemented eeprom support and fixed rumble
Browse files Browse the repository at this point in the history
(cherry picked from commit 0c3e1ac)
  • Loading branch information
KiritoDv committed Apr 19, 2024
1 parent ba6353b commit 512f023
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/public/libultra/os_eeprom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ int32_t osEepromLongRead(OSMesgQueue* mq, uint8_t address, uint8_t* buffer, int3
return ret;
}

int32_t osEepromRead(OSMesgQueue *mq, u8 address, u8 *buffer){
return osEepromLongRead(mq, address, buffer, 8);
}

int32_t osEepromLongWrite(OSMesgQueue* mq, uint8_t address, uint8_t* buffer, int32_t length) {
u8 content[512] = { 0 };
if (address != 0 || length != 512) {
Expand All @@ -38,4 +42,8 @@ int32_t osEepromLongWrite(OSMesgQueue* mq, uint8_t address, uint8_t* buffer, int
fclose(fp);
return ret;
}

int32_t osEepromWrite(OSMesgQueue* mq, uint8_t address, uint8_t* buffer) {
return osEepromLongWrite(mq, address, buffer, 8);
}
}

0 comments on commit 512f023

Please sign in to comment.