Skip to content

Commit 661bb0c

Browse files
authored
Update links due to repo transfer (#31)
1 parent 7081f0a commit 661bb0c

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "hpm-hal"
33
version = "0.0.1"
44
edition = "2021"
55
authors = ["Andelf <[email protected]>"]
6-
repository = "https://github.com/hpmicro-rs/hpm-hal"
6+
repository = "https://github.com/hpmicro/hpm-hal"
77
documentation = "https://docs.rs/hpm-hal"
88
homepage = "https://github.com/hpmicro/hpm-hal"
99
categories = ["embedded", "hardware-support", "no-std"]

README.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# hpm-hal
22

3-
A Rust HAL implementation for the HPMicro's RISC-V MCUs.
3+
A Rust HAL and [Embassy](https://embassy.dev/) driver implementation for the HPMicro's RISC-V MCUs.
44
The PAC(Peripheral Access Crate) is based on [hpm-data].
55

6-
This crate is a working-in-progress and not ready for use.
6+
This crate is a working-in-progress and not ready for production use.
77

8-
## Project status
8+
## Support Status
99

1010
### MCU Family Support
1111

1212
| MCU Family | PAC | Demo | Embassy | SYSCTL | GPIO | UART | I2C | SPI | DMA | TMR | ADC | USB | CAN |
1313
|------------|-----|------|---------|--------|------|------|-----|-----|-----|-----|-----|-----|-----|
1414
| HPM6700 ||||| ✓+ | ✓+ | ✓+ | ✓+ | ✓+ | | | | |
15-
| HPM6300 ||||| | | | | | | | | |
15+
| HPM6300 ||||| ? | ? | ? | ? | ? | | | | |
1616
| HPM6200 || | | | | | | | | | | | |
1717
| HPM5300 ||||| ✓+ | ✓+ | ✓+ | ✓+ | ✓+ | ||||
1818
| HPM6800 || | | | | | | | | | | | |
@@ -24,7 +24,7 @@ This crate is a working-in-progress and not ready for use.
2424
- Blank: Not implemented
2525
- +: Async support
2626

27-
### Peripherals
27+
### Peripheral Support
2828

2929
- [x] Basic rt code: linker, startup
3030
- [x] vectored interrupt handling
@@ -71,18 +71,19 @@ This crate is a working-in-progress and not ready for use.
7171
- [x] SDRAM init
7272
- [x] MCAN
7373
- [x] basic `mcan` wrapper
74-
- ~~[ ] async driver~~, better impl it in the App layer, see Mi motor demo
74+
- ~~[ ] async driver~~, better impl it in the App layer, see XiaoMi CyberGear motor demo
7575
- [ ] TSU management
7676
- [x] USB via embassy-usb
7777
- [x] Device
7878
- [ ] Host
7979
- [x] XPI NOR flash driver using embedded-storage
80+
- [ ] power domain handling
8081

81-
### Long term Plans
82+
### Related Crates
8283

83-
- [x] [andes-riscv] for specific CSRs
84-
- [ ] hpm-riscv-rt for customized runtime (riscv-rt is not fit)
85-
- [ ] power domain handling
84+
- [x] [andes-riscv] for Andes' specific CSRs
85+
- [x] [hpm-data] and [hpm-metapac] for Chip metadata and PAC generation
86+
- [ ] hpm-riscv-rt for customized runtime (riscv-rt does not fit)
8687

8788
### Toolchain Support
8889

@@ -129,22 +130,23 @@ The best reference is the examples in the `examples` directory and Github action
129130
#### Step 1. Prepare Rust Toolchain
130131

131132
```bash
132-
rustup default nightly
133+
# lock to 2024-08-23 and wait for embassy-executor to be updated
134+
rustup default nightly-2024-08-23
133135
rustup target add riscv32imafc-unknown-none-elf
134136
```
135137

136138
#### Step 2. Clone this repo
137139

138140
```bash
139-
git clone https://github.com/hpmicro-rs/hpm-hal.git
141+
git clone https://github.com/hpmicro/hpm-hal.git
140142

141143
# Or if you are using SSH
142144

143-
git clone [email protected]:hpmicro-rs/hpm-hal.git
145+
git clone [email protected]:hpmicro/hpm-hal.git
144146

145147
# Or if you are using GitHub CLI
146148

147-
gh repo clone hpmicro-rs/hpm-hal
149+
gh repo clone hpmicro/hpm-hal
148150
```
149151

150152
#### Step 3. Run Examples
@@ -166,7 +168,7 @@ cargo run --release --bin blinky
166168
167169
## License
168170

169-
Embassy is licensed under either of
171+
This repo is licensed under either of
170172

171173
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
172174
<http://www.apache.org/licenses/LICENSE-2.0>)
@@ -178,8 +180,9 @@ at your option.
178180

179181
This crate is under active development. Before starting your work, it's better to create a "Work in Progress" (WIP) pull request describing your work to avoid conflicts.
180182

181-
[hpm-data]: https://github.com/andelf/hpm-data
183+
[hpm-data]: https://github.com/hpmicro/hpm-data
182184
[HPM OpenOCD]: https://github.com/hpmicro/riscv-openocd
183185
[probe-rs]: https://github.com/probe-rs/probe-rs
184-
[probe-rs HPM fork]: https://github.com/hpmicro-rs/probe-rs
186+
[probe-rs HPM fork]: https://github.com/hpmicro/probe-rs
185187
[andes-riscv]: https://github.com/hpmicro-rs/andes-riscv
188+
[hpm-metapac]: https://docs.rs/hpm-metapac/latest/hpm_metapac

0 commit comments

Comments
 (0)