no-OS
Macros | Functions | Variables
maxim_usb_uart.c File Reference

Source file of USB CDC ACM driver for maxim platform. More...

#include <errno.h>
#include <stdlib.h>
#include <stddef.h>
#include "maxim_irq.h"
#include "maxim_usb_uart.h"
#include "no_os_irq.h"
#include "no_os_util.h"
#include "no_os_delay.h"
#include "no_os_alloc.h"
#include "no_os_lf256fifo.h"
#include "mxc_errors.h"
#include "mcr_regs.h"
#include "mxc_sys.h"
#include "mxc_delay.h"
#include "usb.h"
#include "usb_event.h"
#include "enumerate.h"
#include "cdc_acm.h"
#include "maxim_usb_uart_descriptors.h"
Include dependency graph for maxim_usb_uart.c:

Macros

#define EVENT_ENUM_COMP   MAXUSB_NUM_EVENTS
 
#define EVENT_REMOTE_WAKE   (EVENT_ENUM_COMP + 1)
 

Functions

int usbStartupCallback ()
 
int usbShutdownCallback ()
 
void delay_us (unsigned int usec)
 

Variables

const struct no_os_uart_platform_ops max_usb_uart_ops
 Maxim platform specific UART platform ops structure. More...
 

Detailed Description

Source file of USB CDC ACM driver for maxim platform.

Author
Darius Berghe (dariu.nosp@m.s.be.nosp@m.rghe@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2024(c) Analog Devices, Inc.

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

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 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

◆ EVENT_ENUM_COMP

#define EVENT_ENUM_COMP   MAXUSB_NUM_EVENTS

◆ EVENT_REMOTE_WAKE

#define EVENT_REMOTE_WAKE   (EVENT_ENUM_COMP + 1)

Function Documentation

◆ delay_us()

void delay_us ( unsigned int  usec)

◆ usbShutdownCallback()

int usbShutdownCallback ( )

◆ usbStartupCallback()

int usbStartupCallback ( )

Variable Documentation

◆ max_usb_uart_ops

const struct no_os_uart_platform_ops max_usb_uart_ops
Initial value:
= {
.init = &max_uart_init,
.read = &max_uart_read,
.write = &max_uart_write,
.read_nonblocking = &max_uart_read_nonblocking,
.write_nonblocking = &max_uart_write_nonblocking,
.get_errors = &max_uart_get_errors,
.remove = &max_uart_remove
}

Maxim platform specific UART platform ops structure.

Maxim specific UART platform ops structure.