commit | 23f37470d0f9a7bb15a3a61520feb7635f63c08d | [log] [tgz] |
---|---|---|
author | Andres Oportus <andresoportus@google.com> | Wed Oct 26 22:43:03 2022 +0000 |
committer | Andres Oportus <andresoportus@google.com> | Fri Oct 28 21:04:44 2022 +0000 |
tree | 095bf0aed643d92cfbb898f2ea844feba2413593 | |
parent | 1972c77c5fd9f94f3ba0ca70fa2b26d4a88c205a [diff] |
[audio][drivers][da7219] Move to the DriverBase library Also roll the SDK which is needed for these changes and use an I2C service instead of protocol. Bug: 102079 Test: Trace the driver logs "Started" and the I2C controller logs data in/out. tools/bazel run --config=fuchsia_x64 //src/da7219/controller:pkg.component tools/bazel run --config=fuchsia_x64 //src/da7219/driver:pkg tools/ffx log --filter da7219 --filter controller [src/da7219/controller/i2c_server.cc:42] Received write address=34 [src/da7219/controller/i2c_server.cc:43] Received write data=56 [src/da7219/controller/i2c_server.cc:50] Received write address=78 [src/da7219/controller/i2c_server.cc:59] Read data to send data=12 [src/da7219/driver/da7219.cc:101] Read byte=12 [src/da7219/driver/da7219.cc:103] Started Change-Id: I0827786d3918b6e37e4564c4b23bb920225361a6
This repository contains instructions and source code to build Dialog drivers using only the Fuchsia SDK.
scripts/bootstrap.sh
tools/ffx sdk version
This command prints output similar to the following:
andresoportus@andresoportus:~/src/dialog$ tools/ffx sdk version INFO: Cannot find the Fuchsia SDK toolchain, attempting to fetch it... Starting local Bazel server and connecting to it... INFO: Analyzed target @fuchsia_sdk//:fuchsia_toolchain_sdk (2 packages loaded, 2 targets configured). INFO: Found 1 target... Target @fuchsia_sdk//:fuchsia_toolchain_sdk up-to-date (nothing to build) INFO: Elapsed time: 46.731s, Critical Path: 0.02s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action 9.20221004.1.1
To load the driver components on Qemu, first start the Qemu as specified in https://fuchsia.dev/fuchsia-src/get-started/sdk/get-started-with-driver?hl=en#start-the-emulator
Follow the README.md for the specific driver, for instance da7219/README.md.