no-OS
Classes | Variables
linux_uart.c File Reference

Implementation of Linux platform UART Driver. More...

#include "no_os_error.h"
#include "no_os_alloc.h"
#include "linux_uart.h"
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h>
Include dependency graph for linux_uart.c:

Classes

struct  linux_uart_desc
 Linux platform specific UART descriptor. More...
 

Variables

const struct no_os_uart_platform_ops linux_uart_ops
 Linux platform specific UART platform ops structure. More...
 

Detailed Description

Implementation of Linux platform UART Driver.

Author
Dragos Bogdan (drago.nosp@m.s.bo.nosp@m.gdan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2020(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.

Variable Documentation

◆ linux_uart_ops

const struct no_os_uart_platform_ops linux_uart_ops
Initial value:
= {
.init = &linux_uart_init,
.read = &linux_uart_read,
.write = &linux_uart_write,
.remove = &linux_uart_remove
}

Linux platform specific UART platform ops structure.