Operating System
Macros | Functions
fsutilities.h File Reference
#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)
 

Macro Definition Documentation

◆ filesize2sectors

#define filesize2sectors (   X)    ((X+511)/512)

Definition at line 15 of file fsutilities.h.

◆ lgsector2head

#define lgsector2head (   X)    (((X-1)/18)%2)

logic sector to head

Definition at line 5 of file fsutilities.h.

◆ lgsector2sector

#define lgsector2sector (   X)    (((X-1)%18)+1)

logic sector to sector

Definition at line 4 of file fsutilities.h.

◆ lgsector2track

#define lgsector2track (   X)    ((X-1)/36)

logic sector 2 track

Definition at line 6 of file fsutilities.h.

Function Documentation

◆ __fs_strcmp()

static int16_t __fs_strcmp ( const char *  s1,
const char *  s2 
)
inlinestatic

strcmp only for file system

Definition at line 20 of file fsutilities.h.

◆ loadLogicSector()

static void loadLogicSector ( uint16_t  lgsector,
uint16_t  addr,
uint16_t  num 
)
inlinestatic

Definition at line 8 of file fsutilities.h.

◆ loadSector()

void loadSector ( uint16_t  track,
uint16_t  head,
uint16_t  sector,
uint16_t  addr,
uint16_t  num 
)