examples/tests/spi/spi_controller_transfer/main.c
static void buffer_eq (char *buf1, char *buf2) {
  int i;
  for (i = 0; i < BUF_SIZE; i++) {
    if (buf1[i] != buf2[i]) {
      led_on(0);
      printf("Buffers not equal: FAIL (%i: %i != %i\n", (int)i, (int)buf1[i], (int)buf2[i]);
      return;
    }
  }
  printf("Buffers equal: PASS\n");
}
// This function checks buffer
// equality, setting the LED if the
// buffers are *not* equal.
This function checks buffer
equality, setting the LED if the
buffers are *not* equal.
This function checks buffer equality setting the LED if the buffers are * not * equal .
static void buffer_eq (char *buf1, char *buf2) {
  int i;
  for (i = 0; i < BUF_SIZE; i++) {
    if (buf1[i] != buf2[i]) {
      led_on(0);
      printf("Buffers not equal: FAIL (%i: %i != %i\n", (int)i, (int)buf1[i], (int)buf2[i]);
      return;
    }
  }
  printf("Buffers equal: PASS\n");
}
static void buffer_eq ( char * buf1 , char * buf2 ) { int i ; for ( i = 0 ; i < BUF_SIZE ; i ++ ) { if ( buf1 [ i ] != buf2 [ i ] ) { led_on ( 0 ) ; printf ( " \n " , ( int ) i , ( int ) buf1 [ i ] , ( int ) buf2 [ i ] ) ; return ; } } printf ( " \n " ) ; }
This function checks buffer
equality, setting the LED if the
buffers are *not* equal.
This function checks buffer equality setting the LED if the buffers are * not * equal .