sifive / freedom-metal

Bare Metal Compatibility Library for the Freedom Platform
Other
154 stars 47 forks source link

No API for getting a simuart device instance? #348

Open richardxia opened 4 years ago

richardxia commented 4 years ago

I'm a little unsure about whether a simuart is meant to be an implementation of a uart or if it is meant to be a distinct device type.

If a simuart is meant to be an implementation of a uart, then it it seems that the metal_uart_get_device() function does not search through the __metal_simuart_table for instances of simuarts.

If simuart is meant to be its own device type, then there is no metal_simuart_get_device() function that allows you to query for instances of simuarts.

nategraff-sifive commented 4 years ago

This will be fixed with freedom-metal-next.