This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
Diff: core/NyLPC_cMiMicEnv.c
- Revision:
- 93:6afc7c06037f
- Parent:
- 91:db8279c869d3
- Child:
- 95:423d65f8b5ad
--- a/core/NyLPC_cMiMicEnv.c Wed Oct 01 13:58:53 2014 +0000 +++ b/core/NyLPC_cMiMicEnv.c Thu Oct 02 05:21:58 2014 +0000 @@ -1,21 +1,24 @@ #include "NyLPC_cMiMicEnv.h" #include "../uip/NyLPC_cUipService_protected.h" -const static char* VERSION="MiMic/1.6.0"; +const static char* VERSION="MiMic/1.6.2"; #if NyLPC_MCU==NyLPC_MCU_LPC4088 const static char* MCU="LPC4088"; +static const char* PNAME_LPCXPRESSO="LPCXpresso"; +static const char* PNAME_MBED="mbed"; #elif NyLPC_MCU==NyLPC_MCU_LPC17xx const static char* MCU="LPC176x"; +static const char* PNAME_LPCXPRESSO="LPCXpresso"; +static const char* PNAME_MBED="mbed"; #elif NyLPC_MCU==NyLPC_MCU_K64F const static char* MCU="K64F"; +static const char* PNAME_FRDM="FRDM"; #endif const static char* UNKNOWN="UNKNOWN"; -static const char* PNAME_LPCXPRESSO="LPCXpresso"; -static const char* PNAME_MBED="mbed"; @@ -25,6 +28,9 @@ case NyLPC_cMiMicEnv_VERSION: return VERSION; case NyLPC_cMiMicEnv_SHORT_NAME: +#if NyLPC_MCU==NyLPC_MCU_K64F + return PNAME_FRDM; +#else switch(*(NyLPC_cUipService_refDeviceName())){ case 'L': return PNAME_LPCXPRESSO; @@ -33,6 +39,7 @@ default: return UNKNOWN; } +#endif case NyLPC_cMiMicEnv_ETHERNET_PHY: return NyLPC_cUipService_refDeviceName(); case NyLPC_cMiMicEnv_MCU_NAME: