}
call I2CClk.clr();
- if (ack) call I2C.masterAck();
- else call I2C.masterNack();
+ if (ack)
+ {
+ call I2C.masterAck();
+ }
+ else
+ {
+ call I2C.masterNack();
+ }
}
return retChar;
}
transition();
call I2CClk.clr();
- // ...Check the ACK from the receiver....
-
- // if(SDA2==1){ACK=0;} /* ACK received£¿*/
- // else ACK= 1;
-
- // SCL2 = LOW;
- // transition();
idle();
}
}
{
atomic
{
+ call I2CData.makeOutput();
call I2CClk.clr();
call I2CData.clr(); // Low for ack
transition();
{
atomic
{
+ call I2CData.makeOutput();
call I2CClk.clr();
call I2CData.set(); // High for nack