Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 544 → Rev 553

/branches/salvo_gps/Basis_v0067g/trunk/main.c
98,7 → 98,7
if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10;
// Salvo 9.12.2007 PC6 als Ausgang
// DDRC = 0x81; // SCL
DDRC = 0xC1; // SCL und PC6 als Ausgang
DDRC = 0xCD; // SCL und PC2,PC3, PC6 als Ausgang
PORTC = 0xff; // Pullup SDA
DDRB = 0x1B; // LEDs und Druckoffset
PORTB = 0x01; // LED_Rot
193,7 → 193,7
I2CTimeout = 5000;
while (1)
{
if (UpdateMotor) // ReglerIntervall
if (UpdateMotor) // ReglerIntervall
{
// SPI_TransmitByte();
UpdateMotor=0;
202,6 → 202,7
//PORTD &= ~0x08;
SendMotorData();
ROT_OFF;
 
if(PcZugriff) PcZugriff--;
else
{