stm32-hal | This library provides access to STM32 peripherals in Rust

 by   David-OConnor Rust Version: 1.6.2 License: MIT

kandi X-RAY | stm32-hal Summary

kandi X-RAY | stm32-hal Summary

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

This library provides access to STM32 peripherals in Rust.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              stm32-hal has a low active ecosystem.
              It has 111 star(s) with 30 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 10 open issues and 41 have been closed. On average issues are closed in 21 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of stm32-hal is 1.6.2

            kandi-Quality Quality

              stm32-hal has no bugs reported.

            kandi-Security Security

              stm32-hal has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

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

            kandi-Reuse Reuse

              stm32-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 stm32-hal
            Get all kandi verified functions for this library.

            stm32-hal Key Features

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

            stm32-hal Examples and Code Snippets

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

            Community Discussions

            Trending Discussions on stm32-hal

            QUESTION

            stm32 hal library warning with C++14 & above
            Asked 2020-Mar-03 at 15:21

            I posted the same question in the STM32 community forum as well, but didn't receive an answer.

            I am using stm32 HAL library in a project with C++14 enabled. It issues me the following warning which I can't get rid of.

            ../platform/stm32/l4/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_rcc.h:735:57:

            warning: conversion to void will not access object of type 'volatile uint32_t {aka volatile long unsigned int}' UNUSED(tmpreg); \

            This happens, when a call to __GPIOX_CLK_ENABLE() or __HAL_RCC_GPIOX_CLK_ENABLE is called.

            Has anyone been able to get rid of the above warning leaving the HAL source code intact.

            Or any ideas as what is possible to be done.

            The current warning level is -Wall.

            I've experienced the above issue with both l4 & f4 series code.

            An Example code:

            ...

            ANSWER

            Answered 2018-Mar-02 at 14:54

            The problem is -std=c++14 changing the semantics of a volatile expression cast to (void), and introducing an apparently* unconditional warning for it, and a coder at ST trying to make "triple sure" that a register read would take place.

            The definition of the UNUSED() macro is

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install stm32-hal

            Install Rust.
            Install the compilation target for your MCU. Eg run rustup target add thumbv7em-none-eabihf. You'll need to change the last part if using a Cortex-M0, Cortex-M33, (Eg Stm32G0 or L5 respectively) or if you don't want to use hardware floats.
            Install flash and debug tools: cargo install flip-link, cargo install probe-run.
            Clone the quickstart repo: git clone https://github.com/David-OConnor/stm32-hal-quickstart.
            Change the following lines to match your MCU. Post an issue if you need help with this: Cargo.toml: stm32-hal2 = { version = "^1.4.0", features = ["l4x3", "l4rt"]} memory.x: FLASH and RAM lines .cargo/config.toml: runner and target lines.
            Connect your device. Run cargo run --release to compile and flash.

            Support

            F3, F4, L4, L5, G0, G4, H7, WB, and WL. U5 is planned once its SVD files and PAC become available.
            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/David-OConnor/stm32-hal.git

          • CLI

            gh repo clone David-OConnor/stm32-hal

          • sshUrl

            git@github.com:David-OConnor/stm32-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

            Explore Related Topics

            Consider Popular Rust Libraries

            996.ICU

            by 996icu

            deno

            by denoland

            rust

            by rust-lang

            alacritty

            by alacritty

            tauri

            by tauri-apps

            Try Top Libraries by David-OConnor

            pyflow

            by David-OConnorRust

            brisk

            by David-OConnorPython

            fplot

            by David-OConnorPython

            pydeps

            by David-OConnorPython

            dnd-scroll

            by David-OConnorTypeScript