Project

General

Profile

Revision fa11365c

IDfa11365c9b19d5fac57fdb0f6442f1060dcf1ac1
Parent 6b1a3a0d
Child 3a25bcb9

Added by Aaron Perley about 10 years ago

Arbitrary length i2c test

View differences:

scout_avr/bom/test.c
6 6

  
7 7

  
8 8
static void slave_rx(uint8_t *buf, int len) {
9
  if (len >= 3) {
9
  if (len > 1) {
10 10
    switch (buf[0]) {
11 11
      case BOM_I2C_SEND:
12 12
        smb_send_data(buf, len);

Also available in: Unified diff