This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
core/NyLPC_cMiMicEnv.c@74:fc7f46e67229, 2014-06-14 (annotated)
- Committer:
- nyatla
- Date:
- Sat Jun 14 02:25:19 2014 +0000
- Revision:
- 74:fc7f46e67229
- Parent:
- 71:855020258513
- Child:
- 75:2a18df0ef111
MiMic core 1.5.3; r293???
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nyatla | 69:8c5f220441f5 | 1 | #include "NyLPC_cMiMicEnv.h" |
nyatla | 69:8c5f220441f5 | 2 | #include "../uip/NyLPC_cUipService_protected.h" |
nyatla | 69:8c5f220441f5 | 3 | |
nyatla | 74:fc7f46e67229 | 4 | const static char* VERSION="MiMic/1.5.3"; |
nyatla | 70:2ed02b798004 | 5 | |
nyatla | 70:2ed02b798004 | 6 | #if NyLPC_MCU==NyLPC_MCU_LPC4088 |
nyatla | 70:2ed02b798004 | 7 | const static char* MCU="LPC4088"; |
nyatla | 70:2ed02b798004 | 8 | #elif NyLPC_MCU==NyLPC_MCU_LPC17xx |
nyatla | 69:8c5f220441f5 | 9 | const static char* MCU="LPC176x"; |
nyatla | 70:2ed02b798004 | 10 | #endif |
nyatla | 70:2ed02b798004 | 11 | |
nyatla | 69:8c5f220441f5 | 12 | const static char* UNKNOWN="UNKNOWN"; |
nyatla | 69:8c5f220441f5 | 13 | |
nyatla | 69:8c5f220441f5 | 14 | |
nyatla | 70:2ed02b798004 | 15 | static const char* PNAME_LPCXPRESSO="LPCXpresso"; |
nyatla | 69:8c5f220441f5 | 16 | static const char* PNAME_MBED="mbed"; |
nyatla | 69:8c5f220441f5 | 17 | |
nyatla | 69:8c5f220441f5 | 18 | |
nyatla | 69:8c5f220441f5 | 19 | |
nyatla | 69:8c5f220441f5 | 20 | const char* NyLPC_cMiMicEnv_getStrProperty(NyLPC_TUInt16 i_id) |
nyatla | 69:8c5f220441f5 | 21 | { |
nyatla | 69:8c5f220441f5 | 22 | switch(i_id){ |
nyatla | 69:8c5f220441f5 | 23 | case NyLPC_cMiMicEnv_VERSION: |
nyatla | 69:8c5f220441f5 | 24 | return VERSION; |
nyatla | 69:8c5f220441f5 | 25 | case NyLPC_cMiMicEnv_SHORT_NAME: |
nyatla | 69:8c5f220441f5 | 26 | switch(*(NyLPC_cUipService_refDeviceName())){ |
nyatla | 69:8c5f220441f5 | 27 | case 'L': |
nyatla | 70:2ed02b798004 | 28 | return PNAME_LPCXPRESSO; |
nyatla | 69:8c5f220441f5 | 29 | case 'D': |
nyatla | 69:8c5f220441f5 | 30 | return PNAME_MBED; |
nyatla | 69:8c5f220441f5 | 31 | default: |
nyatla | 69:8c5f220441f5 | 32 | return UNKNOWN; |
nyatla | 69:8c5f220441f5 | 33 | } |
nyatla | 69:8c5f220441f5 | 34 | case NyLPC_cMiMicEnv_ETHERNET_PHY: |
nyatla | 69:8c5f220441f5 | 35 | return NyLPC_cUipService_refDeviceName(); |
nyatla | 69:8c5f220441f5 | 36 | case NyLPC_cMiMicEnv_MCU_NAME: |
nyatla | 69:8c5f220441f5 | 37 | return MCU; |
nyatla | 69:8c5f220441f5 | 38 | default: |
nyatla | 69:8c5f220441f5 | 39 | return UNKNOWN; |
nyatla | 69:8c5f220441f5 | 40 | } |
nyatla | 69:8c5f220441f5 | 41 | } |