Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: YATTT sd_map_test cPong SnowDemo ... more
PokittoLib
Library for programming Pokitto hardware
How to Use
- Import this library to online compiler (see button "import" on the right hand side
- DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
- Change My_settings.h according to your project
- Start coding!
Diff: POKITTO_CORE/PokittoDisplay.cpp
- Revision:
- 42:798b5d67b372
- Parent:
- 35:4f7edccf8ed6
--- a/POKITTO_CORE/PokittoDisplay.cpp Wed Apr 25 14:00:49 2018 +0000
+++ b/POKITTO_CORE/PokittoDisplay.cpp Tue May 01 18:42:46 2018 +0000
@@ -71,6 +71,11 @@
#include "PokittoSound.h"
#include <stdio.h>
#include <string.h>
+#ifdef DISABLEAVRMIN
+#include <algorithm>
+using std::min;
+using std::max;
+#endif // DISABLEAVRMIN
#ifndef POK_SIM
#include "HWLCD.h"
@@ -78,9 +83,9 @@
#include "SimLCD.h"
#endif
-//extern "C" void CheckStack();
-//extern char _ebss[]; // In map file
-//extern char _vStackTop[]; // In map file
+extern "C" void CheckStack();
+extern char _ebss[]; // In map file
+extern char _vStackTop[]; // In map file
Pokitto::Core core;
Pokitto::Sound _pdsound;
@@ -2521,8 +2526,9 @@
}
// Check the stack size and show a crash screen if the stack is too big.
-/*void CheckStack() {
+void CheckStack() {
#ifndef POK_SIM
+ #ifndef __ARMCC_VERSION
int currStackTop;
const int freeStackThreshold = 400;
if ((int)&currStackTop - (int)_ebss < freeStackThreshold) {
@@ -2549,10 +2555,10 @@
ShowCrashScreenAndWait(texLine1, texLine2, texLine3, texLine4, infoString);
}
#endif
-}*/
+ #endif
+}
/** Eof */
-