adds a USB serial port to your design
Dependents: Example_WatchDog_Timer
Diff: USBMSD/USBMSD.h
- Revision:
- 7:f8f057664123
- Parent:
- 1:80ab0d068708
- Child:
- 8:335f2506f422
diff -r d0945750af57 -r f8f057664123 USBMSD/USBMSD.h --- a/USBMSD/USBMSD.h Thu Dec 20 17:05:37 2012 +0000 +++ b/USBMSD/USBMSD.h Mon Jan 21 10:41:28 2013 +0000 @@ -84,7 +84,7 @@ * @param block block number * @returns 0 if successful */ - virtual int disk_read(char * data, int block) = 0; + virtual int disk_read(uint8_t * data, uint64_t block) = 0; /* * write a block on a storage chip @@ -93,7 +93,7 @@ * @param block block number * @returns 0 if successful */ - virtual int disk_write(const char * data, int block) = 0; + virtual int disk_write(const uint8_t * data, uint64_t block) = 0; /* * Disk initilization @@ -105,14 +105,14 @@ * * @returns number of blocks */ - virtual int disk_sectors() = 0; + virtual uint64_t disk_sectors() = 0; /* * Return memory size * * @returns memory size */ - virtual int disk_size() = 0; + virtual uint64_t disk_size() = 0; /* @@ -216,8 +216,8 @@ uint8_t * page; int BlockSize; - int MemorySize; - int BlockCount; + uint64_t MemorySize; + uint64_t BlockCount; void CBWDecode(uint8_t * buf, uint16_t size); void sendCSW (void);