Difference: MicroSdBlocks (23 vs. 24)

Revision 242020-08-09 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
%DASHBOARD{ section="banner"
Line: 254 to 254
  The FIL data structure can be created as follows:

Changed:
<
<
create fil #fil allot
>
>
create fil /fil allot
 

See also f_open.

Line: 259 to 259
  See also f_open.
Added:
>
>
 

Data Structures

FATFS

Changed:
<
<
FATFS
>
>
Only used in FS_init(). We have only one drive. For details see FATFS
 

Changed:
<
<
FATFS { 1fs_type 1drv 1n_fats 1wflag 1fsi_flag 2id 2n_rootdir 2csize 2ssize 4lfnbuf 4dirbuf 4sobj 4last_clst 4free_clst 4cdir 4cdc_scl 4cdc_size 4cdc_ofs 4n_fatent 4fsize 4volbase 4fatbase 4dirbase 4database 4winsect 512win }
>
>
/FATFS ( -- u ) Gets the FATFS structure size
 
Added:
>
>
 

FIL

Changed:
<
<
FIL
>
>
For details see FIL.
 
Changed:
<
<
_FDID { 4fs 2id 1attr 1stat 4sclust 4objsize 4n_cont 4n_frag 4c_scl 4c_size 4c_ofs 4lockid } 40
>
>
/FIL              ( -- u ) Gets the FIL structure size

 
Changed:
<
<
FIL { 40obj 1flag 1err 4fptr 4clust 4sect 4dir_sect 4dir_ptr 4cltbl 512buf } 582
>
>
FA_READ ( -- u ) Gets the Mode Flag FA_READ FA_WRITE ( -- u ) Gets the Mode Flag FA_WRITE FA_OPEN_EXISTING ( -- u ) Gets the Mode Flag FA_OPEN_EXISTING FA_CREATE_NEW ( -- u ) Gets the Mode Flag FA_CREATE_NEW FA_CREATE_ALWAYS ( -- u ) Gets the Mode Flag FA_CREATE_ALWAYS A_OPEN_ALWAYS ( -- u ) Gets the Mode Flag FA_OPEN_ALWAYS FA_OPEN_APPEND ( -- u ) Gets the Mode Flag FA_OPEN_APPEND

POSIX FatFs
"r" FA_READ
"r+" FA_READ FA_WRITE or
"w" FA_CREATE_ALWAYS FA_WRITE or
"w+" FA_CREATE_ALWAYS FA_WRITE or FA_READ or
"a" FA_OPEN_APPEND FA_WRITE or
"a+" FA_OPEN_APPEND FA_WRITE or FA_READ or
"wx" FA_CREATE_NEW FA_WRITE or
"w+x" FA_CREATE_NEW or FA_WRITE FA_READ or
 

DIR

Changed:
<
<
DIR DIR { }
>
>
For details see DIR.

/DIR         ( -- u ) Gets the DIR structure size
 

FILINFO

Changed:
<
<
FILINFO FILINFO { }
>
>
For details see FILINFO.

/FILINFO     ( -- u ) Gets the FILINFO structure size

 
Added:
>
>
fsize+ ( -- u ) Gets the FILINFO structure fsize offset fdate+ ( -- u ) Gets the FILINFO structure fdate offset ftime+ ( -- u ) Gets the FILINFO structure ftime offset fattrib+ ( -- u ) Gets the FILINFO structure fattrib offset fname+ ( -- u ) Gets the FILINFO structure fname offset altname+ ( -- u ) Gets the FILINFO structure altname offset
 
Added:
>
>
 

File Access Functions/Words

Line: 339 to 372
 https://www.complang.tuwien.ac.at/forth/gforth/Docs-html/Interpreter-Directives.html Interpreter Directives [IF] [ELSE] [THEN],
Changed:
<
<
  • ls [-a] [-l] [-1] [FILE]
>
>
  • ls [-a] [-l] [-1] [FILE]
    
    
  -a show hidden files -l use a long listing format -1 list one file per line
Changed:
<
<
ls ( "line<EOL>" -- )
  • pwd
  • cd
>
>
ls ( "line<EOL>" -- ) list directory contents
  • pwd
    pwd ( -- )  print name of current/working directory
    
  • cd [DIR]
    
    cd ( "line<EOL>" -- )  change the working directory
    
  • cat [-n] [> NEWFILE] [FILES]...
       -n line numbers
       > redirect output to NEWFILE
    
    cat ( "line<EOL>" -- )  concatenate files and print on the console
    
 
  • cp
  • mv
  • rm
  • chmod
Deleted:
<
<
  • cat FILES
 
  • less
  • mkdir
  • mount
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback