stm32f1xx-hal | Rust embedded-hal HAL impl

 by   stm32-rs Rust Version: v0.9.0 License: Apache-2.0

kandi X-RAY | stm32f1xx-hal Summary

kandi X-RAY | stm32f1xx-hal Summary

stm32f1xx-hal is a Rust library typically used in Embedded System applications. stm32f1xx-hal has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

HAL for the STM32F1 family of microcontrollers.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              stm32f1xx-hal has a low active ecosystem.
              It has 449 star(s) with 162 fork(s). There are 23 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 60 open issues and 115 have been closed. On average issues are closed in 73 days. There are 22 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of stm32f1xx-hal is v0.9.0

            kandi-Quality Quality

              stm32f1xx-hal has 0 bugs and 0 code smells.

            kandi-Security Security

              stm32f1xx-hal has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              stm32f1xx-hal code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              stm32f1xx-hal is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              stm32f1xx-hal releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of stm32f1xx-hal
            Get all kandi verified functions for this library.

            stm32f1xx-hal Key Features

            No Key Features are available at this moment for stm32f1xx-hal.

            stm32f1xx-hal Examples and Code Snippets

            No Code Snippets are available at this moment for stm32f1xx-hal.

            Community Discussions

            Trending Discussions on stm32f1xx-hal

            QUESTION

            Rust STM32: webUSB publishing sensors
            Asked 2020-Mar-23 at 18:44

            For a hobby project using the stm32f1xx-hal, I'm wanting to periodically read a sensor and then push the values such that I can graph them realtime in a webUSB app.

            I have found an example in webusb_blinky by mvirkkunen which demonstrates the connectivity portion, but it's not clear to me how I would adapt it to publish sensor values. Should I be overriding control_in?

            Any suggestions/help would be appreciated. Thanks!

            ...

            ANSWER

            Answered 2020-Mar-23 at 18:44

            You could define a control transfer that requested the device respond with the current sensor values but the more natural USB mechanism for publishing sensor updates is with an IN endpoint.

            The usbd-serial module is the best example I can find of creating and using endpoints with this framework. A serial port consists of both an IN and OUT endpoint for bidirectional streaming of data. For your application you would only need the IN endpoint since the device only generates data.

            Source https://stackoverflow.com/questions/60800934

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install stm32f1xx-hal

            Embedded Rust development requires a bit more setup than ordinary development. For this guide, we'll assume you're using a stm32 blue pill board (shown below), but if you have another f1 microcontroller, you should be able to adapt it. You will also need a debug probe, for example an stlink v3 mini for programming and debugging. (There are many different STLink probes out there, all of them should work fine with the instructions given here, other JTAG or SWD debug probes will work as well but will need different software or configuration).
            Create a new Rust project as you usually do with cargo init. The hello world of embedded development is usually to blink an LED and code to do so is available in examples/blinky.rs. Copy that file to the main.rs of your project.

            Support

            stm32f100stm32f101stm32f103stm32f105stm32f107
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/stm32-rs/stm32f1xx-hal.git

          • CLI

            gh repo clone stm32-rs/stm32f1xx-hal

          • sshUrl

            git@github.com:stm32-rs/stm32f1xx-hal.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link