no-OS
stm32_uart_stdio.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef _STM32_UART_STDIO_H_
34 #define _STM32_UART_STDIO_H_
35 
36 #include <sys/stat.h>
37 #include "no_os_uart.h"
38 #include "stm32_uart.h"
39 
40 void no_os_uart_stdio(struct no_os_uart_desc *desc);
41 int _isatty(int fd);
42 int _write(int fd, char* ptr, int len);
43 int _close(int fd);
44 int _lseek(int fd, int ptr, int dir);
45 int _read(int fd, char* ptr, int len);
46 int _fstat(int fd, struct stat* st);
47 
48 #endif
_write
int _write(int fd, char *ptr, int len)
Definition: maxim_uart_stdio.c:117
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 to UART.
Definition: no_os_uart.c:144
_fstat
int _fstat(int fd, struct stat *st)
Definition: maxim_uart_stdio.c:89
no_os_uart_stdio
void no_os_uart_stdio(struct no_os_uart_desc *desc)
Definition: no_os_uart.c:216
_close
int _close(int fd)
Definition: stm32_uart_stdio.c:94
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.
Definition: no_os_uart.c:118
_read
int _read(int fd, char *ptr, int len)
Definition: stm32_uart_stdio.c:113
no_os_uart_desc
Stucture holding the UART descriptor.
Definition: no_os_uart.h:134
stm32_uart.h
Header file of UART driver for STM32.
stm32_uart_stdio.h
Header file of stm32 UART driver stdout/stdin redirection.
STDERR_FILENO
#define STDERR_FILENO
Definition: stm32_uart_stdio.c:52
_isatty
int _isatty(int fd)
Definition: maxim_uart_stdio.c:72
no_os_uart_desc::extra
void * extra
Definition: no_os_uart.h:147
_write
int _write(int fd, char *ptr, int len)
Definition: stm32_uart_stdio.c:77
STDIN_FILENO
#define STDIN_FILENO
Definition: stm32_uart_stdio.c:50
no_os_uart_stdio
void no_os_uart_stdio(struct no_os_uart_desc *desc)
Definition: stm32_uart_stdio.c:56
_fstat
int _fstat(int fd, struct stat *st)
Definition: stm32_uart_stdio.c:130
STDOUT_FILENO
#define STDOUT_FILENO
Definition: stm32_uart_stdio.c:51
NULL
#define NULL
Definition: wrapper.h:64
_isatty
int _isatty(int fd)
Definition: stm32_uart_stdio.c:68
_lseek
int _lseek(int fd, int ptr, int dir)
Definition: stm32_uart_stdio.c:103
_close
int _close(int fd)
Definition: maxim_uart_stdio.c:64
_read
int _read(int fd, char *ptr, int len)
Definition: maxim_uart_stdio.c:100
_lseek
int _lseek(int fd, int ptr, int dir)
Definition: stm32_uart_stdio.c:103
no_os_uart.h
Header file of UART interface.
stm32_hal.h
errno.h
Error macro definition for ARM Compiler.