Giter Club home page Giter Club logo

Comments (6)

pat-rogers avatar pat-rogers commented on June 23, 2024

Agreed, on both points.

The component driver is very low-level, and limited in scope. The LTDC interface does more, and will eventually be revised to be in terms of the component driver.

We considered "ancillary" instead of "utils" (among others) but have yet to find a good name. It may be that we need to break up the contents to find a good name.

Thanks for the comments!

from ada_drivers_library.

pat-rogers avatar pat-rogers commented on June 23, 2024

Probably I should move the STM32F4.* packages from utils/ to drivers/ and thereby simplify things a little. Originally the drivers/ dir was strictly for actual devices described by the RM, but that may be more narrow a definition than necessary.

from ada_drivers_library.

aethaniel avatar aethaniel commented on June 23, 2024

hi, from what I see and understood about LTDC, the driver should be indeed in drivers.
But not in this current form as it seems to be a mix between low-level driver and middleware.
I would see the peripheral driver layer in 'drivers' and the layer using SPI and GPIO in 'utils' folder.

by the way, 'utils' isn't so badly named and is often used to place utility services which act in the inter-layers, ie not ll driver, not middleware but useful to app developer. Middleware are usually services like an usb stack, a filesystem management, a graphic layer etc...

from ada_drivers_library.

pat-rogers avatar pat-rogers commented on June 23, 2024

Yes, the LTDC is a bit of a mixture at present. It was written prior to the ILI9341 component driver so we envision it being revised accordingly, at some point, and made more independent of the board.

I agree that utils is a good name as long as that's what is in there.

from ada_drivers_library.

lambourg avatar lambourg commented on June 23, 2024

The LTDC driver (and more generally framebuffer display) have been greatly refactored in the 'svd' branch. In particular:

  • stm32-ltdc.ads now only configures the LTDC peripheral
  • stm32-dma2d also only configures the peripheral
  • a new HAL.Framebuffer interface has been introduce to handle framebuffer displays
  • this interface is partially implemented in boards/common_stm32/ltdc/framebuffer_ltdc.ads.
  • a new HAL.Bitmap type has also been introduced to perform operations on bitmap surfaces,
  • a specialized version bitmap_dma2d allows hardware acceleration.
  • all those interfaces are fully implemented at the board levels.

from ada_drivers_library.

lambourg avatar lambourg commented on June 23, 2024

This is now integrated into the master branch. So I'm closing this issue, feel free to open a new one if you see ways to improve the current architecture (even better if you can contribute changes: we're very open to your participation to this project)!

Best regards,

  • Jerome

from ada_drivers_library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.