no-OS
maxim_stdio.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef MAXIM_STDIO_H_
40 #define MAXIM_STDIO_H_
41 
42 #include <sys/stat.h>
43 #include "no_os_uart.h"
44 
45 void maxim_uart_stdio(struct no_os_uart_desc *);
46 int _isatty(int);
47 int _write(int, char *, int);
48 int _close(int);
49 int _lseek(int, off_t, int);
50 int _read(int, char *, int);
51 int _fstat(int, struct stat *);
52 
53 #endif
_read
int _read(int, char *, int)
Definition: maxim_stdio.c:106
maxim_stdio.h
Header file for UART driver stdout/stdin redirection.
STDERR_FILENO
#define STDERR_FILENO
Definition: maxim_stdio.c:57
STDIN_FILENO
#define STDIN_FILENO
Definition: maxim_stdio.c:55
maxim_uart_stdio
void maxim_uart_stdio(struct no_os_uart_desc *)
Definition: maxim_stdio.c:61
STDERR_FILENO
#define STDERR_FILENO
Definition: maxim_stdio.c:57
no_os_uart_write
int32_t no_os_uart_write(struct no_os_uart_desc *desc, const uint8_t *data, uint32_t bytes_number)
Write data to UART. Blocking function.
Definition: aducm3029_uart.c:211
no_os_uart_read
int32_t no_os_uart_read(struct no_os_uart_desc *desc, uint8_t *data, uint32_t bytes_number)
Read data from UART. Blocking function.
Definition: aducm3029_uart.c:155
_read
int _read(int file, char *ptr, int len)
Definition: maxim_stdio.c:106
maxim_uart_stdio
void maxim_uart_stdio(struct no_os_uart_desc *desc)
Definition: maxim_stdio.c:61
maxim_stdio.h
Header file for UART driver stdout/stdin redirection.
_isatty
int _isatty(int file)
Definition: maxim_stdio.c:78
maxim_stdio.h
Header file for UART driver stdout/stdin redirection.
_write
int _write(int, char *, int)
Definition: maxim_stdio.c:123
STDERR_FILENO
#define STDERR_FILENO
Definition: maxim_stdio.c:57
STDIN_FILENO
#define STDIN_FILENO
Definition: maxim_stdio.c:55
no_os_uart_desc
Stucture holding the UART descriptor.
Definition: no_os_uart.h:126
STDIN_FILENO
#define STDIN_FILENO
Definition: maxim_stdio.c:55
STDERR_FILENO
#define STDERR_FILENO
Definition: maxim_stdio.c:57
_lseek
int _lseek(int, off_t, int)
Definition: maxim_stdio.c:86
_fstat
int _fstat(int file, struct stat *st)
Definition: maxim_stdio.c:95
_close
int _close(int)
Definition: maxim_stdio.c:70
STDERR_FILENO
#define STDERR_FILENO
Definition: maxim_stdio.c:57
STDOUT_FILENO
#define STDOUT_FILENO
Definition: maxim_stdio.c:56
STDOUT_FILENO
#define STDOUT_FILENO
Definition: maxim_stdio.c:56
maxim_stdio.h
Header file for UART driver stdout/stdin redirection.
STDOUT_FILENO
#define STDOUT_FILENO
Definition: maxim_stdio.c:56
_close
int _close(int file)
Definition: maxim_stdio.c:70
STDIN_FILENO
#define STDIN_FILENO
Definition: maxim_stdio.c:55
_lseek
int _lseek(int file, off_t offset, int whence)
Definition: maxim_stdio.c:86
NULL
#define NULL
Definition: wrapper.h:64
STDOUT_FILENO
#define STDOUT_FILENO
Definition: maxim_stdio.c:56
_fstat
int _fstat(int, struct stat *)
Definition: maxim_stdio.c:95
no_os_uart.h
Header file of UART interface.
STDOUT_FILENO
#define STDOUT_FILENO
Definition: maxim_stdio.c:56
STDIN_FILENO
#define STDIN_FILENO
Definition: maxim_stdio.c:55
errno.h
Error macro definition for ARM Compiler.
maxim_stdio.h
Header file for UART driver stdout/stdin redirection.
_write
int _write(int file, char *ptr, int len)
Definition: maxim_stdio.c:123
_isatty
int _isatty(int)
Definition: maxim_stdio.c:78