1.1 --- a/pkg/landfall-examples/letux400_i2c/letux400_i2c.cc Tue Feb 16 22:53:31 2021 +0100
1.2 +++ b/pkg/landfall-examples/letux400_i2c/letux400_i2c.cc Wed Feb 17 00:48:47 2021 +0100
1.3 @@ -258,6 +258,22 @@
1.4 sleep(5);
1.5 }
1.6
1.7 + printf("start_not_possible = %d\n"
1.8 + "read_not_ready = %d\n"
1.9 + "read_not_ready_clear = %d\n"
1.10 + "read_not_ready_stx = %d\n"
1.11 + "read_not_possible = %d\n"
1.12 + "read_nack = %d\n"
1.13 + "read_complete = %d\n"
1.14 + "write_not_possible = %d\n"
1.15 + "write_complete = %d\n"
1.16 + "total_reads = %d\n",
1.17 + jz4730_i2c_start_not_possible(i2c0), jz4730_i2c_read_not_ready(i2c0), jz4730_i2c_read_not_ready_clear(i2c0), jz4730_i2c_read_not_ready_stx(i2c0),
1.18 + jz4730_i2c_read_not_possible(i2c0), jz4730_i2c_read_nack(i2c0), jz4730_i2c_read_complete(i2c0),
1.19 + jz4730_i2c_write_not_possible(i2c0), jz4730_i2c_write_complete(i2c0), jz4730_i2c_total_reads(i2c0));
1.20 +
1.21 + sleep(30);
1.22 +
1.23 /* Issue a shutdown request. */
1.24
1.25 buf[0] = 0xd8; buf[1] = 1;