#include "sceptre.h"
#include "device.h"
Go to the source code of this file.
Functions | |
int | _open_r (struct _reent *p_reent, const char *p_filename, int flags, int mode) |
newlib - Implementation for fopen().
Definition in file open_r.c.
int _open_r | ( | struct _reent * | p_reent, | |
const char * | p_filename, | |||
int | flags, | |||
int | mode | |||
) |
This function has to be implemented if you want to use fopen in your programs.
All devices must start with a name and name is bracketed with '/', like this: "/thermo/..." What follows after the second '/' is passed to the device driver.
p_reent | Pointer to a structure that will receive the return value. | |
p_filename | Pointer to the name of the file to open. | |
flags | Flags that will be passed to the device driver that should open the file. | |
mode | Mode that will be passed to the device driver that should open the file. |