Giter Club home page Giter Club logo

Comments (3)

Fabien-Chouteau avatar Fabien-Chouteau commented on July 2, 2024

Hi @morbos,

What I would do is to change the Send_8bit_Mode procedure to use a different hardware mapping than This.Periph.DR.DR. For example:

procedure Send_8bit_Mode
     (This     : in out SPI_Port;
      Outgoing : HAL.SPI.SPI_Data_8b)
is
   [...]
   Data_8bit : UInt8 with Volatile, Address => This.Periph.DR.DR'Address;
begin
   [...]
   while Tx_Count > 0 loop
      [...]
      Data_8bit := Outgoing (Index);
      [...]
   end loop;
   [...]
end Send_8bit_Mode;

This should force the compiler to use 8-bit writes.

from ada_drivers_library.

morbos avatar morbos commented on July 2, 2024

HI Fabien,

That works! Slight mod to make it happen though:

Data_8bit : UInt8 with Volatile, Address => This.Periph.DR'Address

Without that omission of the second DR, it does some odd 16bit sign ext and leaves the address as a ram local.

Thanks!

Hedley

from ada_drivers_library.

Fabien-Chouteau avatar Fabien-Chouteau commented on July 2, 2024

Cool! Don't hesitate to submit a fix ;)

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.