diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-07-15 22:08:08 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-15 22:08:08 +0000 |
| commit | f525386fca8299791fa81539130576059654d778 (patch) | |
| tree | 6c995bb777b140ce6c6a6b175d9ca659bb5430ab /embassy-usb-driver | |
| parent | 281a05a99de4df6088ff3333f04428b6198caf4b (diff) | |
| parent | 93e2fdf51267f112adf0c14ccb7b46eb51edd48c (diff) | |
Merge pull request #4397 from korbin/allocate-numbered-endpoints
Make USB endpoint allocator methods accept an optional `EndpointAddress`
Diffstat (limited to 'embassy-usb-driver')
| -rw-r--r-- | embassy-usb-driver/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-usb-driver/src/lib.rs b/embassy-usb-driver/src/lib.rs index d204e4d85..99616f1ec 100644 --- a/embassy-usb-driver/src/lib.rs +++ b/embassy-usb-driver/src/lib.rs | |||
| @@ -136,6 +136,7 @@ pub trait Driver<'a> { | |||
| 136 | fn alloc_endpoint_out( | 136 | fn alloc_endpoint_out( |
| 137 | &mut self, | 137 | &mut self, |
| 138 | ep_type: EndpointType, | 138 | ep_type: EndpointType, |
| 139 | ep_addr: Option<EndpointAddress>, | ||
| 139 | max_packet_size: u16, | 140 | max_packet_size: u16, |
| 140 | interval_ms: u8, | 141 | interval_ms: u8, |
| 141 | ) -> Result<Self::EndpointOut, EndpointAllocError>; | 142 | ) -> Result<Self::EndpointOut, EndpointAllocError>; |
| @@ -153,6 +154,7 @@ pub trait Driver<'a> { | |||
| 153 | fn alloc_endpoint_in( | 154 | fn alloc_endpoint_in( |
| 154 | &mut self, | 155 | &mut self, |
| 155 | ep_type: EndpointType, | 156 | ep_type: EndpointType, |
| 157 | ep_addr: Option<EndpointAddress>, | ||
| 156 | max_packet_size: u16, | 158 | max_packet_size: u16, |
| 157 | interval_ms: u8, | 159 | interval_ms: u8, |
| 158 | ) -> Result<Self::EndpointIn, EndpointAllocError>; | 160 | ) -> Result<Self::EndpointIn, EndpointAllocError>; |
