Jun Furutani / libMiMic

Fork of libMiMic by Ryo Iizuka

Revision:
29:e19aab0c4156
Child:
31:4f09bd7f30c7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed/utils/PlatformInfo.h	Sat May 04 12:11:59 2013 +0000
@@ -0,0 +1,22 @@
+#pragma once
+
+namespace MiMic
+{
+    #define PlatformInfo_DETECTION_MODE_AUTO 1
+    #define PlatformInfo_DETECTION_MODE_MBED 2
+    #define PlatformInfo_DETECTION_MODE_LPCXPRESSO 3
+    #define PlatformInfo_DETECTION_MODE PlatformInfo_DETECTION_MODE_AUTO
+
+    class PlatformInfo
+    {
+    public:
+        const static int PF_UNKNOWN=0;
+        const static int PF_MBED=1;
+        const static int PF_LPCXPRESSO=2;
+        static int getPlatformType();
+    private:
+        static PlatformInfo _singleton;
+        static int _pftype;
+        PlatformInfo();
+    };
+}
\ No newline at end of file