Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/rt-thread
/ block_to_hts
Function
block_to_hts
bsp/x86/drivers/floppy.c:192–197 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
190
191
192
void block_to_hts(u32 block, u32 *head, u32 *track, u32 *sector )
193
{
194
*head = ( block % ( 18 * 2 ) ) /18;
195
*track = block / ( 18 * 2 );
196
*sector = block % 18 + 1;
197
}
198
199
200
void floppy_setupDMA(void)
Callers
1
floppy_read_cmd
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected