1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-02 12:38:43 +00:00
trezor-firmware/embed/extmod/modtrezorio/unix-sdcard-mock.h
2017-10-20 18:13:17 +02:00

38 lines
624 B
C

/*
* Copyright (c) Pavol Rusnak, SatoshiLabs
*
* Licensed under TREZOR License
* see LICENSE file for details
*/
#include "../../trezorhal/sdcard.h"
#define SD_ERROR 41U
void sdcard_init(void) {
}
bool sdcard_is_present(void) {
return false;
}
bool sdcard_power_on(void) {
return false;
}
bool sdcard_power_off(void) {
return true;
}
uint64_t sdcard_get_capacity_in_bytes(void) {
return 0;
}
bool sdcard_read_blocks(void *dest, uint32_t block_num, uint32_t num_blocks) {
return false;
}
bool sdcard_write_blocks(const void *src, uint32_t block_num, uint32_t num_blocks) {
return false;
}