I am totally new to chibios and I have learned MCU programming by myself. So totally newbie.
I am trying to use only HAL and USB over Serial with STM32F407_discovery board. I have checked the USC_CDC example as well but that one has ch.h.
I have managed to send data PC like a hello world example and I can see the board as ttyACMx device with only hal.h.
The problem is I do not have any understanding of the callbacks in the examples. I would highly appreciate if somebody describe when the following callback are called in the example:
- usb_event,
- get_descriptor,
- sduRequestsHook,
- sof_handler
My goal is:
for first step, when a letter received from the PC, a callback will be called, and inside that callback I respond according to the letter.
If what I want to do is totally against USB specifications, let me know.
I highly appreciate any link to any tutorials about the followings:
- USB specification,
- General Chibi/HAL tutorial,
- General osalSys
I am googling a lot