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

Revision:
58:5f58a2846a20
Parent:
52:c04087025cab
diff -r 63853054a4d9 -r 5f58a2846a20 POKITTO_HW/iap.cpp
--- a/POKITTO_HW/iap.cpp	Tue Oct 02 20:38:50 2018 +0000
+++ b/POKITTO_HW/iap.cpp	Sun Oct 07 10:06:28 2018 +0000
@@ -30,10 +30,10 @@
 
 int CopyPageToFlash (uint32_t address, uint8_t* data) {
     IAP iap_call = (IAP) IAP_LOCATION;
-    uint32_t writecount=0;
+    //uint32_t writecount=0;
 	__disable_irq();
 
-    unsigned int sector, page;
+    unsigned int sector;//, page;
     bool firstpage=false, erasepage=false;
 
     //DEBUG//
@@ -190,7 +190,7 @@
 
     SCB->AIRCR = 0x05FA0004; //issue system reset
     while(1); //should never come here
-    return teahupoo;
+    //return teahupoo;
 }