STMicroelectronics / STM32CubeL0

STM32Cube MCU Full Package for the STM32L0 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
103 stars 57 forks source link

Speed up the USB IRQ handler #17

Closed gorlik closed 2 years ago

gorlik commented 3 years ago

Avoid reading ISTR multiple times which is quite slow on L0 MCUs Change follows the same pattern in PCD_EP_ISR_Handler. Cache the value in wIstr and do repeated checks on the variable.

IMPORTANT INFORMATION

Contributor License Agreement (CLA)

ALABSTM commented 3 years ago

Hi @gorlik,

Thank you for this proposal. It will be logged into our internal database and submitted to our development teams. I will keep you informed.

With regards,

ALABSTM commented 3 years ago

ST Internal Reference: 105754