Root/
Source at commit 3c343536b11c953359aa1d29c99fe234d7399644 created 11 years 3 months ago. By Werner Almesberger, tornado/fw/mmc.[ch]: read/write address is not in sectors, just call it "addr" | |
---|---|
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