no-OS
Loading...
Searching...
No Matches
maxim_uart_stdio.c File Reference

Implementation file of MAX32660 UART driver stdout/stdin redirection. More...

#include <errno.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "maxim_uart_stdio.h"
#include "mxc_sys.h"
#include "no_os_uart.h"
#include "uart.h"
#include <unistd.h>
#include <sys/stat.h>
Include dependency graph for maxim_uart_stdio.c:

Macros

#define STDIN_FILENO   0 /**> Definition of stdin */
 
#define STDOUT_FILENO   1 /**> Definition of stdout */
 
#define STDERR_FILENO   2 /**> Definition of stderr */
 

Functions

void no_os_uart_stdio (struct no_os_uart_desc *desc)
 
int _close (int file)
 
int _isatty (int file)
 
int _lseek (int file, off_t offset, int whence)
 
int _fstat (int file, struct stat *st)
 
int _read (int file, char *ptr, int len)
 
int _write (int file, char *ptr, int len)
 

Detailed Description

Implementation file of MAX32660 UART driver stdout/stdin redirection.

Author
Ciprian Regus (cipri.nosp@m.an.r.nosp@m.egus@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2022(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ STDERR_FILENO

#define STDERR_FILENO   2 /**> Definition of stderr */

◆ STDIN_FILENO

#define STDIN_FILENO   0 /**> Definition of stdin */

◆ STDOUT_FILENO

#define STDOUT_FILENO   1 /**> Definition of stdout */

Function Documentation

◆ _close()

int _close ( int file)

◆ _fstat()

int _fstat ( int file,
struct stat * st )

◆ _isatty()

int _isatty ( int file)

◆ _lseek()

int _lseek ( int file,
off_t offset,
int whence )

◆ _read()

int _read ( int file,
char * ptr,
int len )

◆ _write()

int _write ( int file,
char * ptr,
int len )

◆ no_os_uart_stdio()

void no_os_uart_stdio ( struct no_os_uart_desc * desc)