Searched refs:DATA_LENGTH (Results 1 – 2 of 2) sorted by relevance
29 #define DATA_LENGTH 512 /*!<Data buffer length for test buffer*/ macro42 #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 …]
24 #define DATA_LENGTH 512 /*!< Data buffer length of test buffer */ macro31 #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()