ua_architecture.h 1018 B

1234567891011121314151617181920212223242526272829303132333435
  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_NAME
  17. #define UA_LOCK_TYPE(mutexName)
  18. #define UA_LOCK_TYPE_POINTER(mutexName)
  19. #define UA_LOCK_INIT(mutexName)
  20. #define UA_LOCK_DESTROY(mutexName)
  21. #define UA_LOCK(mutexName)
  22. #define UA_UNLOCK(mutexName)
  23. #define UA_LOCK_ASSERT(mutexName, num)
  24. #endif
  25. #include <open62541/architecture_functions.h>
  26. #endif /* PLUGINS_ARCH_FREERTOSLWIP_UA_ARCHITECTURE_H_ */
  27. #endif /* UA_ARCHITECTURE_FREERTOSLWIP */