From 0f0baa5bb4a1ac474956d491ffbb40338a5dea37 Mon Sep 17 00:00:00 2001 From: laokaiyao Date: Mon, 5 Sep 2022 19:08:46 +0800 Subject: [PATCH] i2s: fixed the duplicated type name --- components/driver/i2s/i2s_private.h | 2 +- components/driver/include/driver/i2s_types.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/driver/i2s/i2s_private.h b/components/driver/i2s/i2s_private.h index e615be0f1d..e58b55e24f 100644 --- a/components/driver/i2s/i2s_private.h +++ b/components/driver/i2s/i2s_private.h @@ -68,7 +68,7 @@ typedef struct { int mclk; /*!< MCK out pin, shared by tx/rx*/ } i2s_controller_t; -struct i2s_channel_t { +struct i2s_channel_obj_t { /* Channel basic information */ i2s_controller_t *controller; /*!< Parent pointer to controller object */ i2s_comm_mode_t mode; /*!< i2s channel communication mode */ diff --git a/components/driver/include/driver/i2s_types.h b/components/driver/include/driver/i2s_types.h index 84cd39241b..3cd4ffa633 100644 --- a/components/driver/include/driver/i2s_types.h +++ b/components/driver/include/driver/i2s_types.h @@ -63,7 +63,7 @@ typedef struct { */ } i2s_event_data_t; -typedef struct i2s_channel_t *i2s_chan_handle_t; /*!< i2s channel handle, the control unit of the i2s driver*/ +typedef struct i2s_channel_obj_t *i2s_chan_handle_t; /*!< i2s channel object handle, the control unit of the i2s driver*/ /** * @brief I2S event callback