Hi William,

> 1) we should enforce that #databits be <= 8 else _error "blah blah".
> It would be safer, and not add any code at run-time.
I tried this, but could not detect negative values. And if
serial_sw_databits is a variable, the error is always triggered. So
the check would prevent run-time change of databits, while the actual
code does not...

> 2) for transmitting, why shift the data right before sending?  I
> wouldn't expect that, myself. I would have already right-aligned the
> data prior to calling the library. And this would result in loss of
> data.  For example, if I wanted to send 7 '1's, I would call
> serial_sw_write(0x7F), never with 0xFE.
True, fixed & tested.

Also had a brief look at serial_sw_read() and serial_sw_read_wait().
The first one is added to the test file, but I don't understand how
the second one works...

Joep

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to