publishing to check changes in cdms code
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE_samp_23SEP_DMA_flag by
Diff: i2c.h
- Revision:
- 145:fb800fecf128
- Parent:
- 132:d4a4461214ad
diff -r 8074893cd24e -r fb800fecf128 i2c.h --- a/i2c.h Thu Mar 10 15:26:50 2016 +0000 +++ b/i2c.h Sat Apr 02 11:54:50 2016 +0000 @@ -12,7 +12,7 @@ bool read_ack = true; -char PL_I2C_DATA[134];//Payload i2c array + uint8_t PL_TM_SIZE;//size of data to bev read from i2c void FCTN_I2C_WRITE_PL(char *data2,uint8_t tc_len2) @@ -93,6 +93,8 @@ } +const int addr1 = (0x20<<1|0); +const int addr2 = (0x20<<1|1); @@ -103,8 +105,7 @@ void isr_pyldtm() { - - read_ack = master.read(addr_pl|1,PL_I2C_DATA,134); gLEDR=!gLEDR; + read_ack = master.read(addr1,PL_I2C_DATA,134); rcv_isr = 1; } \ No newline at end of file