no-OS
stm32_uart_stdio.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef _STM32_UART_STDIO_H_
40 #define _STM32_UART_STDIO_H_
41 
42 #include <sys/stat.h>
43 #include "no_os_uart.h"
44 #include "stm32_uart.h"
45 
46 void stm32_uart_stdio(struct no_os_uart_desc *desc);
47 int _isatty(int fd);
48 int _write(int fd, char* ptr, int len);
49 int _close(int fd);
50 int _lseek(int fd, int ptr, int dir);
51 int _read(int fd, char* ptr, int len);
52 int _fstat(int fd, struct stat* st);
53 
54 #endif
_write
int _write(int fd, char *ptr, int len)
Definition: maxim_stdio.c:123
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
_fstat
int _fstat(int fd, struct stat *st)
Definition: maxim_stdio.c:95
_close
int _close(int fd)
Definition: stm32_uart_stdio.c:100
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
stm32_uart_stdio
void stm32_uart_stdio(struct no_os_uart_desc *desc)
Definition: stm32_uart_stdio.c:62
_read
int _read(int fd, char *ptr, int len)
Definition: stm32_uart_stdio.c:119
no_os_uart_desc
Stucture holding the UART descriptor.
Definition: no_os_uart.h:126
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:58
_isatty
int _isatty(int fd)
Definition: maxim_stdio.c:78
no_os_uart_desc::extra
void * extra
Definition: no_os_uart.h:136
_write
int _write(int fd, char *ptr, int len)
Definition: stm32_uart_stdio.c:83
STDIN_FILENO
#define STDIN_FILENO
Definition: stm32_uart_stdio.c:56
_fstat
int _fstat(int fd, struct stat *st)
Definition: stm32_uart_stdio.c:136
STDOUT_FILENO
#define STDOUT_FILENO
Definition: stm32_uart_stdio.c:57
NULL
#define NULL
Definition: wrapper.h:64
_isatty
int _isatty(int fd)
Definition: stm32_uart_stdio.c:74
_lseek
int _lseek(int fd, int ptr, int dir)
Definition: stm32_uart_stdio.c:109
_close
int _close(int fd)
Definition: maxim_stdio.c:70
_read
int _read(int fd, char *ptr, int len)
Definition: maxim_stdio.c:106
_lseek
int _lseek(int fd, int ptr, int dir)
Definition: stm32_uart_stdio.c:109
no_os_uart.h
Header file of UART interface.
stm32_uart_stdio
void stm32_uart_stdio(struct no_os_uart_desc *desc)
Definition: stm32_uart_stdio.c:62
stm32_hal.h
errno.h
Error macro definition for ARM Compiler.