Corrected header file include guards.
Dependencies: FiniteStateMachine HipControl Knee LinearBlend1 LocalFileSystem_Read dataComm hapticFeedback initExoVars mbed Blend_Generator Brad_poly_gait Gait_Generator MM_gait Encoders IMUdriver
Fork of Motion Control by
Diff: dataBedComm/dataBedComm.cpp
- Revision:
- 18:03d7c5fdc0c7
- Parent:
- 17:b77c31807825
--- a/dataBedComm/dataBedComm.cpp Tue Mar 17 21:16:43 2015 +0000 +++ b/dataBedComm/dataBedComm.cpp Fri Mar 20 20:27:08 2015 +0000 @@ -5,15 +5,13 @@ // Databed comm stuff //////////////////////////////////////////////////////// -int *sendData(int dataOut[], int length, int dataIn[]) +short *sendData(short dataOut[], int length, short dataIn[]) { for(int ii=0; ii<length; ii++) { DB_cs=0; - //pc.printf("write\r\n"); dataIn[ii]=dataBedSPI.write(dataOut[ii]); DB_cs=1; - wait_us(5); //3 us is lowest setting that works + wait_us(4); } - return dataIn; } \ No newline at end of file