Skip to content

Commit 242de11

Browse files
committed
Merge remote-tracking branch 'e310x-hal/master' into cargo-workspace
2 parents 48ed325 + 34655fe commit 242de11

29 files changed

+4231
-0
lines changed

e310x-hal/CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/).
7+
8+
## [Unreleased]
9+
10+
- Use `portable-atomic` to allow builds on `riscv32imc-unknown-none-elf`` targets when needed.
11+
12+
## [v0.10.0] - 2023-03-28
13+
14+
### Added
15+
- Added Pulse Width Modulation interface implementing `embedded_hal::Pwm`
16+
- Added `interrupt` module for vectored interrupt handlers. This module is only active if feature `virq` is selected.
17+
18+
### Changed
19+
- Refactored `e310x-hal::spi` module, splitting the abstraction into `SpiBus` and `SpiExclusiveDevice/SpiSharedDevice` to allow multiple devices on a single SPI bus to co-exist
20+
- Update `e310x` dependency to version 0.11
21+
- Update `riscv` dependency to version 0.10
22+
23+
### Removed
24+
- removed interrupt linking definitions, they are now provided by `e310x` via `svd2rust`
25+
26+
## [v0.9.4] - 2022-07-10
27+
28+
### Changed
29+
30+
- Fixed code still using old `riscv::interrupt::Nr`
31+
32+
## [v0.9.3] - 2021-08-15
33+
34+
### Changed
35+
36+
- Fixed `e310x-hal::delay::Delay` call typo to `delay_ms`
37+
38+
## [v0.9.2] - 2021-07-17
39+
40+
### Changed
41+
42+
- Fixed `e310x-hal::delay::Delay` timing typo with extra 0
43+
44+
## [v0.9.1] - 2021-07-15
45+
46+
### Added
47+
48+
- Added implementation of `embedded_hal::blocking::delay::DelayUs` for `e310x-hal::delay::Delay` using `MTIME`

e310x-hal/Cargo.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[package]
2+
name = "e310x-hal"
3+
version = "0.11.0"
4+
authors = ["David Craven <david@craven.ch>"]
5+
repository = "https://github.com/riscv-rust/e310x-hal"
6+
categories = ["embedded", "hardware-support", "no-std"]
7+
description = "HAL for the E310x family of microcontrollers."
8+
keywords = ["riscv", "e310", "hal"]
9+
license = "ISC"
10+
edition = "2018"
11+
rust-version = "1.59"
12+
13+
[dependencies]
14+
embedded-hal = { version = "0.2.6", features = ["unproven"] }
15+
nb = "1.0.0"
16+
riscv = { version = "0.10.1", features = ["critical-section-single-hart"] }
17+
e310x = { version = "0.11.0", features = ["rt", "critical-section"] }
18+
19+
[target.'cfg(not(target_has_atomic = "32"))'.dependencies]
20+
portable-atomic = { version = "1.4", default-features = false, features = ["unsafe-assume-single-core"] }
21+
22+
[features]
23+
g002 = ["e310x/g002"]
24+
virq = []
25+
26+
[package.metadata.docs.rs]
27+
features = ["g002", "virq"]

e310x-hal/README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[![crates.io](https://img.shields.io/crates/d/e310x-hal.svg)](https://crates.io/crates/e310x-hal)
2+
[![crates.io](https://img.shields.io/crates/v/e310x-hal.svg)](https://crates.io/crates/e310x-hal)
3+
[![Build Status](https://travis-ci.org/riscv-rust/e310x-hal.svg?branch=master)](https://travis-ci.org/riscv-rust/e310x-hal)
4+
5+
# `e310x-hal`
6+
7+
> HAL for the E310x family of microcontrollers.
8+
9+
This project is developed and maintained by the [RISC-V team][team].
10+
11+
## [Documentation](https://docs.rs/crate/e310x-hal)
12+
13+
## Minimum Supported Rust Version (MSRV)
14+
15+
This crate is guaranteed to compile on stable Rust 1.60.0 and up. It *might*
16+
compile with older versions but that may change in any new patch release.
17+
18+
## License
19+
20+
Copyright 2018-2019 [RISC-V team][team]
21+
22+
Permission to use, copy, modify, and/or distribute this software for any purpose
23+
with or without fee is hereby granted, provided that the above copyright notice
24+
and this permission notice appear in all copies.
25+
26+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
27+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
28+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
29+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
30+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
31+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
32+
THIS SOFTWARE.
33+
34+
## Code of Conduct
35+
36+
Contribution to this crate is organized under the terms of the [Rust Code of
37+
Conduct][CoC], the maintainer of this crate, the [RISC-V team][team], promises
38+
to intervene to uphold that code of conduct.
39+
40+
[CoC]: CODE_OF_CONDUCT.md
41+
[team]: https://github.com/rust-embedded/wg#the-risc-v-team

0 commit comments

Comments
 (0)