Commit Graph

10534 Commits

Author SHA1 Message Date
Alexei Frolov
b71abe8012 pw_target_runner: Increase maximum message size for binaries
Some checks are pending
bazel-noenv / bazel-build-test (push) Waiting to run
lintformat / lintformat (push) Waiting to run
Change-Id: I2dfff5eb04b4895d7d6908d2db6351ff4689c581
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222736
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Aaron Green <aarongreen@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Alexei Frolov <frolv@google.com>
2024-07-12 00:13:57 +00:00
Anthony DiGirolamo
bf88de9f5c pw_system: Reusable DeviceConnection functionality
Refactors Device class creation and associated argparse options to the
device_connection.py file. This allows standard Python scripts to easily
setup a connection to a device in the same way pw_system console does.

Changes to console.py:
- Remove the --proto-globs feature. This was running protoc at runtime
  and on the proto files outside of the build system.
- Remove unused --output option. This is a legacy option back when
  ipython was the main interface. There are already multiple logfile
  creation options.

Change-Id: Icf66faf5ad7248b7e74f5087a47cb2d010e4a4fc
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221752
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
2024-07-12 00:05:30 +00:00
Luis Flores
ada3a6bb4f pw_web: Add filter field buttons and placeholder
Screenshots: screen/3CDS8LBxpqzAV7E, screen/547HMN3wdrrA9sx

Change-Id: Ic3dab35c41205c5a03dac293056bf49d5ba74569
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222711
Reviewed-by: Amy Hu <amyhu@google.com>
Commit-Queue: Luis Flores <lesprit@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
2024-07-12 00:05:23 +00:00
Asad Memon
db01bc93c1 pw_web: Include core .proto files in the npm bundle
When downstream user is building their own protos using
pw_proto_compiler, they usually need pw_* protos alongside.
Having them handy in node_modules make it much easier.

Change-Id: Ic7650b75f15141e9c6b34586229ab4c65aeafb6b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222533
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Asad Memon <asadmemon@google.com>
Reviewed-by: Luis Flores <lesprit@google.com>
2024-07-11 23:51:37 +00:00
jingjingbu
a047c41217 pw_toolchain_bazel: Add native binary for clang-tidy
Bug: 352343585

Change-Id: I13460b4850f4ffd39aeeb964637d603ecf2460ac
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221471
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Samuel Liu <slliu@google.com>
2024-07-11 22:55:14 +00:00
Jason Graffius
f2e580ecbc pw_bluetooth_sapphire: Remove modulo operator from asserts
Because the assert macros can use format strings in some configurations,
there must not be any `%` characters within the macro argument. This
change fixes the one instance of this in pw_bluetooth_sapphire.

Change-Id: I6f00b49bfa6fa25fb78c6317e8f33dc2be19349d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222233
Reviewed-by: Faraaz Sareshwala <fsareshwala@google.com>
Reviewed-by: Ben Lawson <benlawson@google.com>
Commit-Queue: Jason Graffius <jgraff@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
2024-07-11 22:23:37 +00:00
Armando Montanez
cca41e3e72 third_party/freertos: Add missing CM33_NTZ header
Change-Id: I0401e32efb0c5004899cb407e8e6624ca3bcec45
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222574
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
2024-07-11 22:20:53 +00:00
Amy Hu
8abeae9d31 pw_web: Add newlines, separators, and clear for output
Bug: 348650028
Change-Id: Ia5786b9a2ecf0ffa2bd1627588042c0a1b5c460f
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222531
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Amy Hu <amyhu@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Asad Memon <asadmemon@google.com>
2024-07-11 22:10:44 +00:00
Ted Pudlik
88dbbf23b2 bazel: Run all tests with googletest backend in CI
Fixed: 352584464
Change-Id: Ie0f1ad38f3daaf6095a4512b53c15d60b7719627
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222532
Reviewed-by: Rob Mohr <mohrr@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Ted Pudlik <tpudlik@google.com>
2024-07-11 21:40:04 +00:00
Rob Mohr
b9de0f4511 pw_env_setup: Use full paths for proj action imports
This didn't always work as-is in LUCI since cwd was often not the
checkout directory.

Change-Id: Ib05247ace3d0712953cbfd5598197e400c8cbd79
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222571
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
2024-07-11 21:30:17 +00:00
Ted Pudlik
41a0140c8e third_party/googletest: Fix the docs
Bug: 352584464
Change-Id: I0310db525ae7428603e0bc80dc5be80f3fec72e4
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222573
Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Reviewed-by: Rob Mohr <mohrr@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-07-11 21:23:59 +00:00
Ted Pudlik
b041517545 bazel: Add missing dependencies
These deps were provided by some transitive dependency when using the
:light backend for pw_unit_test, but are revealed as missing when
building with the :googletest backend.

Bug: 352584464
Change-Id: Id17fa7ffd36ef88321cb03f0c93342956f16abb2
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222572
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Rob Mohr <mohrr@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
2024-07-11 21:22:21 +00:00
Jason Graffius
9b979cb0cb pw_bluetooth_sapphire: Add Bazel build files to lib/ packages
Adds Bazel build files to the lib/cpp-type and lib/cpp-string packages,
allowing them to be referenced from other Bazel packages within
pw_bluetooth_sapphire until the full Bazel build for
pw_bluetooth_sapphire is fully configured.

Change-Id: I920651bce3120a46e04e5fcb01506536c17e6bfe
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222232
Reviewed-by: Faraaz Sareshwala <fsareshwala@google.com>
Reviewed-by: Ben Lawson <benlawson@google.com>
Commit-Queue: Jason Graffius <jgraff@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
2024-07-11 21:05:44 +00:00
Asad Memon
932c44e8e5 pw_system: Add web console option
Change-Id: Id72ed10dcccd75ea57420cd0e605255e35b62827
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221071
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Asad Memon <asadmemon@google.com>
2024-07-11 21:05:41 +00:00
Amy Hu
7eb32bb61f pw_web: Set min width for message
Bug: 351901512
Change-Id: I726e1dfc3e75d503b307c4a2ac7a430e7f0db506
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221592
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Amy Hu <amyhu@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Asad Memon <asadmemon@google.com>
2024-07-11 20:46:36 +00:00
Christoph Klee
b4987e47ae pw_stream_uart_mcuxpresso: Clean up dma stream comments
Change-Id: Ibabe6c73d9a2b1354594792d5dca34e05c5ef60c
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222111
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Christoph Klee <chklee@google.com>
2024-07-11 20:13:15 +00:00
Jason Graffius
1d8d68b37b third_party/icu: Update Bazel rules for dependent headers
In addition to the existing `utf8.h` header, also include all dependent
headers of `utf8.h` in the Bazel template. Additionally marks the
third_party/icu directory as a Bazel package, as otherwise Bazel will
complain when another package attempts to use icu.

Change-Id: Icc9e9fd6c758ad33682a79728da2c80d81d9c7e8
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222231
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Faraaz Sareshwala <fsareshwala@google.com>
Pigweed-Auto-Submit: Faraaz Sareshwala <fsareshwala@google.com>
Reviewed-by: Erik Gilling <konkers@google.com>
Commit-Queue: Jason Graffius <jgraff@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ben Lawson <benlawson@google.com>
2024-07-11 20:01:44 +00:00
Wyatt Hepler
a10dc77e7b pw_system: Add missing work queue thread
Forgot to add a thread for the work queue.

Change-Id: I263b67ed225f74e5edccb89b62bdcbc6ae977869
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222372
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Taylor Cramer <cramertj@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
2024-07-11 18:52:13 +00:00
Wyatt Hepler
dbda0e98bd pw_system: Clean up pw_system/threads.cc
Change-Id: I6a21e624c7a46fa5dc02a183f0d4e280a3f7df82
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222371
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Taylor Cramer <cramertj@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
2024-07-11 18:49:50 +00:00
Ted Pudlik
cd7e34bbe9 pw_function: Dynamic allocation for upstream host
Enable dynamic allocation in pw_function, for Bazel upstream host builds
only. This has no effect on downstream projects or non-host builds.

Change-Id: Ife7eef3e13e533867c923c5c2dc9dd966f637ceb
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221871
Reviewed-by: Erik Gilling <konkers@google.com>
Commit-Queue: Rob Mohr <mohrr@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Taylor Cramer <cramertj@google.com>
Commit-Queue: Ted Pudlik <tpudlik@google.com>
2024-07-11 18:37:36 +00:00
Luis Flores
61c6b9a2ed pw_web: Implement console-level split panels
Bug: 348649945
Change-Id: Ic7b8b4562f56c61351d993bb998e75b77e8e8e58
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/220691
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Asad Memon <asadmemon@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Luis Flores <lesprit@google.com>
2024-07-11 18:20:39 +00:00
Dave Roth
27aedcf115 pw_cpu_exception_cortex_m: Add armv6-m support
Bug: https://pwbug.dev/350747553
Fixes: https://pwbug.dev/350747562

Change-Id: Ie898ca4a3a48297d69c39c59dd595f2deb43776b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/219132
Reviewed-by: Armando Montanez <amontanez@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Dave Roth <davidroth@google.com>
2024-07-11 17:16:20 +00:00
Amy Hu
e6ad28bbb6 pw_web: Update REPL styles
Some checks are pending
bazel-noenv / bazel-build-test (push) Waiting to run
lintformat / lintformat (push) Waiting to run
Changelist:
- Update icons to include play_arrow and stop
- Update light and dark styles for REPL
- Add stdin in output
- Fix scroll overflow for output
- Keep scrollbar at end when output overflows

Change-Id: I7c062c7157cf71200920a49724d4fb6f8646c2f0
Bug: 348650028
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/220971
Commit-Queue: Amy Hu <amyhu@google.com>
Reviewed-by: Luis Flores <lesprit@google.com>
Reviewed-by: Asad Memon <asadmemon@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-07-11 04:00:58 +00:00
Asad Memon
2f86c6dfec pw_web: Repl kernel interface and litjs component for repl
Change-Id: Ice62df1effb954e5f4b6e4bfbb41522079ccac80
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/217311
Reviewed-by: Asad Memon <asadmemon@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Asad Memon <asadmemon@google.com>
Reviewed-by: Amy Hu <amyhu@google.com>
2024-07-11 01:13:36 +00:00
Ted Pudlik
97aecb2d19 pw_build: Add flags_from_dict
Some checks are pending
bazel-noenv / bazel-build-test (push) Waiting to run
lintformat / lintformat (push) Waiting to run
Break out the flag formatting functionality from merge_flags.
This is actually a more natural API.

Bug: 301334234
Change-Id: I105e52fad852f8600bc84a844d79de375ae740f3
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221691
Reviewed-by: Austin Foxley <afoxley@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
2024-07-11 00:09:24 +00:00
Kayce Basques
73ef002b92 docs: Fix shortlink URL
It should have linked directly to the tutorial.

Change-Id: Iffccf5431242170ef373e9a62df3aa140b8cf61d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221751
Reviewed-by: Rob Mohr <mohrr@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Kayce Basques <kayce@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
2024-07-10 23:58:27 +00:00
Asad Memon
45fd25bd3e pw_console: Headless mode with web/ws server running
Change-Id: I68e7c873cd46a8f9d82ac1e22f49f71665a7b6ec
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/215860
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Asad Memon <asadmemon@google.com>
2024-07-10 23:18:09 +00:00
Rob Mohr
fa6e930113 pw_presubmit: Narrow copyright notice exclusions
Remove the general exclusion of all dotfiles from the copyright notice
check. Instead, add specific files that don't support comments, like
'.bazelversion', or that are auto-generated, like '.cipd_digests'.

Bug: b/347062591
Change-Id: Ib848db7903a0acb6e28daf3039cb7b38184c6000
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221532
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
2024-07-10 23:15:02 +00:00
Rob Mohr
c16a0a5640 dotfiles: Add copyright notice
Multiple dotfiles were caught by an internal tool as not having
appropriate copyright notices. Where possible, add copyright notices to
all dotfiles, even if not required. A followup change will remove the
exclusion that applied to these files.

Bug: b/347062591
Change-Id: Ief6fc21c1f611785e2baaa738ffc2e973e58b4bb
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221531
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
2024-07-10 23:13:40 +00:00
Austin Foxley
1e21134904 pw_log_string: Require backend_impl to be set explicitly
Change-Id: I67e3948172e4f1a676a6378035c607a479cec59e
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221293
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Austin Foxley <afoxley@google.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Pigweed-Auto-Submit: Austin Foxley <afoxley@google.com>
2024-07-10 22:48:51 +00:00
Rob Mohr
9c624cddf1 pw_presubmit: Add copyright notice to some test data
Bug: b/347062591
Change-Id: I3c3980b9fceed80505156c28a5c5882b6bc9bb01
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221395
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
2024-07-10 22:24:41 +00:00
Kayce Basques
eaebb102be docs: Add shortlink to pw_enviro draft
Change-Id: I8b7952a0251197d04b3fe889760b2ef9dd3677d4
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221533
Commit-Queue: Kayce Basques <kayce@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Rob Mohr <mohrr@google.com>
2024-07-10 21:35:05 +00:00
Wyatt Hepler
2058720227 pw_system: Configurable thread stack sizes
Change-Id: I684c685526db4d99014e06988dc260f1d8bf4546
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221394
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
2024-07-10 21:29:15 +00:00
Jason Graffius
911590baa5 pw_bluetooth_sapphire: Use pwemb namespace alias in FakeController
The FakeController class has a variety of mentions of
pw::bluetooth::emboss in it. This change shorts those mentions to pwemb
using a namespace alias. This is just to make reading the code slightly
easier. There are no logic changes here.

Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1006213
GitOrigin-RevId: a8f1bbcaeeb8c33ed693ce31003c0c83a7ea228b
Change-Id: I51af13463112d681f7bcddb007402b2687c4a2e2
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221034
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Jason Graffius <jgraff@google.com>
Reviewed-by: Josh Conner <joshconner@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
2024-07-10 21:13:01 +00:00
Rob Mohr
b403402a8a pw_presubmit: Exclude test_data from bazel_lint
Change-Id: I114c64cca730e1683cb0046ca52c50c38a76472b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221152
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
2024-07-10 21:04:23 +00:00
Rob Mohr
ceeae0cc9d .github: Add copyright notice
Bug: b/347062591
Change-Id: If31d66bb0ee3edb86ee45af8152ea0b64728a54d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221491
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-07-10 20:33:33 +00:00
Faraaz Sareshwala
c89c0361d2 pw_bluetooth_sapphire: Unmask LE Connection Complete
fxrev.dev/985356 added support for extended connections. However,
somehow it got merged with only LE Enhanced Connection Complete
unmasked. It didn't get merged with LE Connection Complete unmasked. We
need to unmask LE Connection Complete so that the Controller knows to
send us the event.

Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1006214
GitOrigin-RevId: e60eb09b042a745de58e9b30e419cc3075811ce8
Change-Id: I0dc43c848fa4e02f3c55f71ec722fc4bfa6e5ac3
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221033
Reviewed-by: Josh Conner <joshconner@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Pigweed-Auto-Submit: Jason Graffius <jgraff@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
2024-07-10 20:29:56 +00:00
Jason Graffius
fea8942141 pw_bluetooth_sapphire: Implement ExtendedLowEnergyConnector
Fixed: b/305976440
Test: unit tests, added new ones
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/985356
GitOrigin-RevId: ae653af107bf2c9ac0904270b77e2ab4dd1fd65e
Change-Id: I1669c54d7621966cd26b2dc2d3660413329250de
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221032
Reviewed-by: Ben Lawson <benlawson@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Jason Graffius <jgraff@google.com>
2024-07-10 20:18:23 +00:00
Lulu Wang
6901feb705 pw_bluetooth_sapphire: Enable bt-host component
Delete bt-host driver from bluetooth-core AIB base
Delete bt-host driver integration test code
Update and enable integration tests for bt-host component

fxr/959795 is merged into this CL to prevent Broadcom driver breakage
Smart Displays will now be using bt-host component after this CL

fxr/1002217 is merged into this CL to prevent Intel driver breakage

Bug: b/303116559, b/324109634
Fixed: b/326079781, b/325142183
Test:
- fx test //src/connectivity/bluetooth/
- OOBE on Nelson; paired, streamed audio to Nelson DUT from iOS device,
  and disconnected
- fssh bt-snoop-cli --format pcap | wireshark -k -i -
- bt-cli start-discovery
- bt-cli list-peers
- OOBE on VIM3 hardware

Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/991355
API-Review: Marie Janssen <jamuraa@google.com>
GitOrigin-RevId: 3d1f86479f0e39089fcd4de9fedc2513db0bf367
Change-Id: I7065e75faf2340250c84ffd9919b6f8b09c56dbd
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221011
Pigweed-Auto-Submit: Jason Graffius <jgraff@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Ben Lawson <benlawson@google.com>
2024-07-10 18:37:51 +00:00
Lulu Wang
4e95e9dc76 pw_bluetooth_sapphire: Support ISO Channel FIDL Protocol in Drivers
Implements FIDL ISO channel support in the virtual driver. This fixes
the issue during HCI initialization in integration tests where the
emulator crashes since isochronous channels weren't supported.

Other changes include: adding ISO channel handling for the bt-hci
passthrough and intel drivers, updating Banjo API name to be consistent
with FIDL.

Fixed: b/328457492, b/328459391
Test: fx test //src/connectivity/bluetooth
Manual Test: Texted with fxr/991355, paired and streamed audio to
Nelson DUT from iOS device
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1002652
API-Review: Marie Janssen <jamuraa@google.com>
GitOrigin-RevId: 5fdfa1b03e42d68e3a7dab361fc034e24f11e770
Change-Id: Id1677ee7d300be1889d7a287f6f4c966765ca349

Change-Id: I249561f58922d91b783ccc5ebbf2845bd39fbe72
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221267
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Faraaz Sareshwala <fsareshwala@google.com>
Pigweed-Auto-Submit: Jason Graffius <jgraff@google.com>
Reviewed-by: Ben Lawson <benlawson@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
2024-07-10 18:36:27 +00:00
Ted Pudlik
1fc96205b7 bazel: Don't propagate flags to exec config
This will improve cache hit rates, and also allow us to use
@bazel_tool//tools/cpp:link_extra_libs for pw_assert and pw_log
implementation targets (without these flags this does not work because
you invariably end up with circular dependencies).

Requires Bazel 8.

Bug: 234877642
Bug: 315871648
Change-Id: I503c501329638b666c54b8aedd0a294b8563b907
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/220812
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Ted Pudlik <tpudlik@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
2024-07-10 16:57:52 +00:00
Rob Mohr
1d190f27e2 pw_presubmit: Exclude files from copyright
Some checks are pending
bazel-noenv / bazel-build-test (push) Waiting to run
lintformat / lintformat (push) Waiting to run
Exclude some fonts and files copybara-d from Fuchsia from the copyright
check.

Change-Id: Ica387eb10aa5587d501e4da16dc1e2a73c53fdf9
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221151
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
2024-07-10 16:34:02 +00:00
Jason Graffius
afe76e45d2 pw_bluetooth_sapphire: Add ISO support to controllers
Some checks are pending
bazel-noenv / bazel-build-test (push) Waiting to run
lintformat / lintformat (push) Waiting to run
Implement support in Banjo and FIDL controllers for ISO data
streams.

Bug: b/311639690
Test: fx test //src/connectivity/bluetooth/core/bt-host
      Manual testing on Sherlock:
      - OOBE
      - A2DP (Source and Sink)
      - HFP (AG)
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/998736
GitOrigin-RevId: e8c75890a68e5a817272737408ca399edf598674
Change-Id: I35be99c1ac152ac21780139577f29796dfaaaf5c
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/218992
Reviewed-by: Faraaz Sareshwala <fsareshwala@google.com>
Commit-Queue: Jason Graffius <jgraff@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
2024-07-10 03:05:13 +00:00
Jimmy Chen
73623f5829 pw_malloc_freertos: Fix typo
Bug: 351945325
Change-Id: I9b878c492858a95b9a917d0fa8f3f7cb68b82d21
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/220751
Reviewed-by: Wyatt Hepler <hepler@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Pigweed-Auto-Submit: Jimmy Chen <jimmycmchen@google.com>
Commit-Queue: Jimmy Chen <jimmycmchen@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
2024-07-10 02:05:15 +00:00
Ted Pudlik
1154e3a628 pw_bluetooth_sapphire: Tag integration test
This will prevent this (quite slow) test from running as part of `bazel
test //...`. It will still be run in CI: we have a dedicated builder
that runs these tests.

Bug: 344654806
Change-Id: I18b1557beb267bb798dc2b5eb41d907bb6dd0370
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/220991
Commit-Queue: Ted Pudlik <tpudlik@google.com>
Reviewed-by: Ben Lawson <benlawson@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
2024-07-10 01:16:27 +00:00
Jason Graffius
500cb93ede pw_bluetooth_sapphire: Implement ExtendedLowEnergyScanner
Some checks are pending
bazel-noenv / bazel-build-test (push) Waiting to run
lintformat / lintformat (push) Waiting to run
Fixed: b/305975969
Test: unit tests, added new ones
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/985355
GitOrigin-RevId: 30acf086fb2ddedc7d4e80d95692c3d9977054b1
Change-Id: Iaa3ae48bf0f09344eb847ee3618d86a4a3f99596
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/218979
Reviewed-by: Faraaz Sareshwala <fsareshwala@google.com>
Commit-Queue: Faraaz Sareshwala <fsareshwala@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
2024-07-10 00:04:19 +00:00
Anthony DiGirolamo
011d6ca73e pw_cli: Interactive user index prompt
- Move pw_system.find_serial_port interactive device selector to
  pw_cli and use it for rp2040_utils.flasher.
- Add USB product and manufacturer info to the flasher selection list.

Change-Id: Iffca689dbd0e5907d330f0f6f4f7ed0d937e3605
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/220931
Reviewed-by: Taylor Cramer <cramertj@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
2024-07-09 23:20:14 +00:00
Ted Pudlik
7c60abf8f3 pw_assert: Split up Bazel assert backend, part 2
Switch to using the new assert and check backends.

This is a breaking change: downstream projects now need to set the new
backend label flags (`@pigweed//pw_assert:check_backend` and
`@pigweed//pw_assert:check_backend_impl`) and include them in their link
deps.

Bug: 350585010
Change-Id: I12e70dec4c69e49dda8b1b199878b1df8d073470
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/219791
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Taylor Cramer <cramertj@google.com>
Commit-Queue: Ted Pudlik <tpudlik@google.com>
2024-07-09 23:10:38 +00:00
Ali Saeed
211982ec49 pw_bluetooth_proxy: Delete "sendGattNotify"
Complete transition to "SendGattNotify".

Fixed: 350106534
Change-Id: I35d71a43f620146550e25bd4bc5caddaaf5b47c6
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/220951
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Ali Saeed <saeedali@google.com>
Reviewed-by: David Rees <drees@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
2024-07-09 21:32:41 +00:00
Taylor Cramer
418b923b27 roll: Update Bazel to 8.0 rolling release
This is the first release of Bazel which includes platform-based flags.

Fix: b/344013743
Change-Id: Ia7d4327fac498e813227dedc1ef21c9ee320ac28
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/220118
Pigweed-Auto-Submit: Taylor Cramer <cramertj@google.com>
Commit-Queue: Taylor Cramer <cramertj@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
2024-07-09 21:04:20 +00:00