mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-23 22:30:37 +02: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:
parent
842766b9ed
commit
661420933e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user