example of i2c slave device supporting block transfers

Dependencies:   lib_i2c_slave_block

Tested on nucleo board as slave. Use with i2c_master_block_example on raspberry pi as master.

Master I2C write will print on serial terminal 115200. User button will raise an irq; the RPi test program will service the interrupt.

See lib_i2c_slave_block for explanation of code.

Revision:
2:d7e05c75f240
Parent:
0:3ccfaf358115
Child:
3:0288d257446a
--- a/cmds.h	Fri Jan 18 16:01:28 2019 -0800
+++ b/cmds.h	Mon Jan 21 18:09:05 2019 -0800
@@ -3,6 +3,7 @@
 #define CMD_TEST12              0x01
 #define CMD_TEST32              0x02
 #define CMD_IRQ                 0x03
+#define CMD_BUFFER              0x04
 
 typedef union {
     struct __attribute__((packed)) {