CHG: minor updates in the T55x7 methods. added the LED_A_ON / LED_A_OFF to indicate when a T55x7 command is running.

CHG: added some more comments to T55x7,  next person who looks at this will have it easier.
This commit is contained in:
iceman1001 2015-10-15 11:00:07 +02:00
commit e16054a468
3 changed files with 34 additions and 39 deletions

View file

@ -268,7 +268,7 @@ void ReadPCF7931() {
}
Dbprintf("-----------------------------------------");
return ;
cmd_send(CMD_ACK,0,0,0,0,0);
}
@ -436,18 +436,13 @@ void SendCmdPCF7931(uint32_t * tab){
while(tempo != tab[u+2]){
tempo = AT91C_BASE_TC0->TC_CV;
}
}
LED_A_OFF();
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
SpinDelay(200);
AT91C_BASE_TC0->TC_CCR = AT91C_TC_CLKDIS; // timer disable
DbpString("FINISH !");
DbpString("(Could be usefull to send the same trame many times)");
LED(0xFFFF, 1000);
}