Commit c78e7575 authored by James Pallister's avatar James Pallister

Cleaned up systick

parent bbffdb39
......@@ -120,7 +120,7 @@ typedef struct {
unsigned current;
unsigned average_voltage;
unsigned average_current;
unsigned current_time;
uint64_t current_time;
} instant_data;
int tperiod=500;
......@@ -577,16 +577,6 @@ void exti_timer_setup()
nvic_set_priority(NVIC_EXTI15_10_IRQ, 0x40);
}
static void systick_setup(void)
{
systick_set_reload(16800);
systick_set_clocksource(STK_CSR_CLKSOURCE_AHB);
systick_counter_enable();
nvic_set_priority(NVIC_SYSTICK_IRQ, 0x80);
systick_interrupt_enable();
}
void error_condition()
{
gpio_set(GPIOD, GPIO15);
......
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