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.
Fork of libMiMic by
mbed/utils/PlatformInfo.h
- Committer:
- nyatla
- Date:
- 2013-05-04
- Revision:
- 32:0ab91b2e04b4
- Parent:
- 31:4f09bd7f30c7
- Child:
- 33:c1c3eef883ee
File content as of revision 32:0ab91b2e04b4:
#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;
/**
* This function returns platform type value.
*/
static int getPlatformType();
private:
static int _pftype;
static PlatformInfo _single;
PlatformInfo();
};
}
