1 // Copyright 2024 The Pigweed Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 // https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14
15 #include "pw_system/device_handler.h"
16
17 namespace pw::system::device_handler {
18
RebootSystem()19 void RebootSystem() {}
20
CapturePlatformMetadata(snapshot::pwpb::Metadata::StreamEncoder &)21 void CapturePlatformMetadata(
22 snapshot::pwpb::Metadata::StreamEncoder& /*metadata_encoder*/) {}
23
CaptureCpuState(const pw_cpu_exception_State &,snapshot::pwpb::Snapshot::StreamEncoder &)24 Status CaptureCpuState(
25 const pw_cpu_exception_State& /*cpu_state*/,
26 snapshot::pwpb::Snapshot::StreamEncoder& /*snapshot_encoder*/) {
27 return OkStatus();
28 }
29
30 // Captures the main system thread as part of a snapshot
CaptureMainStackThread(const pw_cpu_exception_State &,thread::proto::pwpb::SnapshotThreadInfo::StreamEncoder &)31 Status CaptureMainStackThread(
32 const pw_cpu_exception_State& /*cpu_state*/,
33 thread::proto::pwpb::SnapshotThreadInfo::StreamEncoder& /*encoder*/) {
34 return OkStatus();
35 }
36
CaptureThreads(uint32_t,thread::proto::pwpb::SnapshotThreadInfo::StreamEncoder &)37 Status CaptureThreads(
38 uint32_t /*running_thread_stack_pointer*/,
39 thread::proto::pwpb::SnapshotThreadInfo::StreamEncoder& /*encoder*/) {
40 return OkStatus();
41 }
42
43 } // namespace pw::system::device_handler
44