slip: port to be used with netdev#7381
Conversation
|
Not tested yet, but have it on the agenda. |
302a337 to
f312f05
Compare
|
Now tested with |
Done. Ready for review. |
ebf0679 to
4ea68ce
Compare
bergzand
left a comment
There was a problem hiding this comment.
Looks good to me. Only a single remark here.
| cib_t pktfifo_idx; /**< CIB for slipdev_t::pktfifo */ | ||
| uint16_t inbytes; /**< the number of bytes received of | ||
| * a currently incoming packet */ | ||
| uint16_t inesc; /**< device previously received an escape |
There was a problem hiding this comment.
I don't know if this has already been discussed in the past, but is there a reason to declare this as a uint16_t and not as an bool?
There was a problem hiding this comment.
Saves 4 bytes (which are in static memory => always will stay) on 32-bit platforms. And uint8_t doesn't help, because the struct would be aligned to the next 4-byte word anyway.
|
Is there (still) a reason to keep a per project |
The UART may differ from board to board, so I would prefer to keep it in the application for now. Future plans are to adapt slipmux so the UART used for stdio can be used. If that happened we can move it to |
eb3c040 to
654c08d
Compare
|
Rebased and adapted for current master. |
Sounds good to me, no more comments here from me. |
|
With the two last fixes (assert and compilation) it looks good to me, but only by reading I did not test it. |
kYc0o
left a comment
There was a problem hiding this comment.
ACK. Tested and works as expected.
|
Please squash and address Murdock's complaints. |
dd2324c to
e42a69e
Compare
e42a69e to
b74ee88
Compare
The last link-layer, that is still purely GNRC is ported to netdev with this PR.
This PR is part of the network layer remodelling effort:
