This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Dependents: MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more
NyLPC_cMiMicEnv.c
00001 #include "NyLPC_cMiMicEnv.h" 00002 #include "NyLPC_netif.h" 00003 00004 const static char* VERSION="MiMic/1.7.2"; 00005 00006 #if NyLPC_MCU==NyLPC_MCU_LPC4088 00007 const static char* MCU="LPC4088"; 00008 static const char* PNAME_LPCXPRESSO="LPCXpresso"; 00009 static const char* PNAME_MBED="mbed"; 00010 #elif NyLPC_MCU==NyLPC_MCU_LPC17xx 00011 const static char* MCU="LPC176x"; 00012 static const char* PNAME_LPCXPRESSO="LPCXpresso"; 00013 static const char* PNAME_MBED="mbed"; 00014 #elif NyLPC_MCU==NyLPC_MCU_K64F 00015 const static char* MCU="K64F"; 00016 static const char* PNAME_FRDM="FRDM"; 00017 #endif 00018 00019 const static char* UNKNOWN="UNKNOWN"; 00020 00021 00022 00023 00024 00025 const char* NyLPC_cMiMicEnv_getStrProperty(NyLPC_TUInt16 i_id) 00026 { 00027 switch(i_id){ 00028 case NyLPC_cMiMicEnv_VERSION: 00029 return VERSION; 00030 case NyLPC_cMiMicEnv_SHORT_NAME: 00031 #if NyLPC_MCU==NyLPC_MCU_K64F 00032 return PNAME_FRDM; 00033 #else 00034 switch(*(NyLPC_cNet_getInterfaceInfo()->device_name)){ 00035 case 'L': 00036 return PNAME_LPCXPRESSO; 00037 case 'D': 00038 return PNAME_MBED; 00039 default: 00040 return UNKNOWN; 00041 } 00042 #endif 00043 case NyLPC_cMiMicEnv_ETHERNET_PHY: 00044 return NyLPC_cNet_getInterfaceInfo()->device_name; 00045 case NyLPC_cMiMicEnv_MCU_NAME: 00046 return MCU; 00047 default: 00048 return UNKNOWN; 00049 } 00050 }
Generated on Tue Jul 12 2022 15:46:16 by 1.7.2