diff options
| author | Keith Packard <keithp@keithp.com> | 2012-10-08 23:04:16 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-10-08 23:04:16 -0700 | 
| commit | 39c5738acdfdf0c87b64de6135fe107971cfa12b (patch) | |
| tree | 067882f873e36200f38fde4805600b6f10e68a78 /src/core/ao_data.h | |
| parent | 16bbe9d25856259d2694751c364b668638e4a971 (diff) | |
altos: Go back to recording sensor data in globalsmm-ms5611
Instead of trying to get things into the ring from a variety of
functions, go back to the simpler method of storing them in globals
and having the ADC code just pluck out the most recent values.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_data.h')
| -rw-r--r-- | src/core/ao_data.h | 9 | 
1 files changed, 1 insertions, 8 deletions
diff --git a/src/core/ao_data.h b/src/core/ao_data.h index 2b9ef5ac..30208dfb 100644 --- a/src/core/ao_data.h +++ b/src/core/ao_data.h @@ -85,14 +85,7 @@ extern volatile __data uint8_t		ao_data_count;  /*   * Mark a section of data as ready, check for data complete   */ -#define AO_DATA_PRESENT(bit)	do {					\ -		if ((ao_data_present |= (bit)) == AO_DATA_ALL) {	\ -			ao_data_ring[ao_data_head].tick = ao_tick_count; \ -			ao_data_head = ao_data_ring_next(ao_data_head); \ -			ao_data_present = 0;				\ -			ao_wakeup((void *) &ao_data_head);		\ -		}							\ -	} while (0); +#define AO_DATA_PRESENT(bit)	(ao_data_present |= (bit))  /*   * Wait until it is time to write a sensor sample; this is  | 
