no-OS
Classes | Enumerations | Variables
pico_uart.h File Reference

Header file of UART driver for pico. More...

#include "no_os_uart.h"
#include "no_os_irq.h"
#include "hardware/uart.h"
Include dependency graph for pico_uart.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pico_uart_desc
 pico platform specific UART descriptor More...
 
struct  pico_uart_init_param
 Additional UART config parameters. More...
 

Enumerations

enum  uart_tx_gp {
  UART0_TX_GP0 = 0,
  UART0_TX_GP12 = 12,
  UART0_TX_GP16 = 16,
  UART1_TX_GP4 = 4,
  UART1_TX_GP8 = 8
}
 Available GP config for UART TX. More...
 
enum  uart_rx_gp {
  UART0_RX_GP1 = 1,
  UART0_RX_GP13 = 13,
  UART0_RX_GP17 = 17,
  UART1_RX_GP5 = 5,
  UART1_RX_GP9 = 9
}
 Available GP config for UART RX. More...
 

Variables

const struct no_os_uart_platform_ops pico_uart_ops
 pico specific UART platform ops structure More...
 

Detailed Description

Header file of UART driver for pico.

Author
RBolboac (ramon.nosp@m.a.bo.nosp@m.lboac.nosp@m.a@an.nosp@m.alog..nosp@m.com)

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

Enumeration Type Documentation

◆ uart_rx_gp

enum uart_rx_gp

Available GP config for UART RX.

Enumerator
UART0_RX_GP1 
UART0_RX_GP13 
UART0_RX_GP17 
UART1_RX_GP5 
UART1_RX_GP9 

◆ uart_tx_gp

enum uart_tx_gp

Available GP config for UART TX.

Enumerator
UART0_TX_GP0 
UART0_TX_GP12 
UART0_TX_GP16 
UART1_TX_GP4 
UART1_TX_GP8 

Variable Documentation

◆ pico_uart_ops

const struct no_os_uart_platform_ops pico_uart_ops

pico specific UART platform ops structure

pico specific UART platform ops structure