mirror of
https://github.com/espressif/openthread.git
synced 2026-07-27 06:17:47 +00:00
Windows Core Build Support (#582)
* Support #define to overwrite what openthread-config file to use, since Windows does support autoconf.
This commit is contained in:
@@ -249,7 +249,8 @@ typedef struct otExtAddress
|
||||
/**
|
||||
* This structure represents an IPv6 address.
|
||||
*/
|
||||
typedef OT_TOOL_PACKED_BEGIN struct otIp6Address
|
||||
OT_TOOL_PACKED_BEGIN
|
||||
struct otIp6Address
|
||||
{
|
||||
union
|
||||
{
|
||||
@@ -257,7 +258,9 @@ typedef OT_TOOL_PACKED_BEGIN struct otIp6Address
|
||||
uint16_t m16[OT_IP6_ADDRESS_SIZE / sizeof(uint16_t)]; ///< 16-bit fields
|
||||
uint32_t m32[OT_IP6_ADDRESS_SIZE / sizeof(uint32_t)]; ///< 32-bit fields
|
||||
} mFields; ///< IPv6 accessor fields
|
||||
} OT_TOOL_PACKED_END otIp6Address;
|
||||
} OT_TOOL_PACKED_END;
|
||||
|
||||
typedef struct otIp6Address otIp6Address;
|
||||
|
||||
/**
|
||||
* @addtogroup commands Commands
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright (c) 2016, The OpenThread Authors.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of the copyright holder nor the
|
||||
* names of its contributors may be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/* Define to 1 to enable the commissioner role. */
|
||||
#define OPENTHREAD_ENABLE_COMMISSIONER 1
|
||||
|
||||
/* Define to 1 if you want to use diagnostics module */
|
||||
#define OPENTHREAD_ENABLE_DIAG 0
|
||||
|
||||
/* Define to 1 to enable dtls support. */
|
||||
#define OPENTHREAD_ENABLE_DTLS 1
|
||||
|
||||
/* Define to 1 to enable the joiner role. */
|
||||
#define OPENTHREAD_ENABLE_JOINER 1
|
||||
|
||||
/* Name of package */
|
||||
#define PACKAGE "openthread"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "[email protected]"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "OPENTHREAD"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "OPENTHREAD 0.01.00"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "openthread"
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#define PACKAGE_URL "http://github.com/openthread/openthread"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "0.01.00"
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "0.01.00"
|
||||
|
||||
/* Platform version information */
|
||||
#define PLATFORM_INFO "Windows"
|
||||
|
||||
// Windows Kernel only has sprintf_s
|
||||
#ifdef WINDOWS_KERNEL
|
||||
#define snprintf sprintf_s
|
||||
#endif // WINDOWS_KERNEL
|
||||
|
||||
// Temporary !!! TODO - Remove this once we figure out the strncpy issue
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
|
||||
// Disable a few warnings that we don't care about
|
||||
#pragma warning(disable:4201) // nonstandard extension used : nameless struct/union
|
||||
#pragma warning(disable:4291) // no matching operator delete found
|
||||
Reference in New Issue
Block a user