Skip to content

Conversation

makarenya
Copy link
Contributor

@makarenya makarenya commented Jan 20, 2019

Changed version of #388/#399 pull requests, without timers and with reduced count on copy memory operations also, it includes PMA buffer distribution bug fix.

I tried to achieve the following goals: remove the dependency on the timer, and reduce the number of memcpy operations.

For example, the STM32F103C8T6 doesn't have so many timers, and using one of them for the CDC, is not so good.

And memcpy operations.
In fact, they occur too often. First, in the USBSerial::write method the data is copied from the caller buffer into the UserTxBuffer, then the CDC_TIM_PeriodElapsedCallback the same data is copied into the StackTxBuffer, this data is transferred to USBD_CDC_SetTxBuffer without copying, and from where they are copied to PMA. 3 copy operations, and I managed two.

Same situation with the receive.

@fpistm fpistm added the enhancement New feature or request label Jan 24, 2019
@fpistm fpistm added this to the 1.5.0 milestone Jan 24, 2019
@fpistm fpistm mentioned this pull request Jan 25, 2019
5 tasks
@fpistm
Copy link
Member

fpistm commented Feb 13, 2019

I close this one as it is included in #419 which is now merged.

@fpistm fpistm closed this Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants