Subversion Repositories BL-Ctrl

Compare Revisions

Ignore whitespace Rev 80 → Rev 81

/branches/V0.41-Hexa/main.c
244,6 → 244,7
while(timer--)
{
// if(SENSE_H) { PORTC |= ROT; } else { PORTC &= ~ROT;}
asm volatile("");
}
return(0);
}
265,7 → 266,7
void MotorTon(void)
//############################################################################
{
unsigned char ADR_TAB[5] = {0,0,2,1,3};
unsigned char ADR_TAB[7] = {0,0,3,1,4,2,5};
unsigned int timer = 300,i;
unsigned int t = 0;
unsigned char anz = 0,MosfetOkay = 0, grenze = 50;
477,7 → 478,7
Delay(SOUND8_A);
}
*/
Delay_ms(300 * (4-ADR_TAB[MotorAdresse]));
Delay_ms(300 * (6-ADR_TAB[MotorAdresse]));
if(!(MosfetOkay & 0x01)) { anz = 1; UDR='A'; } else
if(!(MosfetOkay & 0x02)) { anz = 2; UDR='B'; } else
if(!(MosfetOkay & 0x04)) { anz = 3; UDR='C'; } else