no-OS
|
Implementation of UART driver for ADuCM302x. More...
#include <stdlib.h>
#include "no_os_uart.h"
#include "aducm3029_uart.h"
#include "aducm3029_irq.h"
#include "no_os_util.h"
#include "no_os_alloc.h"
#include <drivers/uart/adi_uart.h>
Macros | |
#define | NO_OS_CLK_FREQ 26000000u |
#define | NO_OS_BAUDS_NB 10u |
#define | NO_OS_NUM_UART_DEVICES 1 |
Functions | |
void | uart_rx_callback (void *context) |
Variables | |
const struct no_os_baud_desc | baud_rates_26MHz [NO_OS_BAUDS_NB] |
const struct no_os_uart_platform_ops | aducm_uart_ops |
aducm3029 platform specific UART platform ops structure More... | |
Implementation of UART driver for ADuCM302x.
Copyright 2019(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.
#define NO_OS_BAUDS_NB 10u |
#define NO_OS_CLK_FREQ 26000000u |
#define NO_OS_NUM_UART_DEVICES 1 |
In ADuCM302x UART0 is available
void uart_rx_callback | ( | void * | context | ) |
const struct no_os_uart_platform_ops aducm_uart_ops |
aducm3029 platform specific UART platform ops structure
const struct no_os_baud_desc baud_rates_26MHz[NO_OS_BAUDS_NB] |
Stores calculated baud rates and parameters