Jonne Valola / PokittoLib Featured

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!

Files at this revision

API Documentation at this revision

Comitter:
Pokitto
Date:
Wed Dec 25 22:12:01 2019 +0000
Parent:
66:6281a40d73e6
Child:
70:770c9727f951
Commit message:
Added fixes needed for ARMCC 6 compiler

Changed in this revision

POKITTO_CORE/PokittoDisplay.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-pokitto/common/retarget.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-pokitto/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/sys.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/POKITTO_CORE/PokittoDisplay.cpp	Sat Mar 23 20:03:34 2019 +0000
+++ b/POKITTO_CORE/PokittoDisplay.cpp	Wed Dec 25 22:12:01 2019 +0000
@@ -519,7 +519,7 @@
     }
 
     void (*drawPixel[])(int16_t,int16_t, uint8_t) = {drawPixelBG, drawPixelFG};
-    uint8_t colors[] = {bgcolor, color};
+    uint8_t colors[] = {(uint8_t)bgcolor, (uint8_t)color};
 
 #if PROJ_ARDUBOY > 0
 #else
--- a/mbed-pokitto/common/retarget.cpp	Sat Mar 23 20:03:34 2019 +0000
+++ b/mbed-pokitto/common/retarget.cpp	Wed Dec 25 22:12:01 2019 +0000
@@ -31,7 +31,8 @@
 #   define PREFIX(x)    _sys##x
 #   define OPEN_MAX     _SYS_OPEN
 #   ifdef __MICROLIB
-#       pragma import(__use_full_stdio)
+//#       pragma import(__use_full_stdio)
+__asm(".global __use_full_stdio");
 #   endif
 
 #elif defined(__ICCARM__)
--- a/mbed-pokitto/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/sys.cpp	Sat Mar 23 20:03:34 2019 +0000
+++ b/mbed-pokitto/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/sys.cpp	Wed Dec 25 22:12:01 2019 +0000
@@ -11,6 +11,7 @@
 
 #include <rt_misc.h>
 #include <stdint.h>
+#include <arm_compat.h>
 
 extern char Image$$RW_IRAM1$$ZI$$Limit[];