-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compile errors for esp-idf master
Added patch `i2s_types_master.diff` because bindgen generates two `i2s_channel_t` types with the same name, once for the enum and once for the forward declared struct.
- Loading branch information
Showing
3 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/components/driver/include/driver/i2s_types.h b/components/driver/include/driver/i2s_types.h | ||
index 84cd39241b40eed7885378da73771d418d75c331..f09a6fc06831992c7819e04a3cdf4b98867b4f56 100644 | ||
--- a/components/driver/include/driver/i2s_types.h | ||
+++ b/components/driver/include/driver/i2s_types.h | ||
@@ -63,7 +63,11 @@ typedef struct { | ||
*/ | ||
} i2s_event_data_t; | ||
|
||
+#ifdef __bindgen | ||
+typedef void *i2s_chan_handle_t; /*!< i2s channel handle, the control unit of the i2s driver*/ | ||
+#else | ||
typedef struct i2s_channel_t *i2s_chan_handle_t; /*!< i2s channel handle, the control unit of the i2s driver*/ | ||
+#endif | ||
|
||
/** | ||
* @brief I2S event callback |