2017-08-14 09:05:19 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) Pavol Rusnak, SatoshiLabs
|
|
|
|
*
|
|
|
|
* Licensed under TREZOR License
|
|
|
|
* see LICENSE file for details
|
|
|
|
*/
|
|
|
|
|
2017-05-23 22:47:20 +00:00
|
|
|
#include "../../trezorhal/sdcard.h"
|
|
|
|
|
2017-10-20 13:25:24 +00:00
|
|
|
void sdcard_init(void) {
|
2017-05-23 22:47:20 +00:00
|
|
|
}
|
|
|
|
|
2017-10-26 21:51:39 +00:00
|
|
|
secbool sdcard_is_present(void) {
|
|
|
|
return secfalse;
|
2017-05-23 22:47:20 +00:00
|
|
|
}
|
|
|
|
|
2017-10-26 21:51:39 +00:00
|
|
|
secbool sdcard_power_on(void) {
|
|
|
|
return secfalse;
|
2017-05-23 22:47:20 +00:00
|
|
|
}
|
|
|
|
|
2017-10-26 21:51:39 +00:00
|
|
|
secbool sdcard_power_off(void) {
|
|
|
|
return sectrue;
|
2017-05-23 22:47:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uint64_t sdcard_get_capacity_in_bytes(void) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-10-29 22:26:44 +00:00
|
|
|
secbool sdcard_read_blocks(uint32_t *dest, uint32_t block_num, uint32_t num_blocks) {
|
2017-10-26 21:51:39 +00:00
|
|
|
return secfalse;
|
2017-05-23 22:47:20 +00:00
|
|
|
}
|
|
|
|
|
2017-10-29 22:26:44 +00:00
|
|
|
secbool sdcard_write_blocks(const uint32_t *src, uint32_t block_num, uint32_t num_blocks) {
|
2017-10-26 21:51:39 +00:00
|
|
|
return secfalse;
|
2017-05-23 22:47:20 +00:00
|
|
|
}
|