Skip to content

Commit 7ab5052

Browse files
committed
Fix os_MSDInquiry docs.
1 parent bdcf665 commit 7ab5052

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/ce/tice.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,9 +869,10 @@ void os_MSDReset(uint8_t value);
869869
/**
870870
* Performs an MSD inquiry, either through the USB port or with an ARM coprocessor.
871871
* @param lun Logical unit number.
872-
* @param status Returns the status of the command.
872+
* @param inquiry Buffer where the response is stored.
873+
* @return Error code, 0 for success, 5 for failed command, -5 for failed transfer.
873874
*/
874-
void os_MSDInquiry(uint8_t lun, uint8_t *status);
875+
int8_t os_MSDInquiry(uint8_t lun, uint8_t *inquiry);
875876

876877
/**
877878
* Performs an MSD test unit ready command, either through the USB port or with an ARM coprocessor.
@@ -910,6 +911,12 @@ int8_t os_MSDRead(uint8_t lun, uint8_t blockCount, uint32_t lba, uint24_t blockS
910911
*/
911912
int8_t os_MSDWrite(uint8_t lun, uint8_t blockCount, uint32_t lba, uint24_t blockSize, void *buffer);
912913

914+
/**
915+
* Gets some status after a control request.
916+
* @return Some status in the range [0, 3].
917+
*/
918+
int8_t os_USBGetRequestStatus(void);
919+
913920
/**
914921
* Runs the calulator at 6 MHz
915922
*/

src/ce/tice.src

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
.def _os_MSDReadCapacity
111111
.def _os_MSDRead
112112
.def _os_MSDWrite
113+
.def _os_USBGetRequestStatus
113114

114115
.def _asm_MoveDown
115116
.def _asm_MoveUp
@@ -238,6 +239,7 @@ _os_MSDTestUnitReady equ 02228Ch
238239
_os_MSDReadCapacity equ 022290h
239240
_os_MSDRead equ 022294h
240241
_os_MSDWrite equ 022298h
242+
_os_USBGetRequestStatus equ 0222D0h
241243

242244
; ---
243245
; directly callable asm functions

0 commit comments

Comments
 (0)