Download FreeRTOS
 

Quality RTOS & Embedded Software

LIBRARIES
WHAT'S NEW
Simplifying Authenticated Cloud Connectivity for Any Device.
Designing an energy efficient and cloud-connected IoT solution with CoAP.
Introducing FreeRTOS Kernel version 11.0.0:
FreeRTOS Roadmap and Code Contribution process.
OPC-UA over TSN with FreeRTOS.

f_chdir()

[FreeRTOS Embedded File System API]

header_file.h
unsigned char f_chdir( const char *pcDirectoryName );
		

Change the working directory in the embedded FAT file system.

Parameters:

pcDirectoryName   The name of the target directory.

Returns:
F_NO_ERROR   The current directory was changed to pcDirectoryName.

Any other value   The current directory was not changed. The return value holds the error code.

See also

f_mkdir(), f_rmdir(), f_getcwd().

Example usage:


void vExampleFunction( void )
{
/* Create a sub directory called subfolder. */
f_mkdir( "subfolder" );

/* Change the working directory to the newly created directory. */
f_chdir( "subfolder" );
}

Example use of the f_chdir() API function
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.