From 85e1fb5ed7eb92a1813611605e8d15440d56d3bd Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Wed, 19 Apr 2023 02:34:16 +0000 Subject: pw_sync_zephyr: Add support for spin locks Implement the Zephyr backend for Pigweed's spin lock Change-Id: I4d80cc6c57cad864212d39b950fc948f5ec0bc49 Signed-off-by: Yuval Peress Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/138521 Reviewed-by: Keir Mierle --- .../pw_sync_backend/interrupt_spin_lock_inline.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pw_sync_zephyr/public_overrides/pw_sync_backend/interrupt_spin_lock_inline.h (limited to 'pw_sync_zephyr/public_overrides/pw_sync_backend/interrupt_spin_lock_inline.h') diff --git a/pw_sync_zephyr/public_overrides/pw_sync_backend/interrupt_spin_lock_inline.h b/pw_sync_zephyr/public_overrides/pw_sync_backend/interrupt_spin_lock_inline.h new file mode 100644 index 000000000..af2ba03b3 --- /dev/null +++ b/pw_sync_zephyr/public_overrides/pw_sync_backend/interrupt_spin_lock_inline.h @@ -0,0 +1,16 @@ +// Copyright 2023 The Pigweed Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. +#pragma once + +#include "pw_sync_zephyr/interrupt_spin_lock_inline.h" -- cgit v1.2.3