1 /* 2 * Copyright (C) 2015-2017 Alibaba Group Holding Limited 3 */ 4 5 #define PORT_I2C_TEST 0 6 7 /* if the slave device addr is 0xFF, and your mcu only need to set the addr to 0xFE, 8 the last bit will be added by the hardware, set I2C_ADD_LSB_AUTO to 1. If your 9 mcu will not add the last bit auto, you must set the addr to 0xFF, set 10 I2C_ADD_LSB_AUTO to 1. 11 set */ 12 #define I2C_ADD_LSB_AUTO 0 13 14 void hal_i2c_test(void); 15