Jump to content

STM32F4 DMA2D driver and screen rotation


artem_dmitriev

Recommended Posts

First of all, please note that you only want to use the STM32F429iDiscovery driver if you actually are using the STM32F429i-Discovery board. Otherwise please use the generic STM32LTDC driver (make sure you check out the Alternate_Raw32_Scheduler branch of the repository).

The STM32F429iDiscovery driver currently doesn't support screen rotations with DMA2D. However, it is easy to add and we already started doing this for the generic STM32LTDC driver. You can see the switch statement in both the gdisp_lld_fill_area() and gdisp_lld_blit_area() functions: https://bitbucket.org/Tectu/ugfx/src/83 ... LTDC.c-401

It is just a matter of changing the values for the OMAR, OOR and NLR registers of the DMA2D peripheral.

If you add this for the STM32F429iDiscovery driver we would be thankful if you could contribute the code back so we can add it to the repository.

~ Tectu

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...