no-OS
Loading...
Searching...
No Matches
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 "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.
 

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.

SPDX-License-Identifier: BSD-3-Clause

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.