embedded.h 442 B

12345678910111213141516171819202122
  1. #ifndef EMBEDDED_H
  2. #define EMBEDDED_H
  3. #include <inttypes.h>
  4. #define HAS_MUTEX_CREATE_P 0
  5. #define HAS_PTHREAD_SETNAME_NP 1
  6. #ifndef PTHREAD_STACK_MIN
  7. #define PTHREAD_STACK_MIN 256
  8. #endif
  9. typedef int16_t s16_t;
  10. typedef int32_t s32_t;
  11. typedef int64_t s64_t;
  12. typedef unsigned long long u64_t;
  13. #define exit(code) { int ret = code; pthread_exit(&ret); }
  14. int pthread_setname_np(pthread_t thread, const char *name);
  15. #endif // EMBEDDED_H