Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of COM_MNG_TMTC_SIMPLE_pl123 by
Diff: i2c.h
- Revision:
- 138:71ed56f2ec50
- Parent:
- 137:6fcbbaf19284
- Child:
- 139:17353d6311ce
--- a/i2c.h Sat Mar 12 10:42:22 2016 +0000
+++ b/i2c.h Wed Mar 30 13:03:24 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,9 +105,7 @@
void isr_pyldtm()
{
-
- master.read(addr_pl|1,PL_I2C_DATA,13);
gLEDR=!gLEDR;
-
+ master.read(addr1,PL_I2C_DATA,134);
rcv_isr = 1;
}
\ No newline at end of file
