Commit Graph

4 Commits

Author SHA1 Message Date
Nathaniel Brough
a1113be66c workspace: Adding bazel build formatter/linter
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>
2021-04-18 18:56:15 +00:00
Ewout van Bekkum
b0653ba265 pw_interrupt_cortex_m: adds ARMv6-M context backend
Adds the interrupt context backend for ARMv6-M.

Change-Id: Id19b02a5d2db9da6d47f86c7872eaa9ec33199fe
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/35700
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
2021-03-06 00:59:56 +00:00
Ewout van Bekkum
c423748ae6 pw_interrupt: fix context facade header includes
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>
2020-12-17 19:07:19 +00:00
Ewout van Bekkum
bd4906ce52 pw_interrupt: Adds a basic interrupt module
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>
2020-12-01 21:44:44 +00:00