chipKIT32 / chipKIT-core

Downloadable chipKIT core for use with Arduino 1.6 - 1.8+ IDE, PlatformIO, and UECIDE
http://chipkit.net/
Apache License 2.0
59 stars 53 forks source link

Implement USBSerial::availableForWrite #355

Closed eric-wieser closed 6 years ago

eric-wieser commented 7 years ago

Since this was omitted from #353

EmbeddedMan commented 6 years ago

@majenkotech Does the new USB stack implement this call?

majenkotech commented 6 years ago

Yes, it does.

majenkotech commented 6 years ago
int CDCACM::availableForWrite() {
    return (CDCACM_BUFFER_SIZE + _txTail - _txHead) % CDCACM_BUFFER_SIZE;
}
EmbeddedMan commented 6 years ago

OK, @eric-wieser , we are merging in a whole new USB stack soon which will have this call implemented. Once that happens, this issue can be resolved.

majenkotech commented 6 years ago

This is now complete.

EmbeddedMan commented 6 years ago

I'm closing this issue, since the new core 2.x.x has been released with the new USB stack.