Skip to main content

FILEINIT

Syntax


FUNCTION FILEINIT(   *SSPnum  * ) as integer

Description


FILEINIT is built into version 8.41 and later.

FILEINIT was added for the case of LPC1768 boards, where the mbed board uses SSP1, but some other boards use SSP0 for file operations.  Normally you do not have to call FILEINIT, but use it in the case where the SSP used is NOT the default.  It returns 0 on no error, but usually can be ignorred.

SSPnum  typically 0 or 1.

We support the FAT16 file system which limits you to 4GB SDcards or partioned cards that are larger.  If you are an OEM interested in FAT32 support, contact us about updating that firmware.\

Example

\

fileinit(0)
' override the default SSP1 assignment

\

Differences from other BASICs

\

  • no equivalent Visual BASIC
  • no equivalent in PBASIC

See also

\