Operating System
|
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | lgsector2sector(X) (((X-1)%18)+1) |
logic sector to sector More... | |
#define | lgsector2head(X) (((X-1)/18)%2) |
logic sector to head More... | |
#define | lgsector2track(X) ((X-1)/36) |
logic sector 2 track More... | |
#define | filesize2sectors(X) ((X+511)/512) |
Functions | |
void | loadSector (uint16_t track, uint16_t head, uint16_t sector, uint16_t addr, uint16_t num) |
static void | loadLogicSector (uint16_t lgsector, uint16_t addr, uint16_t num) |
static int16_t | __fs_strcmp (const char *s1, const char *s2) |
#define filesize2sectors | ( | X | ) | ((X+511)/512) |
Definition at line 15 of file fsutilities.h.
#define lgsector2head | ( | X | ) | (((X-1)/18)%2) |
logic sector to head
Definition at line 5 of file fsutilities.h.
#define lgsector2sector | ( | X | ) | (((X-1)%18)+1) |
logic sector to sector
Definition at line 4 of file fsutilities.h.
#define lgsector2track | ( | X | ) | ((X-1)/36) |
logic sector 2 track
Definition at line 6 of file fsutilities.h.
|
inlinestatic |
strcmp only for file system
Definition at line 20 of file fsutilities.h.
|
inlinestatic |
Definition at line 8 of file fsutilities.h.
void loadSector | ( | uint16_t | track, |
uint16_t | head, | ||
uint16_t | sector, | ||
uint16_t | addr, | ||
uint16_t | num | ||
) |