Header file of UART driver for pico.
enum no_os_uart_parity parity
Definition: no_os_uart.h:122
void lf256fifo_remove(struct lf256fifo *fifo)
@ NO_OS_EVT_UART_RX_COMPLETE
Definition: no_os_irq.h:64
void * extra
Definition: no_os_uart.h:127
Structure describing a callback to be registered.
Definition: no_os_irq.h:142
@ UART0_RX_GP1
Definition: pico_uart.h:79
@ NO_OS_UART_STOP_1_BIT
Definition: no_os_uart.h:94
Header file of IRQ interface.
int32_t no_os_irq_register_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *callback_desc)
Register a callback to handle the irq events.
Definition: no_os_irq.c:92
int lf256fifo_init(struct lf256fifo **)
enum no_os_uart_size size
Definition: no_os_uart.h:120
uart_inst_t * uart_instance
Definition: pico_uart.h:54
uart_tx_gp
Available GP config for UART TX.
Definition: pico_uart.h:64
@ UART1_RX_GP9
Definition: pico_uart.h:84
@ UART1_TX_GP8
Definition: pico_uart.h:71
@ NO_OS_UART_CS_5
Definition: no_os_uart.h:60
@ UART0_TX_GP16
Definition: pico_uart.h:68
enum uart_tx_gp uart_tx_pin
Definition: pico_uart.h:92
uint32_t irq_id
Definition: no_os_uart.h:114
uart_rx_gp
Available GP config for UART RX.
Definition: pico_uart.h:77
const struct no_os_irq_platform_ops pico_irq_ops
pico specific IRQ platform ops structure
Definition: pico_irq.c:416
uint8_t device_id
Definition: no_os_uart.h:138
@ UART0_TX_GP12
Definition: pico_uart.h:67
@ UART0_RX_GP17
Definition: pico_uart.h:81
int lf256fifo_read(struct lf256fifo *, uint8_t *)
Stucture holding the UART descriptor.
Definition: no_os_uart.h:134
bool asynchronous_rx
Definition: no_os_uart.h:116
enum uart_rx_gp uart_rx_pin
Definition: pico_uart.h:94
void uart_rx_callback(void *context)
UART RX callback handler.
Definition: pico_uart.c:55
@ UART0_TX_GP0
Definition: pico_uart.h:66
const struct no_os_uart_platform_ops pico_uart_ops
pico specific UART platform ops structure
Definition: pico_uart.c:299
@ UART0_RX_GP13
Definition: pico_uart.h:80
void * extra
Definition: no_os_uart.h:147
int32_t no_os_irq_unregister_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *callback_desc)
Unregisters a generic IRQ handling function.
Definition: no_os_irq.c:112
const struct no_os_irq_platform_ops * platform_ops
Definition: no_os_irq.h:111
struct lf256fifo * rx_fifo
Definition: no_os_uart.h:142
@ UART1_TX_GP4
Definition: pico_uart.h:70
int lf256fifo_write(struct lf256fifo *, uint8_t)
int32_t no_os_irq_ctrl_init(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Initialize the IRQ interrupts.
Definition: no_os_irq.c:45
const struct no_os_uart_platform_ops pico_uart_ops
pico platform specific UART platform ops structure
Definition: pico_uart.c:299
void(* callback)(void *context)
Definition: no_os_irq.h:144
uint32_t baud_rate
Definition: no_os_uart.h:118
enum no_os_uart_stop stop
Definition: no_os_uart.h:124
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:43
@ NO_OS_UART_PAR_EVEN
Definition: no_os_uart.h:85
SPSC lock-free fifo of fixed size (256), specialized for UART.
uint32_t irq_id
Definition: no_os_uart.h:140
@ NO_OS_UART_CS_7
Definition: no_os_uart.h:64
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
@ NO_OS_UART_CS_6
Definition: no_os_uart.h:62
@ UART1_RX_GP5
Definition: pico_uart.h:83
struct no_os_irq_ctrl_desc * nvic
Definition: pico_uart.h:56
#define NULL
Definition: wrapper.h:64
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:110
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
@ NO_OS_UART_PAR_NO
Definition: no_os_uart.h:77
@ NO_OS_UART_IRQ
Definition: no_os_irq.h:86
int32_t no_os_irq_ctrl_remove(struct no_os_irq_ctrl_desc *desc)
Free the resources allocated by no_os_irq_ctrl_init().
Definition: no_os_irq.c:71
Header file for pico irq specifics.
uint8_t device_id
Definition: no_os_uart.h:112
int32_t no_os_irq_enable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Enable specific interrupt.
Definition: no_os_irq.c:181
pico platform specific UART descriptor
Definition: pico_uart.h:52
@ NO_OS_UART_PAR_ODD
Definition: no_os_uart.h:83
Header file of UART interface.
struct no_os_callback_desc rx_callback
Definition: pico_uart.h:58
int32_t no_os_irq_disable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Disable specific interrupt.
Definition: no_os_irq.c:198
Definition: no_os_irq.h:123
@ NO_OS_UART_CS_8
Definition: no_os_uart.h:66
Additional UART config parameters.
Definition: pico_uart.h:90