no-OS
Macros | Functions
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.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

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)