rp: add PWM api

This commit is contained in:
pennae
2023-04-21 00:57:28 +02:00
parent 54fe50c685
commit a4866ad278
7 changed files with 522 additions and 4 deletions

View File

@ -231,7 +231,7 @@ impl<'d, T: Instance> Driver<'d, T> {
let len = (max_packet_size + 63) / 64 * 64;
let addr = self.ep_mem_free;
if addr + len > EP_MEMORY_SIZE as _ {
if addr + len > EP_MEMORY_SIZE as u16 {
warn!("Endpoint memory full");
return Err(EndpointAllocError);
}