2020-12-09 04:40 AM
Hello,
What is the difference between dedicated endpoint with normal endpoints in STM32 USB?
Thanks in advnace
2020-12-09 05:33 AM
Hi MMema.1,
Can you explain more what do you mean by "dedicated" and "normal" ?
Best Regards,
Ons.
2020-12-09 11:46 AM
As I saw in the HAL, there are two functions named activateEndpoint and activateDedicatedEndpoint
2020-12-14 08:49 AM
Hi Memarnejad,
Basically the difference in these two functions is to make the interrupt unmasked for either:
You can take a look at Figure 753 of the STM32H742, STM32H743/753 and STM32H750 Value line advanced Arm®-based 32-bit MCUs Reference manual; in the first function there are lines setting the DAINTMSK register and the other function sets the DEACHMDK register. "EACH" text in the register name is a clue. The EACH registers allow selecting of an interrupt towards the "dedicated" interrupt output on the IP.
You can also find an example of interrupt table (for F7) in pages 255 & 256 of the STM32F72xxx and STM32F73xxx advanced Arm®-based 32-bit MCUs reference manual.
Best Regards,
Ons.
2020-12-17 11:06 AM
Hello,
I did not understand what the difference is. We unmask the interrupt for normal EP as well, e.g. when we want to know the tx empty to push the next data