pw_atomic: Add module for atomic operations

This creates a module which provides software implementations of atomic
operations.

Tested: Hardware testing performed on RP2040 and RP2350 devices as part
  of the Pico SDK.
Change-Id: I8c57e647f9e442c77a8ec471a7f35bf85d2d3592
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/239719
Commit-Queue: Alexei Frolov <frolv@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
12 files changed
tree: 62ccd5d88642374197640c88a3ce82fac5ddb2a8
  1. .allstar/
  2. .github/
  3. .vscode/
  4. build_overrides/
  5. docker/
  6. docs/
  7. kudzu/
  8. pw_alignment/
  9. pw_allocator/
  10. pw_analog/
  11. pw_android_toolchain/
  12. pw_arduino_build/
  13. pw_assert/
  14. pw_assert_basic/
  15. pw_assert_fuchsia/
  16. pw_assert_log/
  17. pw_assert_tokenized/
  18. pw_assert_trap/
  19. pw_assert_zephyr/
  20. pw_async/
  21. pw_async2/
  22. pw_async2_basic/
  23. pw_async2_epoll/
  24. pw_async_basic/
  25. pw_async_fuchsia/
  26. pw_atomic/
  27. pw_base64/
  28. pw_bloat/
  29. pw_blob_store/
  30. pw_bluetooth/
  31. pw_bluetooth_hci/
  32. pw_bluetooth_profiles/
  33. pw_bluetooth_proxy/
  34. pw_bluetooth_sapphire/
  35. pw_boot/
  36. pw_boot_cortex_m/
  37. pw_build/
  38. pw_build_android/
  39. pw_build_info/
  40. pw_build_mcuxpresso/
  41. pw_bytes/
  42. pw_channel/
  43. pw_checksum/
  44. pw_chre/
  45. pw_chrono/
  46. pw_chrono_embos/
  47. pw_chrono_freertos/
  48. pw_chrono_rp2040/
  49. pw_chrono_stl/
  50. pw_chrono_threadx/
  51. pw_chrono_zephyr/
  52. pw_cli/
  53. pw_cli_analytics/
  54. pw_clock_tree/
  55. pw_clock_tree_mcuxpresso/
  56. pw_compilation_testing/
  57. pw_config_loader/
  58. pw_console/
  59. pw_containers/
  60. pw_cpu_exception/
  61. pw_cpu_exception_cortex_m/
  62. pw_cpu_exception_risc_v/
  63. pw_crypto/
  64. pw_digital_io/
  65. pw_digital_io_linux/
  66. pw_digital_io_mcuxpresso/
  67. pw_digital_io_rp2040/
  68. pw_display/
  69. pw_dma_mcuxpresso/
  70. pw_docgen/
  71. pw_doctor/
  72. pw_elf/
  73. pw_emu/
  74. pw_env_setup/
  75. pw_env_setup_zephyr/
  76. pw_file/
  77. pw_format/
  78. pw_function/
  79. pw_fuzzer/
  80. pw_grpc/
  81. pw_hdlc/
  82. pw_hex_dump/
  83. pw_i2c/
  84. pw_i2c_linux/
  85. pw_i2c_mcuxpresso/
  86. pw_i2c_rp2040/
  87. pw_ide/
  88. pw_interrupt/
  89. pw_interrupt_cortex_m/
  90. pw_interrupt_xtensa/
  91. pw_interrupt_zephyr/
  92. pw_intrusive_ptr/
  93. pw_json/
  94. pw_kvs/
  95. pw_libc/
  96. pw_libcxx/
  97. pw_log/
  98. pw_log_android/
  99. pw_log_basic/
  100. pw_log_fuchsia/
  101. pw_log_null/
  102. pw_log_rpc/
  103. pw_log_string/
  104. pw_log_tokenized/
  105. pw_log_zephyr/
  106. pw_malloc/
  107. pw_malloc_freelist/
  108. pw_malloc_freertos/
  109. pw_metric/
  110. pw_minimal_cpp_stdlib/
  111. pw_module/
  112. pw_multibuf/
  113. pw_multisink/
  114. pw_numeric/
  115. pw_package/
  116. pw_perf_test/
  117. pw_persistent_ram/
  118. pw_polyfill/
  119. pw_preprocessor/
  120. pw_presubmit/
  121. pw_protobuf/
  122. pw_protobuf_compiler/
  123. pw_random/
  124. pw_random_fuchsia/
  125. pw_result/
  126. pw_ring_buffer/
  127. pw_router/
  128. pw_rpc/
  129. pw_rpc_transport/
  130. pw_rust/
  131. pw_sensor/
  132. pw_snapshot/
  133. pw_software_update/
  134. pw_span/
  135. pw_spi/
  136. pw_spi_linux/
  137. pw_spi_mcuxpresso/
  138. pw_spi_rp2040/
  139. pw_status/
  140. pw_stm32cube_build/
  141. pw_stream/
  142. pw_stream_shmem_mcuxpresso/
  143. pw_stream_uart_linux/
  144. pw_stream_uart_mcuxpresso/
  145. pw_string/
  146. pw_symbolizer/
  147. pw_sync/
  148. pw_sync_baremetal/
  149. pw_sync_embos/
  150. pw_sync_freertos/
  151. pw_sync_stl/
  152. pw_sync_threadx/
  153. pw_sync_zephyr/
  154. pw_sys_io/
  155. pw_sys_io_ambiq_sdk/
  156. pw_sys_io_arduino/
  157. pw_sys_io_baremetal_lm3s6965evb/
  158. pw_sys_io_baremetal_stm32f429/
  159. pw_sys_io_emcraft_sf2/
  160. pw_sys_io_mcuxpresso/
  161. pw_sys_io_rp2040/
  162. pw_sys_io_stdio/
  163. pw_sys_io_stm32cube/
  164. pw_sys_io_zephyr/
  165. pw_system/
  166. pw_target_runner/
  167. pw_thread/
  168. pw_thread_embos/
  169. pw_thread_freertos/
  170. pw_thread_stl/
  171. pw_thread_threadx/
  172. pw_thread_zephyr/
  173. pw_tls_client/
  174. pw_tls_client_boringssl/
  175. pw_tls_client_mbedtls/
  176. pw_tokenizer/
  177. pw_toolchain/
  178. pw_toolchain_bazel/
  179. pw_trace/
  180. pw_trace_tokenized/
  181. pw_transfer/
  182. pw_uart/
  183. pw_uart_mcuxpresso/
  184. pw_unit_test/
  185. pw_unit_test_zephyr/
  186. pw_varint/
  187. pw_watch/
  188. pw_web/
  189. pw_work_queue/
  190. seed/
  191. targets/
  192. third_party/
  193. ts/
  194. zephyr/
  195. .bazelignore
  196. .bazelrc
  197. .bazelversion
  198. .black.toml
  199. .clang-format
  200. .clang-tidy
  201. .eslintrc.cjs
  202. .git-blame-ignore-revs
  203. .gitattributes
  204. .gitignore
  205. .gn
  206. .mypy.ini
  207. .prettierignore
  208. .prettierrc.cjs
  209. .pw_ide.yaml
  210. .pylintrc
  211. .ruff.toml
  212. activate.bat
  213. Android.bp
  214. AUTHORS
  215. bootstrap.bat
  216. bootstrap.fish
  217. bootstrap.sh
  218. BUILD.bazel
  219. BUILD.gn
  220. BUILDCONFIG.gn
  221. CMakeLists.txt
  222. go.mod
  223. go.sum
  224. jest.config.ts
  225. Kconfig.zephyr
  226. LICENSE
  227. MODULE.bazel
  228. MODULE.bazel.lock
  229. modules.gni
  230. OWNERS
  231. package-lock.json
  232. package.json
  233. pigweed.json
  234. PIGWEED_MODULES
  235. README.md
  236. rollup-protos.config.js
  237. rollup.config.js
  238. tsconfig.json
  239. WORKSPACE
  240. WORKSPACE_OWNERS
README.md

Pigweed

Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.

For more information please see our website: https://pigweed.dev/.

Links