open62541 1.3.12
Open source implementation of OPC UA
Loading...
Searching...
No Matches
ua_architecture.h
Go to the documentation of this file.
1/** This work is licensed under a Creative Commons CCZero 1.0 Universal License.
2 * See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
3 *
4 * Copyright 2016-2017 (c) Julius Pfrommer, Fraunhofer IOSB
5 * Copyright 2017-2018 (c) Stefan Profanter, fortiss GmbH
6 * Copyright 2018 (c) Jose Cabral, fortiss GmbH
7 */
8
9#ifdef UA_ARCHITECTURE_FREERTOSLWIP
10
11#ifndef PLUGINS_ARCH_FREERTOSLWIP_UA_ARCHITECTURE_H_
12#define PLUGINS_ARCH_FREERTOSLWIP_UA_ARCHITECTURE_H_
13
14#include "ua_lwip.h"
15#include "ua_freeRTOS.h"
16
17#if UA_MULTITHREADING >= 100
18#error Multithreading unsupported
19#else
20#define UA_LOCK_INIT(lock)
21#define UA_LOCK_DESTROY(lock)
22#define UA_LOCK(lock)
23#define UA_UNLOCK(lock)
24#define UA_LOCK_ASSERT(lock, num)
25#endif
26
27#define UA_strncasecmp strncasecmp
28
29// freeRTOS does not have getifaddr
30#undef UA_HAS_GETIFADDR
31
32#ifndef IN6_IS_ADDR_UNSPECIFIED
33# define IN6_IS_ADDR_UNSPECIFIED(a) \
34 (((const uint32_t *) (a))[0] == 0 \
35 && ((const uint32_t *) (a))[1] == 0 \
36 && ((const uint32_t *) (a))[2] == 0 \
37 && ((const uint32_t *) (a))[3] == 0)
38#endif
39
41
42#endif /* PLUGINS_ARCH_FREERTOSLWIP_UA_ARCHITECTURE_H_ */
43
44#endif /* UA_ARCHITECTURE_FREERTOSLWIP */