commit | 94c5dbed3fde6857ebf2c0c7e7a9bf506099b706 | [log] [tgz] |
---|---|---|
author | Sam Hansen <hansens@google.com> | Mon Jan 08 21:50:25 2024 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jan 08 21:50:25 2024 +0000 |
tree | 243e4d34605cdb72ff9779e576b81c59f47692d8 | |
parent | 4acee3b5afaa2f1ef3a6091ba5078b2118e6531f [diff] |
Improve OUT_OF_RANGE error handling The chip only supports a limited range of dates (basically 1900-01-01 through 2099-12-31). This improves on the error handling around these dates. Change-Id: Iff8773586300d78c7e0ebe59aa98e6f62461750a Reviewed-on: https://fuchsia-review.googlesource.com/c/drivers/rtc/nxp/pcf8563/+/969223 Reviewed-by: Puneetha Ramachandra <puneetha@google.com> Commit-Queue: Sam Hansen <hansens@google.com>
This repository is a based on a template repository which will be adopted automatically by OOT driver repositories.
Template repository is located in: https://fuchsia.googlesource.com/template/driver/
To perform an initial bootstrap, execute the following:
In a terminal, clone the repository:
git clone https://fuchsia.googlesource.com/drivers/rtc/nxp/pcf8563
Change to that directory:
cd pcf8563
Fetch all git submodules:
git submodule init && git submodule update --recursive
Bootstrap the build environment:
scripts/bootstrap.sh
Fetch and build the SDK:
tools/bazel build @fuchsia_sdk//:fuchsia_toolchain_sdk
See the getting started guide for more info.
The Fuchsia driver package can be built locally with:
tools/bazel build src/drivers/pcf8563:pkg
Run the full test-suite with:
tools/bazel test :tests
Run only the pcf8563 driver tests with:
tools/bazel test src/drivers/pcf8563:test