alan broad
/
carbon_v5_arm_studio
arm studio build
Diff: src/commI2C.cpp
- Revision:
- 17:74d60177c6b6
- Parent:
- 9:cc23b2049639
- Child:
- 18:d95e1a2c4303
diff -r 5cc10d804d49 -r 74d60177c6b6 src/commI2C.cpp --- a/src/commI2C.cpp Sun Jan 20 15:19:57 2019 +0000 +++ b/src/commI2C.cpp Fri Jan 25 01:46:26 2019 +0000 @@ -11,7 +11,6 @@ extern bool verbose; //#define TEST - //============================================================================== // i2c_proc_init // - init i2c comm to proc @@ -20,17 +19,16 @@ { slave.frequency(100000); // added DRT NOT NEEDED BY SLAVE????,asb, need this ???? uint8_t slave_address = 0xA0; //PROC code uses 7bit address shifted by one so 0xA0 (xdot) => 0x50 (PROC) - slave.address(slave_address); - //set wake hi - + slave.address(slave_address); return; } //============================================================================== // i2c_wait4wake_lo // - wait for the wake signal from proc to go low // NEEDS TO BE CORRECTED, THIS WAITS FOR A HI THEN A LOW !!!! -//============================================================================== -#ifdef NOT_USED +//============================================================================== +/* +//#ifdef NOT_USED void i2c_wait4wake_lo(void){ wake.input(); // if(verbose)pc.printf("\n\r waiting for wake to go hi %d",wake); @@ -54,7 +52,8 @@ return; } -#endif +//#endif +*/ //============================================================================== // i2c_pulse_wake // - pulse the wake signal to tell proc that xdot ready for i2c xfr