mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2025-04-21 12:27: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:
@@ -232,9 +232,6 @@ void swuart_clear_errors(void)
|
|||||||
|
|
||||||
int swuart_open(uint32_t tx, uint32_t rx, int bps)
|
int swuart_open(uint32_t tx, uint32_t rx, int bps)
|
||||||
{
|
{
|
||||||
if (ubb_open(0))
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
ticks = TCLK/bps-1;
|
ticks = TCLK/bps-1;
|
||||||
tx_mask = tx;
|
tx_mask = tx;
|
||||||
rx_mask = rx;
|
rx_mask = rx;
|
||||||
@@ -250,5 +247,4 @@ int swuart_open(uint32_t tx, uint32_t rx, int bps)
|
|||||||
|
|
||||||
void swuart_close(void)
|
void swuart_close(void)
|
||||||
{
|
{
|
||||||
ubb_close(0);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user