Date:2012-12-28 21:09:44 (11 years 3 months ago)
Author:Werner Almesberger
Commit:661420933e49d9f9f082a410602cfe05a8b3081a
Message:libubb/swuart.c: don't open/close UBB

This way, we can set things up before and after using SWUART
Files: libubb/swuart.c (2 diffs)

Change Details

libubb/swuart.c
232232
233233int swuart_open(uint32_t tx, uint32_t rx, int bps)
234234{
235    if (ubb_open(0))
236        return -1;
237
238235    ticks = TCLK/bps-1;
239236    tx_mask = tx;
240237    rx_mask = rx;
...... 
250247
251248void swuart_close(void)
252249{
253    ubb_close(0);
254250}

Archive Download the corresponding diff file

Branches:
master



interactive