Home
last modified time | relevance | path

Searched refs:DATA_LENGTH (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-3.6.0/components/driver/test/
Dtest_i2c.c29 #define DATA_LENGTH 512 /*!<Data buffer length for test buffer*/ macro
42 #define I2C_SLAVE_TX_BUF_LEN (2*DATA_LENGTH) /*!<I2C slave tx buffer size */
43 #define I2C_SLAVE_RX_BUF_LEN (2*DATA_LENGTH) /*!<I2C slave rx buffer size */
208 uint8_t *data_wr = (uint8_t *) malloc(DATA_LENGTH);
219 for (int i = 0; i < DATA_LENGTH; i++) {
236 uint8_t *data_wr = (uint8_t *) malloc(DATA_LENGTH);
243 for (int i = 0; i < DATA_LENGTH; i++) {
296 uint8_t *data_wr = (uint8_t *) malloc(DATA_LENGTH); in i2c_master_write_test()
308 for (i = 0; i < DATA_LENGTH / 2; i++) { in i2c_master_write_test()
311 i2c_master_write_slave(I2C_MASTER_NUM, data_wr, DATA_LENGTH / 2); in i2c_master_write_test()
[all …]
/hal_espressif-3.6.0/examples/peripherals/i2c/i2c_self_test/main/
Di2c_example_main.c24 #define DATA_LENGTH 512 /*!< Data buffer length of test buffer */ macro
31 #define I2C_SLAVE_TX_BUF_LEN (2 * DATA_LENGTH) /*!< I2C slave tx buffer size */
32 #define I2C_SLAVE_RX_BUF_LEN (2 * DATA_LENGTH) /*!< I2C slave rx buffer size */
210 uint8_t *data = (uint8_t *)malloc(DATA_LENGTH); in i2c_test_task()
211 uint8_t *data_wr = (uint8_t *)malloc(DATA_LENGTH); in i2c_test_task()
212 uint8_t *data_rd = (uint8_t *)malloc(DATA_LENGTH); in i2c_test_task()
236 for (i = 0; i < DATA_LENGTH; i++) { in i2c_test_task()
243 ret = i2c_master_read_slave(I2C_MASTER_NUM, data_rd, DATA_LENGTH); in i2c_test_task()
266 for (i = 0; i < DATA_LENGTH; i++) { in i2c_test_task()