|
|
@@ -5,7 +5,7 @@ |
|
|
|
#include "timer.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include "scaling.h"
|
|
|
|
#include "calibrate.h"
|
|
|
|
#include "util.h"
|
|
|
|
#include "led.h"
|
|
|
|
#include "mode.h"
|
|
|
@@ -18,6 +18,8 @@ static int zero_adc = 0; |
|
|
|
|
|
|
|
void TISR_HANDLER(7)
|
|
|
|
{
|
|
|
|
#pragma warn FIXME
|
|
|
|
#if 0
|
|
|
|
int16_t v;
|
|
|
|
float dac_current, i;
|
|
|
|
|
|
|
@@ -37,6 +39,7 @@ void TISR_HANDLER(7) |
|
|
|
dac = current_to_dac(dac_current);
|
|
|
|
dac_write(dac);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
void sweep(void)
|
|
|
@@ -74,7 +77,7 @@ void run_debug(void) |
|
|
|
timer_setup_16bit(7, TIMER_RATE, 1);
|
|
|
|
timer_set_priority(7, 6);
|
|
|
|
|
|
|
|
led_pattern(0x10101010);
|
|
|
|
led_pattern(0b10101010);
|
|
|
|
|
|
|
|
uart1_put_string("Zoom NILM Debug\r\n");
|
|
|
|
|
|
|
|