ua_architecture.h 992 B

12345678910111213141516171819202122232425262728293031323334
  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. #ifdef UA_ARCHITECTURE_FREERTOSLWIP
  9. #ifndef PLUGINS_ARCH_FREERTOSLWIP_UA_ARCHITECTURE_H_
  10. #define PLUGINS_ARCH_FREERTOSLWIP_UA_ARCHITECTURE_H_
  11. #include "ua_lwip.h"
  12. #include "ua_freeRTOS.h"
  13. #if UA_MULTITHREADING >= 100
  14. #error Multithreading unsupported
  15. #else
  16. #define UA_LOCK_TYPE(mutexName)
  17. #define UA_LOCK_TYPE_POINTER(mutexName)
  18. #define UA_LOCK_INIT(mutexName)
  19. #define UA_LOCK_DESTROY(mutexName)
  20. #define UA_LOCK(mutexName)
  21. #define UA_UNLOCK(mutexName)
  22. #define UA_LOCK_ASSERT(mutexName, num)
  23. #endif
  24. #include <open62541/architecture_functions.h>
  25. #endif /* PLUGINS_ARCH_FREERTOSLWIP_UA_ARCHITECTURE_H_ */
  26. #endif /* UA_ARCHITECTURE_FREERTOSLWIP */