1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-07-01 02:25:27 +03:00

libubb/swuart.c: don't open/close UBB

This way, we can set things up before and after using SWUART
This commit is contained in:
Werner Almesberger 2012-12-28 17:09:44 -03:00
parent 842766b9ed
commit 661420933e

View File

@ -232,9 +232,6 @@ void swuart_clear_errors(void)
int swuart_open(uint32_t tx, uint32_t rx, int bps)
{
if (ubb_open(0))
return -1;
ticks = TCLK/bps-1;
tx_mask = tx;
rx_mask = rx;
@ -250,5 +247,4 @@ int swuart_open(uint32_t tx, uint32_t rx, int bps)
void swuart_close(void)
{
ubb_close(0);
}