3737#include <util.h>
3838
3939#if defined(BOOTLOADER_DEVDEVICE ) || PLATFORM_BITBOX02PLUS == 1
40- #include <memory/memory_spi.h>
41- #include <qtouch/qtouch.h>
40+ #include <memory/memory_spi.h>
41+ #include <qtouch/qtouch.h>
4242#endif
4343
4444#if PLATFORM_BITBOX02PLUS == 1
45- #include <communication_mode.h>
46- #include <da14531/da14531.h>
47- #include <da14531/da14531_protocol.h>
48- #include <uart.h>
49- #include <utils_ringbuffer.h>
45+ #include <communication_mode.h>
46+ #include <da14531/da14531.h>
47+ #include <da14531/da14531_protocol.h>
48+ #include <uart.h>
49+ #include <utils_ringbuffer.h>
5050#endif
5151
5252#include <assert.h>
@@ -108,7 +108,7 @@ COMPILER_PACK_RESET()
108108#define FIRMWARE_MAX_NUM_CHUNKS \
109109 (FLASH_APP_LEN / FIRMWARE_CHUNK_LEN) // app len must be a multiple of chunk len
110110#if (FIRMWARE_MAX_NUM_CHUNKS > UINT8_MAX )
111- #error "incompatible variable type"
111+ #error "incompatible variable type"
112112#endif
113113
114114// Be sure to not overflow boot data area
@@ -120,7 +120,7 @@ static_assert(sizeof(((boot_data_t*)0)->fields) <= FLASH_BOOTDATA_LEN, "boot_dat
120120 BOOT_SIG_LEN * BOOT_NUM_ROOT_SIGNING_KEYS + 4 /* firmware data version */ + \
121121 BOOT_SIG_LEN * BOOT_NUM_FIRMWARE_SIGNING_KEYS > \
122122 FIRMWARE_CHUNK_LEN )
123- #error "incompatible bootloader data macro"
123+ #error "incompatible bootloader data macro"
124124#endif
125125
126126static bool _loading_ready = false;
@@ -142,7 +142,7 @@ static const uint8_t _empty_bare_flash_hash[SHA256_DIGEST_LENGTH] = {
142142 0x00 , 0xb8 , 0xaf , 0x3a , 0x79 , 0xf8 , 0xc6 , 0x56 , 0x4a , 0x9b , 0x02 , 0xe1 , 0x8a , 0xb8 , 0x21 , 0xae ,
143143};
144144#if FLASH_APP_LEN != 884736
145- #error "FLASH_APP_LEN changed; recompute _empty_bare_flash_hash"
145+ #error "FLASH_APP_LEN changed; recompute _empty_bare_flash_hash"
146146#endif
147147
148148#if PLATFORM_BITBOX02PLUS == 1
@@ -272,7 +272,7 @@ static void _binary_exec(void)
272272 int i ;
273273
274274#if (FLASH_APP_START & 0x007F )
275- #error "app start address not aligned"
275+ #error "app start address not aligned"
276276#else
277277 void * app_start_addr = (void * )FLASH_APP_START ;
278278#endif
@@ -1023,15 +1023,15 @@ static bool _devdevice_enter(secbool_u32 firmware_verified)
10231023 } else {
10241024 UG_PutString (0 , SCREEN_HEIGHT - 9 , " No firmware found" , false);
10251025 }
1026- #if PLATFORM_BITBOX02PLUS == 1
1026+ #if PLATFORM_BITBOX02PLUS == 1
10271027 struct da14531_firmware_version version ;
10281028 bool res = memory_spi_get_active_ble_firmware_version (& version );
10291029 if (res ) {
10301030 char buf [50 ];
10311031 snprintf (buf , sizeof (buf ), "ble: %d (%s)" , version .version , util_dbg_hex (version .hash , 4 ));
10321032 UG_PutString (0 , SCREEN_HEIGHT - 18 , buf , false);
10331033 }
1034- #endif
1034+ #endif
10351035 uint16_t ypos = SCREEN_HEIGHT / 2 - 4 ;
10361036 uint16_t xpos = SCREEN_WIDTH - 10 ;
10371037 if (firmware_verified != sectrue_u32 ) {
0 commit comments