1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-26 16:18:22 +00:00

firmware: exclude debug functionality from release build

This commit is contained in:
Roman Zeyde 2015-08-24 15:42:11 +03:00
parent e9e51b1377
commit 755b0388f0
3 changed files with 12 additions and 0 deletions

View File

@ -73,7 +73,11 @@ void pinmatrix_done(char *pin)
memset(pinmatrix_perm, 'X', sizeof(pinmatrix_perm));
}
#if DEBUG_LINK
const char *pinmatrix_get(void)
{
return pinmatrix_perm;
}
#endif

View File

@ -169,6 +169,8 @@ void recovery_abort(void)
}
}
#if DEBUG_LINK
const char *recovery_get_fake_word(void)
{
return fake_word;
@ -178,3 +180,5 @@ uint32_t recovery_get_word_pos(void)
{
return word_pos;
}
#endif

View File

@ -149,6 +149,8 @@ void reset_entropy(const uint8_t *ext_entropy, uint32_t len)
layoutHome();
}
#if DEBUG_LINK
uint32_t reset_get_int_entropy(uint8_t *entropy) {
memcpy(entropy, int_entropy, 32);
return 32;
@ -157,3 +159,5 @@ uint32_t reset_get_int_entropy(uint8_t *entropy) {
const char *reset_get_word(void) {
return current_word;
}
#endif