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

Dependents:   YATTT sd_map_test cPong SnowDemo ... more

PokittoLib

Library for programming Pokitto hardware

How to Use

  1. Import this library to online compiler (see button "import" on the right hand side
  2. DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
  3. Change My_settings.h according to your project
  4. Start coding!
Revision:
28:958b71c4b92a
Parent:
20:fa6899411a24
--- 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);
 }