|
|
|
@@ -0,0 +1,322 @@
|
|
|
|
|
/*
|
|
|
|
|
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
|
|
|
|
*/
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
|
|
|
#include "freertos/queue.h"
|
|
|
|
|
#include "freertos/task.h"
|
|
|
|
|
#include "esp_log.h"
|
|
|
|
|
#include "unity.h"
|
|
|
|
|
#include "driver/gpio.h"
|
|
|
|
|
#include "driver/i2s_tdm.h"
|
|
|
|
|
|
|
|
|
|
static const char *TAG = "i2s_tdm_full_duplex_test";
|
|
|
|
|
|
|
|
|
|
#define TEST_I2S_FRAME_SIZE (128)
|
|
|
|
|
#define TEST_I2S_PACKET_COUNT (512)
|
|
|
|
|
|
|
|
|
|
#define TEST_I2S_NUM (I2S_NUM_0) // ESP32-C3 has only I2S0
|
|
|
|
|
#define TEST_I2S_BCK_IO (GPIO_NUM_4)
|
|
|
|
|
#define TEST_I2S_WS_IO (GPIO_NUM_5)
|
|
|
|
|
#define TEST_I2S_DO_IO (GPIO_NUM_6)
|
|
|
|
|
#define TEST_I2S_DI_IO (GPIO_NUM_7) // DI and DO gpio will be reversed on slave runner
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
TaskHandle_t maintask_handle;
|
|
|
|
|
QueueHandle_t tx_queue;
|
|
|
|
|
i2s_chan_handle_t tx_channel_handle;
|
|
|
|
|
i2s_data_bit_width_t tx_data_bit_width;
|
|
|
|
|
i2s_tdm_slot_mask_t tdm_slot_mask;
|
|
|
|
|
} test_i2s_tdm_write_task_args_t;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
uint32_t *buffer;
|
|
|
|
|
uint32_t buffer_size;
|
|
|
|
|
} test_i2s_tdm_write_buffer_t;
|
|
|
|
|
|
|
|
|
|
static void test_i2s_tdm_master_write_task(void *args)
|
|
|
|
|
{
|
|
|
|
|
test_i2s_tdm_write_task_args_t *task_args = (test_i2s_tdm_write_task_args_t*)args;
|
|
|
|
|
|
|
|
|
|
/* Allocate I2S tx buffer */
|
|
|
|
|
uint32_t channel_count = 32 - __builtin_clz(task_args->tdm_slot_mask);
|
|
|
|
|
uint32_t tx_buffer_size = TEST_I2S_FRAME_SIZE * channel_count * (task_args->tx_data_bit_width / 8);
|
|
|
|
|
ESP_LOGI(TAG, "Allocating I2S TDM master tx buffer, size=%ld", tx_buffer_size);
|
|
|
|
|
uint32_t *tx_buffer = malloc(tx_buffer_size);
|
|
|
|
|
TEST_ASSERT(tx_buffer);
|
|
|
|
|
|
|
|
|
|
uint32_t data_cnt = 0;
|
|
|
|
|
size_t bytes_written = 0;
|
|
|
|
|
ESP_LOGI(TAG, "I2S TDM master send start");
|
|
|
|
|
TEST_ESP_OK(i2s_channel_enable(task_args->tx_channel_handle));
|
|
|
|
|
while (xTaskNotifyWait(0, ULONG_MAX, NULL, 0) == pdFALSE) { // if main task sends terminate signal, exit the loop
|
|
|
|
|
/* Fill in the tx buffer */
|
|
|
|
|
for (uint32_t i = 0; i < tx_buffer_size / sizeof(uint32_t); i ++) {
|
|
|
|
|
tx_buffer[i] = data_cnt;
|
|
|
|
|
data_cnt ++;
|
|
|
|
|
}
|
|
|
|
|
TEST_ESP_OK(i2s_channel_write(task_args->tx_channel_handle, tx_buffer, tx_buffer_size,
|
|
|
|
|
&bytes_written, portMAX_DELAY));
|
|
|
|
|
TEST_ASSERT_EQUAL(tx_buffer_size, bytes_written);
|
|
|
|
|
}
|
|
|
|
|
ESP_LOGI(TAG, "I2S TDM master send stop");
|
|
|
|
|
TEST_ESP_OK(i2s_channel_disable(task_args->tx_channel_handle));
|
|
|
|
|
ESP_LOGI(TAG, "Freeing I2S TDM master tx buffer");
|
|
|
|
|
free(tx_buffer);
|
|
|
|
|
|
|
|
|
|
xTaskNotifyGive(task_args->maintask_handle); // notify main task that cleanup is done
|
|
|
|
|
vTaskSuspend(NULL); // wait to be deleted
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void test_i2s_tdm_master(uint32_t sample_rate, i2s_data_bit_width_t bit_width, i2s_tdm_slot_mask_t slot_mask)
|
|
|
|
|
{
|
|
|
|
|
i2s_chan_handle_t i2s_tdm_tx_handle = NULL;
|
|
|
|
|
i2s_chan_handle_t i2s_tdm_rx_handle = NULL;
|
|
|
|
|
|
|
|
|
|
/* Create I2S tx and rx channels */
|
|
|
|
|
i2s_chan_config_t i2s_channel_config = {
|
|
|
|
|
.id = TEST_I2S_NUM,
|
|
|
|
|
.role = I2S_ROLE_MASTER,
|
|
|
|
|
.dma_desc_num = 4,
|
|
|
|
|
.dma_frame_num = TEST_I2S_FRAME_SIZE,
|
|
|
|
|
.auto_clear = false
|
|
|
|
|
};
|
|
|
|
|
TEST_ESP_OK(i2s_new_channel(&i2s_channel_config, &i2s_tdm_tx_handle, &i2s_tdm_rx_handle));
|
|
|
|
|
|
|
|
|
|
/* Configure channels to TDM mode */
|
|
|
|
|
i2s_tdm_config_t i2s_tdm_config = {
|
|
|
|
|
.clk_cfg = I2S_TDM_CLK_DEFAULT_CONFIG(sample_rate),
|
|
|
|
|
.slot_cfg = I2S_TDM_PHILIP_SLOT_DEFAULT_CONFIG(bit_width, I2S_SLOT_MODE_STEREO, slot_mask),
|
|
|
|
|
.gpio_cfg = {
|
|
|
|
|
.mclk = GPIO_NUM_NC,
|
|
|
|
|
.bclk = TEST_I2S_BCK_IO,
|
|
|
|
|
.ws = TEST_I2S_WS_IO,
|
|
|
|
|
.dout = TEST_I2S_DO_IO,
|
|
|
|
|
.din = TEST_I2S_DI_IO
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
TEST_ESP_OK(i2s_channel_init_tdm_mode(i2s_tdm_tx_handle, &i2s_tdm_config));
|
|
|
|
|
TEST_ESP_OK(i2s_channel_init_tdm_mode(i2s_tdm_rx_handle, &i2s_tdm_config));
|
|
|
|
|
|
|
|
|
|
/* Create TDM write task */
|
|
|
|
|
TaskHandle_t subtask_handle = NULL;
|
|
|
|
|
test_i2s_tdm_write_task_args_t task_args = {
|
|
|
|
|
.tx_channel_handle = i2s_tdm_tx_handle,
|
|
|
|
|
.maintask_handle = xTaskGetCurrentTaskHandle(),
|
|
|
|
|
.tx_data_bit_width = bit_width,
|
|
|
|
|
.tdm_slot_mask = slot_mask
|
|
|
|
|
};
|
|
|
|
|
xTaskCreate(test_i2s_tdm_master_write_task, "I2S TDM Write Task", 4096, &task_args, 5, &subtask_handle);
|
|
|
|
|
|
|
|
|
|
/* Allocate I2S rx buffer */
|
|
|
|
|
uint32_t channel_count = 32 - __builtin_clz(slot_mask);
|
|
|
|
|
uint32_t rx_buffer_size = channel_count * TEST_I2S_FRAME_SIZE * (bit_width / 8);
|
|
|
|
|
ESP_LOGI(TAG, "Allocating I2S TDM master rx buffer, size=%"PRIu32, rx_buffer_size);
|
|
|
|
|
uint32_t *rx_buffer = malloc(rx_buffer_size);
|
|
|
|
|
TEST_ASSERT(rx_buffer);
|
|
|
|
|
|
|
|
|
|
uint8_t is_packet_valid = 0;
|
|
|
|
|
uint32_t good_packet_cnt = 0;
|
|
|
|
|
size_t bytes_read = 0;
|
|
|
|
|
ESP_LOGI(TAG, "I2S TDM master receive start");
|
|
|
|
|
TEST_ESP_OK(i2s_channel_enable(i2s_tdm_rx_handle));
|
|
|
|
|
for(uint32_t packet_cnt = 0; packet_cnt < TEST_I2S_PACKET_COUNT; packet_cnt ++) {
|
|
|
|
|
TEST_ESP_OK(i2s_channel_read(i2s_tdm_rx_handle, rx_buffer, rx_buffer_size,
|
|
|
|
|
&bytes_read, portMAX_DELAY));
|
|
|
|
|
TEST_ASSERT_EQUAL(rx_buffer_size, bytes_read);
|
|
|
|
|
|
|
|
|
|
/* Check for empty packet */
|
|
|
|
|
if (rx_buffer[0] == 0) { // empty packet
|
|
|
|
|
if (is_packet_valid == 0) { // omit leading empty packets
|
|
|
|
|
packet_cnt = 0;
|
|
|
|
|
} else {
|
|
|
|
|
ESP_LOGW(TAG, "empty packet %"PRIu32, packet_cnt);
|
|
|
|
|
}
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
is_packet_valid = 1;
|
|
|
|
|
/* Check received packet */
|
|
|
|
|
uint8_t is_good_packet = 1;
|
|
|
|
|
uint32_t last_value = rx_buffer[0];
|
|
|
|
|
for (uint32_t j = 1; j < rx_buffer_size / sizeof(uint32_t); j ++) {
|
|
|
|
|
if (rx_buffer[j] == last_value + 1) { // increased by 1
|
|
|
|
|
last_value = rx_buffer[j];
|
|
|
|
|
} else {
|
|
|
|
|
is_good_packet = 0;
|
|
|
|
|
ESP_LOGW(TAG, "corrupted packet %"PRIu32, packet_cnt);
|
|
|
|
|
break; // corrupted packet
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (is_good_packet) {
|
|
|
|
|
good_packet_cnt ++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ESP_LOGI(TAG, "Send signal to terminate subtask");
|
|
|
|
|
xTaskNotifyGive(subtask_handle); // notify subtask to exit
|
|
|
|
|
xTaskNotifyWait(0, ULONG_MAX, NULL, portMAX_DELAY); // wait subtask to do some cleanups
|
|
|
|
|
ESP_LOGI(TAG, "Deleting subtask");
|
|
|
|
|
vTaskDelete(subtask_handle); // delete subtask
|
|
|
|
|
|
|
|
|
|
ESP_LOGI(TAG, "I2S TDM master receive stop");
|
|
|
|
|
TEST_ESP_OK(i2s_channel_disable(i2s_tdm_rx_handle));
|
|
|
|
|
|
|
|
|
|
ESP_LOGI(TAG, "Freeing I2S TDM master rx buffer");
|
|
|
|
|
free(rx_buffer);
|
|
|
|
|
ESP_LOGI(TAG, "Deleting i2s tx and rx channels");
|
|
|
|
|
TEST_ESP_OK(i2s_del_channel(i2s_tdm_rx_handle));
|
|
|
|
|
TEST_ESP_OK(i2s_del_channel(i2s_tdm_tx_handle));
|
|
|
|
|
|
|
|
|
|
if (good_packet_cnt < TEST_I2S_PACKET_COUNT-4) { // if there are enough good packets
|
|
|
|
|
ESP_LOGE(TAG, "Good packet count(%"PRIu32") less than threshold", good_packet_cnt);
|
|
|
|
|
TEST_FAIL();
|
|
|
|
|
} else {
|
|
|
|
|
ESP_LOGI(TAG, "Good packet count: %"PRIu32, good_packet_cnt);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void test_i2s_tdm_slave(uint32_t sample_rate, i2s_data_bit_width_t bit_width, i2s_tdm_slot_mask_t slot_mask)
|
|
|
|
|
{
|
|
|
|
|
i2s_chan_handle_t i2s_tdm_tx_handle = NULL;
|
|
|
|
|
i2s_chan_handle_t i2s_tdm_rx_handle = NULL;
|
|
|
|
|
|
|
|
|
|
/* Create I2S tx and rx channels */
|
|
|
|
|
i2s_chan_config_t i2s_channel_config = {
|
|
|
|
|
.id = TEST_I2S_NUM,
|
|
|
|
|
.role = I2S_ROLE_SLAVE,
|
|
|
|
|
.dma_desc_num = 4,
|
|
|
|
|
.dma_frame_num = TEST_I2S_FRAME_SIZE,
|
|
|
|
|
.auto_clear = false
|
|
|
|
|
};
|
|
|
|
|
TEST_ESP_OK(i2s_new_channel(&i2s_channel_config, &i2s_tdm_tx_handle, &i2s_tdm_rx_handle));
|
|
|
|
|
|
|
|
|
|
/* Configure channels to TDM mode */
|
|
|
|
|
i2s_tdm_config_t i2s_tdm_config = {
|
|
|
|
|
.clk_cfg = I2S_TDM_CLK_DEFAULT_CONFIG(sample_rate),
|
|
|
|
|
.slot_cfg = I2S_TDM_PHILIP_SLOT_DEFAULT_CONFIG(bit_width, I2S_SLOT_MODE_STEREO, slot_mask),
|
|
|
|
|
.gpio_cfg = {
|
|
|
|
|
.mclk = GPIO_NUM_NC,
|
|
|
|
|
.bclk = TEST_I2S_BCK_IO,
|
|
|
|
|
.ws = TEST_I2S_WS_IO,
|
|
|
|
|
.dout = TEST_I2S_DI_IO,
|
|
|
|
|
.din = TEST_I2S_DO_IO // on slave, swap DI and DO pin
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
TEST_ESP_OK(i2s_channel_init_tdm_mode(i2s_tdm_tx_handle, &i2s_tdm_config));
|
|
|
|
|
TEST_ESP_OK(i2s_channel_init_tdm_mode(i2s_tdm_rx_handle, &i2s_tdm_config));
|
|
|
|
|
|
|
|
|
|
/* Allocate I2S rx buffer */
|
|
|
|
|
uint32_t channel_count = 32 - __builtin_clz(slot_mask);
|
|
|
|
|
uint32_t rx_buffer_size = TEST_I2S_FRAME_SIZE * channel_count * (bit_width / 8);
|
|
|
|
|
ESP_LOGI(TAG, "Allocating I2S TDM slave buffer, size=%ld", rx_buffer_size);
|
|
|
|
|
uint32_t *rx_buffer = malloc(rx_buffer_size);
|
|
|
|
|
TEST_ASSERT(rx_buffer);
|
|
|
|
|
|
|
|
|
|
ESP_LOGI(TAG, "I2S TDM slave receive & send start");
|
|
|
|
|
TEST_ESP_OK(i2s_channel_enable(i2s_tdm_rx_handle));
|
|
|
|
|
TEST_ESP_OK(i2s_channel_enable(i2s_tdm_tx_handle));
|
|
|
|
|
uint32_t packet_cnt = 0;
|
|
|
|
|
size_t bytes_read = 0, bytes_written = 0;
|
|
|
|
|
while (packet_cnt < TEST_I2S_PACKET_COUNT) {
|
|
|
|
|
TEST_ESP_OK(i2s_channel_read(i2s_tdm_rx_handle, rx_buffer, rx_buffer_size,
|
|
|
|
|
&bytes_read, portMAX_DELAY));
|
|
|
|
|
TEST_ASSERT_EQUAL(rx_buffer_size, bytes_read);
|
|
|
|
|
|
|
|
|
|
TEST_ESP_OK(i2s_channel_write(i2s_tdm_tx_handle, rx_buffer, rx_buffer_size,
|
|
|
|
|
&bytes_written, portMAX_DELAY));
|
|
|
|
|
TEST_ASSERT_EQUAL(rx_buffer_size, bytes_written);
|
|
|
|
|
if (rx_buffer[0]) { // packet is not empty
|
|
|
|
|
packet_cnt ++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Send empty buffers to flush DMA ringbuffer until timeout */
|
|
|
|
|
memset(rx_buffer, 0, rx_buffer_size);
|
|
|
|
|
while (i2s_channel_write(i2s_tdm_tx_handle, rx_buffer, rx_buffer_size,
|
|
|
|
|
&bytes_written, pdMS_TO_TICKS(200)) != ESP_ERR_TIMEOUT);
|
|
|
|
|
|
|
|
|
|
ESP_LOGI(TAG, "I2S TDM slave receive stop");
|
|
|
|
|
TEST_ESP_OK(i2s_channel_disable(i2s_tdm_rx_handle));
|
|
|
|
|
TEST_ESP_OK(i2s_channel_disable(i2s_tdm_tx_handle));
|
|
|
|
|
|
|
|
|
|
ESP_LOGI(TAG, "Freeing I2S TDM slave buffer");
|
|
|
|
|
free(rx_buffer);
|
|
|
|
|
|
|
|
|
|
ESP_LOGI(TAG, "Deleting i2s tx and rx channels");
|
|
|
|
|
TEST_ESP_OK(i2s_del_channel(i2s_tdm_rx_handle));
|
|
|
|
|
TEST_ESP_OK(i2s_del_channel(i2s_tdm_tx_handle));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void test_i2s_tdm_master_48k_32bits_4slots(void)
|
|
|
|
|
{
|
|
|
|
|
test_i2s_tdm_master(48000, I2S_DATA_BIT_WIDTH_32BIT, I2S_TDM_SLOT0 | I2S_TDM_SLOT1 | I2S_TDM_SLOT2 | I2S_TDM_SLOT3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void test_i2s_tdm_slave_48k_32bits_4slots(void)
|
|
|
|
|
{
|
|
|
|
|
test_i2s_tdm_slave(48000, I2S_DATA_BIT_WIDTH_32BIT, I2S_TDM_SLOT0 | I2S_TDM_SLOT1 | I2S_TDM_SLOT2 | I2S_TDM_SLOT3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST_CASE_MULTIPLE_DEVICES("I2S TDM full duplex multiple device test (48k, 32bits, 4slots)", "[I2S_TDM]",
|
|
|
|
|
test_i2s_tdm_master_48k_32bits_4slots, test_i2s_tdm_slave_48k_32bits_4slots);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void test_i2s_tdm_master_48k_16bits_4slots(void)
|
|
|
|
|
{
|
|
|
|
|
test_i2s_tdm_master(48000, I2S_DATA_BIT_WIDTH_16BIT, I2S_TDM_SLOT0 | I2S_TDM_SLOT1 | I2S_TDM_SLOT2 | I2S_TDM_SLOT3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void test_i2s_tdm_slave_48k_16bits_4slots(void)
|
|
|
|
|
{
|
|
|
|
|
test_i2s_tdm_slave(48000, I2S_DATA_BIT_WIDTH_16BIT, I2S_TDM_SLOT0 | I2S_TDM_SLOT1 | I2S_TDM_SLOT2 | I2S_TDM_SLOT3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST_CASE_MULTIPLE_DEVICES("I2S TDM full duplex multiple device test (48k, 16bits, 4slots)", "[I2S_TDM]",
|
|
|
|
|
test_i2s_tdm_master_48k_16bits_4slots, test_i2s_tdm_slave_48k_16bits_4slots);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void test_i2s_tdm_master_48k_8bits_4slots(void)
|
|
|
|
|
{
|
|
|
|
|
test_i2s_tdm_master(48000, I2S_DATA_BIT_WIDTH_8BIT, I2S_TDM_SLOT0 | I2S_TDM_SLOT1 | I2S_TDM_SLOT2 | I2S_TDM_SLOT3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void test_i2s_tdm_slave_48k_8bits_4slots(void)
|
|
|
|
|
{
|
|
|
|
|
test_i2s_tdm_slave(48000, I2S_DATA_BIT_WIDTH_8BIT, I2S_TDM_SLOT0 | I2S_TDM_SLOT1 | I2S_TDM_SLOT2 | I2S_TDM_SLOT3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST_CASE_MULTIPLE_DEVICES("I2S TDM full duplex multiple device test (48k, 8bits, 4slots)", "[I2S_TDM]",
|
|
|
|
|
test_i2s_tdm_master_48k_8bits_4slots, test_i2s_tdm_slave_48k_8bits_4slots);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void test_i2s_tdm_master_48k_16bits_8slots(void)
|
|
|
|
|
{
|
|
|
|
|
test_i2s_tdm_master(48000, I2S_DATA_BIT_WIDTH_16BIT, I2S_TDM_SLOT0 | I2S_TDM_SLOT1 | I2S_TDM_SLOT2 | I2S_TDM_SLOT3 |
|
|
|
|
|
I2S_TDM_SLOT4 | I2S_TDM_SLOT5 | I2S_TDM_SLOT6 | I2S_TDM_SLOT7);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void test_i2s_tdm_slave_48k_16bits_8slots(void)
|
|
|
|
|
{
|
|
|
|
|
test_i2s_tdm_slave(48000, I2S_DATA_BIT_WIDTH_16BIT, I2S_TDM_SLOT0 | I2S_TDM_SLOT1 | I2S_TDM_SLOT2 | I2S_TDM_SLOT3 |
|
|
|
|
|
I2S_TDM_SLOT4 | I2S_TDM_SLOT5 | I2S_TDM_SLOT6 | I2S_TDM_SLOT7);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST_CASE_MULTIPLE_DEVICES("I2S TDM full duplex multiple device test (48k, 16bits, 8slots)", "[I2S_TDM]",
|
|
|
|
|
test_i2s_tdm_master_48k_16bits_8slots, test_i2s_tdm_slave_48k_16bits_8slots);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void test_i2s_tdm_master_96k_16bits_4slots(void)
|
|
|
|
|
{
|
|
|
|
|
test_i2s_tdm_master(96000, I2S_DATA_BIT_WIDTH_16BIT, I2S_TDM_SLOT0 | I2S_TDM_SLOT1 | I2S_TDM_SLOT2 | I2S_TDM_SLOT3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void test_i2s_tdm_slave_96k_16bits_8slots(void)
|
|
|
|
|
{
|
|
|
|
|
test_i2s_tdm_slave(96000, I2S_DATA_BIT_WIDTH_16BIT, I2S_TDM_SLOT0 | I2S_TDM_SLOT1 | I2S_TDM_SLOT2 | I2S_TDM_SLOT3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST_CASE_MULTIPLE_DEVICES("I2S TDM full duplex multiple device test (96k, 16bits, 4slots)", "[I2S_TDM]",
|
|
|
|
|
test_i2s_tdm_master_96k_16bits_4slots, test_i2s_tdm_slave_96k_16bits_8slots);
|