Download FreeRTOS

Quality RTOS & Embedded Software

FreeRTOS-Plus-TCP now has unified IPv4 and IPv6 functionalities and multi-interface support.
Achieving Unbrickable MCU FOTA for your FreeRTOS-powered Firmware:
FreeRTOS 202012 LTS end of support announced.
FreeRTOS website now available in Simplified Chinese
New FreeRTOS Long Term Support version now available.


[FreeRTOS File System Media Driver API]

typedef int ( *F_READSECTOR )( F_DRIVER * pxDriver, void * pvBuffer, unsigned long ulSector );

The implementation must read a single sector from the physical media.


pxDriver   A pointer to the F_DRIVER structure returned by the call to F_DRIVERINIT() originally used to initialise the drive from which the sector is to be read.

pvBuffer   A pointer to the buffer into which the data read from the sector is to be written.

ulSector   The number of the sector to be read.

0   The sector was read from the physical media.

Any other value   The sector number was out of range.

Example usage:

A worked example is provided in the RAM disk driver available from this web site.

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.