commit | 64bed8add66b3903133693265870b45160b54424 | [log] [tgz] |
---|---|---|
author | Henrik Brix Andersen <hebad@vestas.com> | Thu Mar 26 12:13:22 2020 +0100 |
committer | Kumar Gala <kumar.gala@gmail.com> | Sat Mar 28 10:22:23 2020 -0500 |
tree | 354128620e570bb4081d31db2517701a1540026a | |
parent | 9909a46f1fd45be6da7b2becb80f07a72a2e4c69 [diff] |
drivers: adc: lmp90xxx: make adc_context_start_sampling() ISR safe Introduce a dedicated function for performing an entire LMP90xxx ADC channel read and sample all channels in one go in the ADC acquisition thread. This removes the SPI transactions from adc_context_start_sampling() which can be called in k_timer ISR context for consecutive ADC reads. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>