22 lines
684 B
C
Executable File
22 lines
684 B
C
Executable File
#ifndef LINUX_API_H
|
|
#define LINUX_API_H
|
|
#include "SfTypeDefine.h"
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
int fprintf_gpio(FILE *stream, const U32 pinNum);
|
|
int fprintf_dir(FILE *stream, const char *dir);
|
|
int linux_open(const char *pathname, int flags);
|
|
int linux_close(int fd);
|
|
int linux_fclose(FILE *stream);
|
|
size_t linux_fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
|
|
int linux_fcntl(int fd, int cmd, int flag);
|
|
ssize_t linux_write(int fd, const void *buf, size_t count);
|
|
ssize_t linux_read(int fd, void *buf, size_t count);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif // !LINUX_API_H
|