Search found 2 matches
- Thu Apr 06, 2017 11:02 pm
- Forum: ChibiOS/HAL
- Topic: Deferring USB control requests reply on application thread?
- Replies: 3
- Views: 2582
Re: Deferring USB control requests reply on application thread?
Yes, using the provided callbacks is what I meant, but I'm assuming they're called in a ISR context, right? So I'm not able to use the synchronous message API, and doing SPI from an interrupt context (concurrently with a thread) sounds not so great 
- Thu Apr 06, 2017 6:40 pm
- Forum: ChibiOS/HAL
- Topic: Deferring USB control requests reply on application thread?
- Replies: 3
- Views: 2582
Deferring USB control requests reply on application thread?
I'm building an USB frontend to some kind of (SPI) chipset and I'm planning to implement some non standard (control) requests through EP0 to expose some chipset registers ; keeping EP1 for bulk data. Currently, from my understanding, the USB requests hook is supposed to call usbSetupTransfer() macro ...