GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - py32-rust/py32f0xx-hal: A Rust `embedded-hal` implementation for all MCUs in the PY32 F0 family

BranchesTags
Open more actions menu

Latest commit

 

History

73 Commits
73 Commits

Folders and files

NameName
Last commit message
Last commit date
.cargo
.cargo
 
 
.github
.github
 
 
.vscode
.vscode
 
 
examples
examples
 
 
src
src
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Cargo.toml
Cargo.toml
 
 
Embed.toml
Embed.toml
 
 
LICENSE-APACHE
LICENSE-APACHE
 
 
LICENSE-MIT
LICENSE-MIT
 
 
PY32F0_Series.yaml
PY32F0_Series.yaml
 
 
README.md
README.md
 
 
memory.x
memory.x
 
 
openocd.cfg
openocd.cfg
 
 
openocd_program.sh
openocd_program.sh
 
 

Repository files navigation

py32f0xx-hal

[HAL] for the py32f0xx family of microcontrollers

Crates.io Crates.io docs.rs Continuous integration dependency status

py32f0xx-hal contains a hardware abstraction on top of the peripheral access API for the puyasemi PY32F0xx family of microcontrollers.

Collaboration on this crate is highly welcome, as are pull requests!

Supported

  • py32f030 (py32f030xx4, py32f030xx6, py32f030xx7, py32f030xx8)
  • py32f003 (py32f003xx4, py32f003xx6, py32f030xx8)
  • py32f002a (py32f002ax5)
  • py32f002b (py32f002bx5)
Family F002A F002B F030/F003
RCC ✅ ✅ ✅
GPIO ✅ ✅ ✅
INTERRUPT ✅ ✅ ✅
DMA N/A N/A ✅
EXTI ✅ ✅ ✅
USART ✅ ✅ ✅
I2C ✅ ✅ ✅
SPI ✅ ✅ ✅
ADC ✅ ✅ ✅
RTC N/A N/A ✅
FLASH
COMP
Timer(PWM) ✅ ✅ ✅
Watchdog ❓ ❓ ❓
LED N/A N/A
  • ✅ : Implemented
  • Blank : Not implemented
  • ❓ : Requires demo verification
  • + : Async support
  • N/A : Not available

TODOs

  • LSE/LSI test and examples

  • Other chips

Getting Started

The examples folder contains several example programs. To compile them, one must specify the target device as cargo feature:

$ cargo build --features=py32f030 --example=blinky

To use py32f0xx-hal as a dependency in a standalone project the target device feature must be specified in the Cargo.toml file:

[dependencies]
embedded-hal = "1"
nb = "1"
cortex-m = "0.7.7"
cortex-m-rt = "0.7.3"
# Panic behaviour, see https://crates.io/keywords/panic-impl for alternatives
panic-halt = "0.2.0"
py32f0xx-hal = { version = "0.6.1", features = ["py32f030"] }

Optional Features

  • rtic this feature includes a monotonic timer module for use with that crate
  • defmt Adds derive(defmt::Format) to Error types in this crate

If you are unfamiliar with embedded development using Rust, there are a number of fantastic resources available to help.

  • Embedded Rust Documentation
  • The Embedded Rust Book
  • Rust Embedded FAQ
  • rust-embedded/awesome-embedded-rust

Minimum supported Rust version

The minimum supported Rust version is the latest stable release. Older versions may compile, especially when some features are not used in your application.

Changelog

See CHANGELOG.md.

Credits

This repo was inspired by stm32f0xx-hal and stm32f1xx-hal

License

Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

A Rust `embedded-hal` implementation for all MCUs in the PY32 F0 family

Topics

halpy32f0rust-embedded

Resources

Readme
Activity
Custom properties

Stars

18 stars

Watchers

2 watching

Forks

8 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.