Skip to content

Is the function uart_get_instance part of the official API? #1004

@steverpalmer

Description

@steverpalmer

The "hardware/uart.h" include file contains the function uart_get_instance to map from a uint to a uart_inst_t *. However, it is not listed on the API webpage as part of the API.

For Your Information, the TinyUSB github code does make use of uart_get_instance it's rp2040 bsp, so in some sense it has already "escaped".

I suspect that uart_get_instance is a drop-off from the Web page, but I get twitchy about using features that are not part of the official API. So, is the function uart_get_instance meant to be part of the official API? Should it be listed on the Webpage?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions