This program can detect the type(mbed or LPCXpresso) of platform. The sample recognizes mbed or LPCXpresso.
PlatformInfo.h
00001 #pragma once 00002 00003 namespace MiMic 00004 { 00005 #define PlatformInfo_DETECTION_MODE_AUTO 1 00006 #define PlatformInfo_DETECTION_MODE_MBED 2 00007 #define PlatformInfo_DETECTION_MODE_LPCXPRESSO 3 00008 #define PlatformInfo_DETECTION_MODE PlatformInfo_DETECTION_MODE_AUTO 00009 00010 class PlatformInfo 00011 { 00012 public: 00013 const static int PF_UNKNOWN=0; 00014 const static int PF_MBED=1; 00015 const static int PF_LPCXPRESSO=2; 00016 /** 00017 * This function returns platform type value. 00018 */ 00019 static int getPlatformType(); 00020 private: 00021 static void check(); 00022 static int _pftype; 00023 PlatformInfo(){}; 00024 }; 00025 }
Generated on Sat Aug 6 2022 05:24:45 by 1.7.2