PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)

Revision:
28:958b71c4b92a
Parent:
20:fa6899411a24
diff -r 24970a0c35a8 -r 958b71c4b92a POKITTO_HW/iap.cpp
--- a/POKITTO_HW/iap.cpp	Mon Jan 01 10:22:02 2018 +0000
+++ b/POKITTO_HW/iap.cpp	Fri Jan 05 02:19:51 2018 +0000
@@ -283,7 +283,7 @@
 //Param3: System Clock Frequency (CCLK) in kHz
 //
 //Return Code CMD_SUCCESS | SRC_ADDR_NOT_MAPPED | DST_ADDR_NOT_MAPPED
-__attribute__((section(".IAP_Code"))) void writeEEPROM( uint8_t* eeAddress, uint8_t* buffAddress, uint32_t byteCount )
+__attribute__((section(".IAP_Code"))) void writeEEPROM( uint16_t* eeAddress, uint8_t* buffAddress, uint32_t byteCount )
 {
 	unsigned int command[5], result[4];
 
@@ -321,7 +321,7 @@
 //Param3: System Clock Frequency (CCLK) in kHz
 //
 //Return Code CMD_SUCCESS | SRC_ADDR_NOT_MAPPED | DST_ADDR_NOT_MAPPED
-__attribute__((section(".IAP_Code"))) void readEEPROM( uint8_t* eeAddress, uint8_t* buffAddress, uint32_t byteCount )
+__attribute__((section(".IAP_Code"))) void readEEPROM( uint16_t* eeAddress, uint8_t* buffAddress, uint32_t byteCount )
 {
 	unsigned int command[5], result[4];
 
@@ -365,13 +365,13 @@
 	return;
 }
 
-uint8_t eeprom_read_byte(uint8_t* index) {
+uint8_t eeprom_read_byte(uint16_t* index) {
     uint8_t val;
     readEEPROM(index,&val,1);
     return val;
 }
 
-void eeprom_write_byte(uint8_t*index , uint8_t val) {
+void eeprom_write_byte(uint16_t*index , uint8_t val) {
     writeEEPROM(index,&val,1);
 }