mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
94896eaae6791df63eae6e0bfc6161a660d1abe6
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>
For an overview of the Embedded Controller firmware, refer to http://www.chromium.org/chromium-os/2014-firmware-summit For instructions on building from source, refer to http://www.chromium.org/chromium-os/ec-development/getting-started-building-ec-images-quickly
Description
Languages
C
64.7%
Lasso
20.7%
ASL
3.6%
JavaScript
3.2%
C#
2.9%
Other
4.6%