Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 277 → Rev 278

/PIC Stuff/Cerebot_32MX7_LED_Cube/main.c
178,7 → 178,7
 
// Initialize the I2C1 module
I2C1_DATA i2c_1_data;
I2C1_Init(&i2c_1_data, I2C1_200KHZ, 0x20);
I2C1_Init(&i2c_1_data, I2C1_400KHZ, 0x20);
 
// // Initialize the UART1 module
// UART1_DATA uart_data;
245,11 → 245,10
TIMER5_Init(NULL, &Cube_Timer_Interrupt, 2000);
TIMER5_Start();
// Poll the controllers at 1kHz
Controller_Init(&ctrl_data, NULL);
Controller_Init(NULL, &Tron_Update_Direction);
TIMER4_Init(NULL, &Controller_Update, NULL, 0);
// Initialize and start the game
Tron_Init(&tron_data);
TIMER4_Start();
Tron_Main();
break;
case BOARD_MODE_ETHERNET: