Skip to content

Commit 5cd2bb3

Browse files
committed
move reboot function to src/system.c
It is not a workflow function, just a regular utility function.
1 parent a463ee6 commit 5cd2bb3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ set(DBB-FIRMWARE-SOURCES
2626
${CMAKE_SOURCE_DIR}/src/hardfault.c
2727
${CMAKE_SOURCE_DIR}/src/util.c
2828
${CMAKE_SOURCE_DIR}/src/sd.c
29+
${CMAKE_SOURCE_DIR}/src/system.c
2930
${CMAKE_SOURCE_DIR}/src/hww.c
3031
${CMAKE_SOURCE_DIR}/src/memory/bitbox02_smarteeprom.c
3132
${CMAKE_SOURCE_DIR}/src/memory/memory.c
@@ -45,7 +46,6 @@ set(DBB-FIRMWARE-SOURCES
4546
${CMAKE_SOURCE_DIR}/src/workflow/confirm_time.c
4647
${CMAKE_SOURCE_DIR}/src/workflow/idle_workflow.c
4748
${CMAKE_SOURCE_DIR}/src/workflow/password.c
48-
${CMAKE_SOURCE_DIR}/src/workflow/reboot.c
4949
${CMAKE_SOURCE_DIR}/src/workflow/restore.c
5050
${CMAKE_SOURCE_DIR}/src/workflow/orientation_screen.c
5151
${CMAKE_SOURCE_DIR}/src/workflow/status.c

src/rust/bitbox02-sys/wrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <screen.h>
3030
#include <sd.h>
3131
#include <securechip/securechip.h>
32+
#include <system.h>
3233
#include <ui/components/confirm.h>
3334
#include <ui/components/confirm_transaction.h>
3435
#include <ui/components/label.h>
@@ -51,7 +52,6 @@
5152
#include <wally_core.h>
5253
#include <wally_crypto.h>
5354
#include <workflow/confirm.h>
54-
#include <workflow/reboot.h>
5555

5656
#if !defined(TESTING)
5757
#include <hal_delay.h>

src/workflow/reboot.c renamed to src/system.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "reboot.h"
15+
#include "system.h"
1616
#include <memory/memory.h>
1717
#include <screen.h>
1818
#ifndef TESTING

src/workflow/reboot.h renamed to src/system.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef _WORKFLOW_REBOOT_H_
16-
#define _WORKFLOW_REBOOT_H_
15+
#ifndef _SYSTEM_H_
16+
#define _SYSTEM_H_
1717

1818
/**
1919
* Reboots the device.

0 commit comments

Comments
 (0)