haz static offset definitions

master
Dario Ernst 15 years ago
parent 33f61a8671
commit 26f72f830e

@ -43,10 +43,11 @@ void hardinit() {
}
void softinit() {
mcpadc_init(ADC_GAIN_2|ADC_CONV_CONT|ADC_BITS_16);
dbg_init();
stdout = &mystdout;
printf("======= starting logging\n");
mcpadc_init(ADC_GAIN_2|ADC_CONV_CONT|ADC_BITS_16);
offset_init();
}

@ -6,6 +6,13 @@ int16_t offset_val[4];
int16_t offsets[4];
void offset_init() {
offsets[0] = 2342;
offsets[1] = 4223;
offsets[2] = 2423;
offsets[3] = 4232;
}
int16_t offset_measure_start(int16_t channel) {
offset_measure[channel] = 1;
offset_count[channel] = 1;

@ -9,6 +9,7 @@ extern int16_t offset_count[4];
extern int16_t offset_val[4];
extern int16_t offsets[4];
void offset_init();
int16_t offset_measure_start(int16_t channel);
int16_t offset_measure_stop(int16_t channel);

Loading…
Cancel
Save