forked from espressif/arduino-esp32
Update IDF, fix SS definition, add custom partitions and debug level selection (#174)
* Add build time partitions compilation * Fix wrong definition of SS pin * Add support for core debug level selection * update idf libs
This commit is contained in:
26
tools/sdk/include/bluedroid/osi.h
Executable file
26
tools/sdk/include/bluedroid/osi.h
Executable file
@ -0,0 +1,26 @@
|
||||
|
||||
#ifndef _OSI_H_
|
||||
#define _OSI_H_
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define UNUSED_ATTR __attribute__((unused))
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||
#define INVALID_FD (-1)
|
||||
|
||||
#define CONCAT(a, b) a##b
|
||||
|
||||
// Use during compile time to check conditional values
|
||||
// NOTE: The the failures will present as a generic error
|
||||
// "error: initialization makes pointer from integer without a cast"
|
||||
// but the file and line number will present the condition that
|
||||
// failed.
|
||||
#define DUMMY_COUNTER(c) CONCAT(__osi_dummy_, c)
|
||||
#define DUMMY_PTR DUMMY_COUNTER(__COUNTER__)
|
||||
|
||||
#define COMPILE_ASSERT(x) char * DUMMY_PTR = !(x)
|
||||
|
||||
typedef uint32_t timeout_t;
|
||||
|
||||
#endif /*_OSI_H_*/
|
Reference in New Issue
Block a user