GithubHelp home page GithubHelp logo

support i2c for stm32g0x1 about embassy HOT 5 CLOSED

embassy-rs avatar embassy-rs commented on May 14, 2024
support i2c for stm32g0x1

from embassy.

Comments (5)

xoviat avatar xoviat commented on May 14, 2024

Generally, i2c on stm32 is something that we want to support. You need to implement the RTC and I2C traits for stm32g0xx microcontrollers.

For the I2C implementation, you can copy this file, and then adjust it to use InterruptFuture for transmission of the address, and replace L263-L270 with DMA, like what's done in the stm32f4 PR. The F4 PR is probably almost correct, but I can't currently test it because I don't use I2C in my project. I'll probably keep is as a reference until someone needs I2C for F4.

from embassy.

xoviat avatar xoviat commented on May 14, 2024

Also, join https://app.element.io/#/room/#embassy-rs:matrix.org so that we can discuss your questions in chat, and there's not so many questions in this issue.

from embassy.

bobmcwhirter avatar bobmcwhirter commented on May 14, 2024

I think we have i2c now implemented for all STM32 boards, if you wouldn't mind taking a look?

If you find your target board(s) are not supported (or include too many bugs), let us know.

Thanks!

from embassy.

Dirbaio avatar Dirbaio commented on May 14, 2024

stm32g0 is I2Cv2 which we do support. What's missing is:

  • stm32g0 support itself.
  • I2C slave mode (we only have master).

stm32g0 support shouldn't be hard, just enabling it here and fixing what breaks (most likely lack of RCC).

from embassy.

Dirbaio avatar Dirbaio commented on May 14, 2024

embassy-stm32 now fully supports G0.

Tracking slave mode support in #622

from embassy.

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.