aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Huang <jimmy.huang@linux.intel.com>2018-01-17 13:16:45 -0800
committerGeoff Gustafson <geoff@linux.intel.com>2018-01-17 13:16:45 -0800
commit16533f2d3519426d2137cfa77128da71742f7806 (patch)
tree70ef481c7deac27ff7cc5812ad75b1011393510a
parent8b0ac4d00c04a95592600ecd28a1d53179b5bc65 (diff)
[aio] Increase analog sampling rate (#1762)
This will fix the couldn't read from pin error when AIO is reading too fast. Fixes #1661 Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
-rw-r--r--arc/src/arc_aio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arc/src/arc_aio.c b/arc/src/arc_aio.c
index 7056175..2eb6045 100644
--- a/arc/src/arc_aio.c
+++ b/arc/src/arc_aio.c
@@ -1,4 +1,4 @@
-// Copyright (c) 2017, Intel Corporation.
+// Copyright (c) 2017-2018, Intel Corporation.
// Zephyr includes
#include <adc.h>
@@ -32,7 +32,7 @@ void arc_aio_cleanup()
u32_t arc_pin_read(u8_t pin)
{
struct adc_seq_entry entry = {
- .sampling_delay = 26, // anything smaller than 26 have error
+ .sampling_delay = 30, // anything smaller might give an error
.channel_id = pin,
.buffer = seq_buffer,
.buffer_length = ADC_BUFFER_SIZE,