Root/tornado/fw/mmc.h

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
24bool mmc_begin_read(uint32_t addr);
25uint8_t mmc_read(void);
26bool mmc_end_read(void);
27
28bool mmc_begin_write(uint32_t addr);
29void mmc_write(uint8_t data);
30bool mmc_end_write(void);
31
32void mmc_off(void);
33bool mmc_init(void);
34
35#endif /* !MMC_H */
36

Archive Download this file

Branches:
master
tornado-v1



interactive