2017-09-27 10:00:35 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) Pavol Rusnak, SatoshiLabs
|
|
|
|
*
|
|
|
|
* Licensed under TREZOR License
|
|
|
|
* see LICENSE file for details
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "../../trezorhal/flash.h"
|
|
|
|
|
|
|
|
void flash_set_option_bytes(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-10-26 21:51:39 +00:00
|
|
|
secbool flash_unlock(void)
|
2017-09-27 10:00:35 +00:00
|
|
|
{
|
2017-10-26 21:51:39 +00:00
|
|
|
return secfalse;
|
2017-09-27 10:00:35 +00:00
|
|
|
}
|
|
|
|
|
2017-10-26 21:51:39 +00:00
|
|
|
secbool flash_lock(void)
|
2017-09-27 10:00:35 +00:00
|
|
|
{
|
2017-10-26 21:51:39 +00:00
|
|
|
return secfalse;
|
2017-09-27 10:00:35 +00:00
|
|
|
}
|
|
|
|
|
2017-10-26 21:51:39 +00:00
|
|
|
secbool flash_erase_sectors(const uint8_t *sectors, int len, void (*progress)(int pos, int len))
|
2017-09-27 10:00:35 +00:00
|
|
|
{
|
2017-10-26 21:51:39 +00:00
|
|
|
return secfalse;
|
2017-09-27 10:00:35 +00:00
|
|
|
}
|
|
|
|
|
2017-10-26 21:51:39 +00:00
|
|
|
secbool flash_otp_read(uint8_t block, uint8_t offset, uint8_t *data, uint8_t datalen)
|
2017-09-27 10:00:35 +00:00
|
|
|
{
|
2017-10-26 21:51:39 +00:00
|
|
|
return secfalse;
|
2017-09-27 10:00:35 +00:00
|
|
|
}
|
|
|
|
|
2017-10-26 21:51:39 +00:00
|
|
|
secbool flash_otp_write(uint8_t block, uint8_t offset, const uint8_t *data, uint8_t datalen)
|
2017-09-27 10:00:35 +00:00
|
|
|
{
|
2017-10-26 21:51:39 +00:00
|
|
|
return secfalse;
|
2017-09-27 10:00:35 +00:00
|
|
|
}
|
|
|
|
|
2017-10-26 21:51:39 +00:00
|
|
|
secbool flash_otp_lock(uint8_t block)
|
2017-09-27 10:00:35 +00:00
|
|
|
{
|
2017-10-26 21:51:39 +00:00
|
|
|
return secfalse;
|
2017-09-27 10:00:35 +00:00
|
|
|
}
|
|
|
|
|
2017-10-26 21:51:39 +00:00
|
|
|
secbool flash_otp_is_locked(uint8_t block)
|
2017-09-27 10:00:35 +00:00
|
|
|
{
|
2017-10-26 21:51:39 +00:00
|
|
|
return secfalse;
|
2017-09-27 10:00:35 +00:00
|
|
|
}
|