littlekernel / lk

LK embedded kernel
MIT License
3.12k stars 613 forks source link

[cdcserial] cdcserial_(write|read) hardcode endpoint number. #217

Open konkers opened 6 years ago

konkers commented 6 years ago

Might be best to wrap all the global in cdcserial.c into a struct that can be passed into cdcserial_*(). Store the endpoint addresses there. Has the added benefit of being able to export multiple interfaces.