Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ramdisk.h « usb_device « hw « pastilda « emb - github.com/thirdpin/pastilda.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 852dc9207dad6edb08c99ba9628046ff91658b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef RAMDISK_H
#define RAMDISK_H

#include <stdint.h>
#include <libopencm3/cm3/common.h>

BEGIN_DECLS
extern int ramdisk_init(void);
extern int ramdisk_read(uint32_t lba, uint8_t *copy_to);
extern int ramdisk_write(uint32_t lba, const uint8_t *copy_from);
extern int ramdisk_blocks(void);
END_DECLS

#endif