blob: edebfc8df5ceeab01553b80a68062830973399b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "PR/os_internal.h"
#include "PRinternal/controller.h"
s32 osEepromLongRead(OSMesgQueue* mq, u8 address, u8* buffer, int length) {
s32 ret = 0;
while (length > 0) {
ERRCK(osEepromRead(mq, address, buffer));
length -= EEPROM_BLOCK_SIZE;
address++;
buffer += EEPROM_BLOCK_SIZE;
}
return ret;
}
|