Root/
| Source at commit a11670bb7bb6e506db72463fea6738100b22c9a7 created 11 years 17 days ago. By Werner Almesberger, tornado/fw/sim/alg.c: accept data from standard input; fix "process" | |
|---|---|
| 1 | /* |
| 2 | * fw/mmc.h - MMC card access |
| 3 | * |
| 4 | * Written 2012 by Werner Almesberger |
| 5 | * Copyright 2012 Werner Almesberger |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | */ |
| 12 | |
| 13 | |
| 14 | #ifndef MMC_H |
| 15 | #define MMC_H |
| 16 | |
| 17 | #include <stdbool.h> |
| 18 | #include <stdint.h> |
| 19 | |
| 20 | |
| 21 | #define MMC_BLOCK 512 |
| 22 | |
| 23 | |
| 24 | bool mmc_begin_read(uint32_t addr); |
| 25 | uint8_t mmc_read(void); |
| 26 | bool mmc_end_read(void); |
| 27 | |
| 28 | bool mmc_begin_write(uint32_t addr); |
| 29 | void mmc_write(uint8_t data); |
| 30 | bool mmc_end_write(void); |
| 31 | |
| 32 | void mmc_off(void); |
| 33 | bool mmc_init(void); |
| 34 | |
| 35 | #endif /* !MMC_H */ |
| 36 | |
Branches:
master
tornado-v1
