components/i2c/i2c_test_driver.c
/**
 * @brief test function to show buffer
 */
@brief test function to show buffer
@brief test function to show buffer
static void disp_buf(uint8_t* buf, int len)
{
    int i;
    for (i = 0; i < len; i++) {
        printf("%02x ", buf[i]);
        if (( i + 1 ) % 16 == 0) {
            printf("\n");
        }
    }
    printf("\n");
}
static void disp_buf ( uint8_t * buf , int len ) { int i ; for ( i = 0 ; i < len ; i ++ ) { printf ( " " , buf [ i ] ) ; if ( ( i + 1 ) % 16 == 0 ) { printf ( " \n " ) ; } } printf ( " \n " ) ; }
@brief test function to show buffer
@brief test function to show buffer