1 #ifndef __FS_UTILITIES_H_ 2 #define __FS_UTILITIES_H_ 4 #define lgsector2sector(X) (((X-1)%18)+1) 5 #define lgsector2head(X) (((X-1)/18)%2) 6 #define lgsector2track(X) ((X-1)/36) 7 void loadSector(uint16_t track, uint16_t head, uint16_t sector, uint16_t addr, uint16_t num); 8 static inline void loadLogicSector(uint16_t lgsector, uint16_t addr, uint16_t num) {
15 #define filesize2sectors(X) ((X+511)/512) 20 static inline int16_t
__fs_strcmp(
const char* s1,
const char* s2) {
23 while (*lhs && *rhs) {
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 lgsector2sector(X)
logic sector to sector
#define lgsector2track(X)
logic sector 2 track
#define lgsector2head(X)
logic sector to head