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@33:c1c3eef883ee, 2013-05-05 (annotated)
- Committer:
- nyatla
- Date:
- Sun May 05 02:36:13 2013 +0000
- Revision:
- 33:c1c3eef883ee
- Parent:
- 32:0ab91b2e04b4
update localfilesystem2
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| nyatla | 29:e19aab0c4156 | 1 | #pragma once |
| nyatla | 29:e19aab0c4156 | 2 | |
| nyatla | 29:e19aab0c4156 | 3 | namespace MiMic |
| nyatla | 29:e19aab0c4156 | 4 | { |
| nyatla | 29:e19aab0c4156 | 5 | #define PlatformInfo_DETECTION_MODE_AUTO 1 |
| nyatla | 29:e19aab0c4156 | 6 | #define PlatformInfo_DETECTION_MODE_MBED 2 |
| nyatla | 29:e19aab0c4156 | 7 | #define PlatformInfo_DETECTION_MODE_LPCXPRESSO 3 |
| nyatla | 29:e19aab0c4156 | 8 | #define PlatformInfo_DETECTION_MODE PlatformInfo_DETECTION_MODE_AUTO |
| nyatla | 29:e19aab0c4156 | 9 | |
| nyatla | 29:e19aab0c4156 | 10 | class PlatformInfo |
| nyatla | 29:e19aab0c4156 | 11 | { |
| nyatla | 29:e19aab0c4156 | 12 | public: |
| nyatla | 29:e19aab0c4156 | 13 | const static int PF_UNKNOWN=0; |
| nyatla | 29:e19aab0c4156 | 14 | const static int PF_MBED=1; |
| nyatla | 29:e19aab0c4156 | 15 | const static int PF_LPCXPRESSO=2; |
| nyatla | 32:0ab91b2e04b4 | 16 | /** |
| nyatla | 32:0ab91b2e04b4 | 17 | * This function returns platform type value. |
| nyatla | 32:0ab91b2e04b4 | 18 | */ |
| nyatla | 29:e19aab0c4156 | 19 | static int getPlatformType(); |
| nyatla | 29:e19aab0c4156 | 20 | private: |
| nyatla | 33:c1c3eef883ee | 21 | static void check(); |
| nyatla | 32:0ab91b2e04b4 | 22 | static int _pftype; |
| nyatla | 33:c1c3eef883ee | 23 | PlatformInfo(){}; |
| nyatla | 29:e19aab0c4156 | 24 | }; |
| nyatla | 29:e19aab0c4156 | 25 | } |
