mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 13:07:03 +03:00
refactoring step 3 - components
squeezelite is a component platform_esp32 is the main
This commit is contained in:
22
components/squeezelite/embedded.h
Normal file
22
components/squeezelite/embedded.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef EMBEDDED_H
|
||||
#define EMBEDDED_H
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
#define HAS_MUTEX_CREATE_P 0
|
||||
#define HAS_PTHREAD_SETNAME_NP 1
|
||||
|
||||
#ifndef PTHREAD_STACK_MIN
|
||||
#define PTHREAD_STACK_MIN 256
|
||||
#endif
|
||||
|
||||
typedef int16_t s16_t;
|
||||
typedef int32_t s32_t;
|
||||
typedef int64_t s64_t;
|
||||
typedef unsigned long long u64_t;
|
||||
|
||||
#define exit(code) { int ret = code; pthread_exit(&ret); }
|
||||
|
||||
int pthread_setname_np(pthread_t thread, const char *name);
|
||||
|
||||
#endif // EMBEDDED_H
|
||||
Reference in New Issue
Block a user