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@29:e19aab0c4156, 2013-05-04 (annotated)
- Committer:
- nyatla
- Date:
- Sat May 04 12:11:59 2013 +0000
- Revision:
- 29:e19aab0c4156
- Child:
- 31:4f09bd7f30c7
update platform selector
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 | 29:e19aab0c4156 | 16 | static int getPlatformType(); |
| nyatla | 29:e19aab0c4156 | 17 | private: |
| nyatla | 29:e19aab0c4156 | 18 | static PlatformInfo _singleton; |
| nyatla | 29:e19aab0c4156 | 19 | static int _pftype; |
| nyatla | 29:e19aab0c4156 | 20 | PlatformInfo(); |
| nyatla | 29:e19aab0c4156 | 21 | }; |
| nyatla | 29:e19aab0c4156 | 22 | } |
