I2CRTOS Driver by Helmut Schmücker. Removed included mbed-rtos library to prevent multiple definition. Make sure to include mbed-rtos library in your program!
Fork of I2cRtosDriver by
Diff: I2CDriverTest02.h
- Revision:
- 11:8c1d44595620
- Parent:
- 6:5b98c902a659
- Child:
- 14:352609d395c1
--- a/I2CDriverTest02.h Wed May 08 19:22:45 2013 +0000 +++ b/I2CDriverTest02.h Thu May 09 20:52:07 2013 +0000 @@ -4,10 +4,10 @@ #include "I2CSlaveRtos.h" const int freq = 400000; -const int adr = 42; -const int len=42; -const char* mstMsg="We are mbed, resistance is futile"; -const char* slvMsg="Fine with me, let's get addicted"; +const int adr = 42<<1; +const int len=34; +const char mstMsg[len]="We are mbed, resistance is futile"; +const char slvMsg[len]="Fine with me, let's get addicted "; static void slvRxMsg(I2CSlaveRtos& slv) {