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
Diff: core/net/NyLPC_cNet.cpp
- Revision:
- 2:b96c1e90d120
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/core/net/NyLPC_cNet.cpp Wed Mar 27 12:07:47 2013 +0000
@@ -0,0 +1,29 @@
+#include "NyLPC_cNet.h"
+
+const char* NyLPC_cNet_PlatformName;
+
+static const char* PNAME_LPCXPRESSO1769="LPCXpresso1769";
+static const char* PNAME_MBED="mbed";
+
+void NyLPC_cNet_initialize(NyLPC_TcNet_t* i_inst)
+{
+ //uipサービス初期化。いろいろ利用可能に。
+ NyLPC_cUipService_initialize();
+}
+
+void NyLPC_cNet_start(NyLPC_TcNet_t* i_inst,const NyLPC_TcNetConfig_t* i_ref_config)
+{
+ NyLPC_cUipService_start(&(i_ref_config->interface_setting.ethernet));
+ //プラットフォーム名を推測(デバイス名の初めの1文字だけ見る。)
+ switch(*(NyLPC_cUipService_refDeviceName())){
+ case 'L':
+ NyLPC_cNet_PlatformName=PNAME_LPCXPRESSO1769;
+ break;
+ case 'D':
+ NyLPC_cNet_PlatformName=PNAME_MBED;
+ break;
+ default:
+ break;
+ }
+ return;
+}
\ No newline at end of file
