Files
OpenCellular/chip/g
Shawn Nematbakhsh 94896eaae6 g: hwtimer: Improve accuracy of hwtimer and ensure minimum udelay() wait
hwtimer ticks at 8 * 32768 Hz rather than 250 KHz, so adjust our timing
appropriately. Also ensure that udelay() will delay for at least the
requested time, taking into account our timer precision.

BUG=b:63858553
TEST=Generate square wave with 1000us udelay between GPIO edge toggle,
verify period is 1000us + code overhead. Also verify timer behavior on
overflow with 'forcetime' command. Also verify accuracy of system clock
to 0.2% with `timerinfo` and a stopwatch.
BRANCH=None

Change-Id: I5da41bd7250db87de5143cc54ebd0bb750fb7003
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/578551
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
2017-07-21 21:24:12 -07:00
..
2017-07-06 21:53:35 +00:00
2017-07-06 21:53:35 +00:00
2016-04-29 16:07:13 -07:00
2017-06-02 10:38:57 -07:00
2016-11-04 18:31:44 -07:00
2017-05-16 13:37:03 -07:00
2016-02-01 21:17:22 +00:00
2017-06-16 17:24:28 -07:00
2017-01-13 21:48:55 -08:00
2016-11-04 18:31:44 -07:00
2017-05-12 03:25:39 -07:00
2017-03-10 08:34:22 -08:00
2016-07-13 19:09:19 -07:00
2017-06-16 17:24:28 -07:00
2017-05-12 03:25:39 -07:00
2017-03-16 11:25:50 -07:00
2015-04-02 20:27:46 +00:00
2016-10-22 00:01:02 +00:00
2017-05-12 03:25:39 -07:00
2017-05-25 00:14:07 -07:00
2017-03-16 11:25:50 -07:00