Commit 4670f3b7 authored by wyattc's avatar wyattc
Browse files

Update main.c

parent 3d27b5f9
......@@ -4,12 +4,7 @@
const int timerPeriod=1000000*1000/2;
uint tempC=0;
void Timer1_IRQHandler( void ){
move_forward(100);
*((uint32_t*) 0x40050014) = 0xffff9a65;
MSS_TIM1_clear_irq();
}
void Timer2_IRQHandler( void ){
double percent = (double)Steps_taken/Required_steps;
percent *= 100;
......@@ -27,12 +22,7 @@ void tempUARTtxTimerInit()
MSS_TIM2_start();
MSS_TIM2_enable_irq();
}
void moveTimerInit() {
MSS_TIM1_init(MSS_TIMER_PERIODIC_MODE);
MSS_TIM1_load_immediate(timerPeriod);
MSS_TIM1_start();
MSS_TIM1_enable_irq();
}
typedef enum PrintOpts
{
......@@ -104,7 +94,6 @@ int init(ScaffoldingBot *sb)
printf("--- Init Timers ---\n");
tempUARTtxTimerInit();
moveTimerInit();
return 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment