Adds in buildifier bazel targets that autoformat/lint the entire
WORKSPACE. This can be invoked by running;
'bazel run //:buildifier'
or
'bazel run //:buildifier_test'
Change-Id: Iaaf7f6241e29894eca94aa6b5d0ca3b33255b7f7
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/36160
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Keir Mierle <keir@google.com>
The pw_interrupt context facade header was including the backend
header before the prototype definitions making it impossible to be
used for the intended inlining without tripping a redundant
declaration warning.
This changes the facade header to optionally include a backend
inlining header and fixes up the CortexM backend accordingly.
Change-Id: I7d03c4b843ffa8ccece438b641206d5f14628114
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/28000
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Adds a basic interrupt module which for now only gives you the
ability to determine if you're executing in an interrupt
context.
In addition this also adds the first two backends of this module's
context facade (pw_interrupt_cortex_m:context_{armv7m,armv8m}).
Change-Id: If0056997f814b0ac33cb0209fc9b247c2599594e
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/24421
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>