fmckeogh / usb-pd-rs

USB-PD and associated hardware driver libraries in Rust
MIT License
19 stars 4 forks source link

Added initial support for PD VendorDefinedMessages #3

Closed bentwire closed 1 year ago

bentwire commented 1 year ago

Added SoftReset PD command, its ignored at the moment.

Tried to fix panic when system times out....

fmckeogh commented 1 year ago

@bentwire Looks great, thanks! do you mind running rustfmt?

bentwire commented 1 year ago

@fmckeogh Yep sure can.

I updated the VDM stuff a little bit more.

Also, I commented out the change to establish_usb_20, I don't think it really fixes anything...

Will push in a bit.

fmckeogh commented 1 year ago

@bentwire Why the increase in fusb302b event queue capacity to 16? I was actually thinking that turning it into an Option would be sufficient as the new non-callback API only handles 1 event per poll.

bentwire commented 1 year ago

I just forgot to set it back after some testing. I was running poll way too slow...

fmckeogh commented 1 year ago

Cool, I'll switch it to an option:)