1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 11:28:14 +00:00

Merge pull request #42 from romanz/debug_exclude

firmware: exclude debug functionality from release build
This commit is contained in:
Pavol Rusnak 2015-08-24 15:34:11 +02:00
commit b4b5426e33
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