I've successfully implemented a USB-UART bridge using Serial-over-USB (SDU1) and Serial (SD1).
Now I want to implement CDC_SET_LINE_CODING. I understand that I can write my own sduRequestsHook to do this. But sduRequestsHook is called from ISR and I cannot call thread level function sdStop(&SD1) and sdStart(&SD1, &newconfig) from inside.
Is there anyway to do this? Or I need to operate registers directly?
Thanks
Baoshi
ChibiOS Serial-over-USB + Serial
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: ChibiOS Serial-over-USB + Serial
Hi,
You could wakeup a thread for that, using an event for example.
Good point anyway, it is a weakness.
Giovanni
You could wakeup a thread for that, using an event for example.
Good point anyway, it is a weakness.
Giovanni
Who is online
Users browsing this forum: No registered users and 19 guests