From 3a467e756ca96f2e592bbe94ee7e23a3c94df8dd Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 19 Feb 2019 18:28:32 +0100 Subject: [PATCH] embed/trezorhal: move lowlevel.{c,h} from boardloader to trezorhal --- SConscript.boardloader | 2 +- embed/{boardloader => trezorhal}/lowlevel.c | 0 embed/{boardloader => trezorhal}/lowlevel.h | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) rename embed/{boardloader => trezorhal}/lowlevel.c (100%) rename embed/{boardloader => trezorhal}/lowlevel.h (91%) diff --git a/SConscript.boardloader b/SConscript.boardloader index 00eb45d493..07073f032b 100644 --- a/SConscript.boardloader +++ b/SConscript.boardloader @@ -59,7 +59,6 @@ SOURCE_STMHAL = [ SOURCE_BOARDLOADER = [ 'embed/boardloader/startup.s', - 'embed/boardloader/lowlevel.c', 'embed/boardloader/main.c', ] @@ -67,6 +66,7 @@ SOURCE_TREZORHAL = [ 'embed/trezorhal/common.c', 'embed/trezorhal/image.c', 'embed/trezorhal/flash.c', + 'embed/trezorhal/lowlevel.c', 'embed/trezorhal/mini_printf.c', 'embed/trezorhal/sdcard.c', 'embed/trezorhal/stm32.c', diff --git a/embed/boardloader/lowlevel.c b/embed/trezorhal/lowlevel.c similarity index 100% rename from embed/boardloader/lowlevel.c rename to embed/trezorhal/lowlevel.c diff --git a/embed/boardloader/lowlevel.h b/embed/trezorhal/lowlevel.h similarity index 91% rename from embed/boardloader/lowlevel.h rename to embed/trezorhal/lowlevel.h index b24b35eea5..e9665e7d18 100644 --- a/embed/boardloader/lowlevel.h +++ b/embed/trezorhal/lowlevel.h @@ -17,8 +17,8 @@ * along with this program. If not, see . */ -#ifndef BOARDLOADER_LOWLEVEL_H -#define BOARDLOADER_LOWLEVEL_H +#ifndef __TREZORHAL_LOWLEVEL_H__ +#define __TREZORHAL_LOWLEVEL_H__ #include "secbool.h" @@ -31,4 +31,4 @@ secbool flash_configure_option_bytes(void); void periph_init(void); secbool reset_flags_check(void); -#endif // BOARDLOADER_LOWLEVEL_H +#endif // __TREZORHAL_LOWLEVEL_H__