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 azure_c_shared_utility by
platform_mbed.cpp
00001 // Copyright (c) Microsoft. All rights reserved. 00002 // Licensed under the MIT license. See LICENSE file in the project root for full license information. 00003 00004 #include "azure_c_shared_utility/platform.h" 00005 #include "EthernetInterface.h" 00006 #include "NetworkInterface.h" 00007 00008 #include "azure_c_shared_utility/optimize_size.h" 00009 #include "azure_c_shared_utility/xio.h" 00010 #include "azure_c_shared_utility/tlsio_wolfssl.h" 00011 00012 static NetworkInterface* _platform_mbed_network; 00013 00014 int platform_init(NetworkInterface* net) 00015 { 00016 int result = 0; 00017 _platform_mbed_network = net; 00018 return result; 00019 } 00020 00021 const IO_INTERFACE_DESCRIPTION* platform_get_default_tlsio(void) 00022 { 00023 return tlsio_wolfssl_get_interface_description(); 00024 } 00025 00026 STRING_HANDLE platform_get_platform_info(void) 00027 { 00028 return STRING_construct("(mbed)"); 00029 } 00030 00031 void platform_deinit(void) {} 00032 00033 NetworkInterface* platform_get_network_stack() { 00034 return _platform_mbed_network; 00035 }
Generated on Tue Jul 12 2022 19:14:38 by
