Skip to content

Commit 3776433

Browse files
committed
Prepare v0.4.0
1 parent 5cae764 commit 3776433

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

.envrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# to use this, install [direnv](https://direnv.net/)
2+
source venv/bin/activate
3+
unset PS1

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## [v0.4.0] - 2021-05-02
7+
8+
- update to svd2rust
9+
- use CMSIS PACK (directly downloadable) instead of SDK as SVD source
10+
- experimental support for the ROM Patch Unit
11+
612
## [v0.3.0] - 2021-02-26
713

814
- adds some patching to remove bare-metal, and implement

Makefile

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ PACK_VERSION = 13.0.0
77
check: patch generate
88
cargo check
99

10-
1110
build: setup patch generate
1211
cargo build
1312

@@ -18,7 +17,6 @@ doc-open: setup patch generate
1817

1918
setup: update-venv fetch-svd
2019
cargo install svd2rust --version 0.18.0
21-
# cargo install svd2rust --version 0.17.0
2220

2321
patch:
2422
svd patch $(YAML)
@@ -32,6 +30,14 @@ generate:
3230
form -i lib.rs -o src/ && rm lib.rs
3331
cargo fmt
3432

33+
show-latest-pack:
34+
@echo $(shell wget -O - -qq https://mcuxpresso.nxp.com/cmsis_pack/repo/NXP.pidx|grep LPC55S69|python -c'import sys; print(sys.stdin.read().rsplit("version=\"", 1)[1].split("\"", 1)[0])')
35+
36+
PACK := NXP.LPC55S69_DFP.$(PACK_VERSION).pack
37+
fetch-svd:
38+
wget -qqO- https://mcuxpresso.nxp.com/cmsis_pack/repo/$(PACK) | bsdtar -xf- LPC55S69_cm33_core0.xml
39+
mv LPC55S69_cm33_core0.xml svd/pack-$(PACK_VERSION)-LPC55S69_cm33_core0.xml
40+
ln -sf svd/pack-$(PACK_VERSION)-LPC55S69_cm33_core0.xml lpc55.svd
3541

3642
# External documentation
3743
fetch-docs:
@@ -48,15 +54,6 @@ fetch-docs:
4854
# `pip install nxp-dlagent` for the following step
4955
nxp-dl UM11126 && mv UM11126.pdf ref/
5056

51-
show-latest-pack:
52-
@echo $(shell wget -O - -qq https://mcuxpresso.nxp.com/cmsis_pack/repo/NXP.pidx|grep LPC55S69|python -c'import sys; print(sys.stdin.read().rsplit("version=\"", 1)[1].split("\"", 1)[0])')
53-
54-
PACK := NXP.LPC55S69_DFP.$(PACK_VERSION).pack
55-
fetch-svd:
56-
wget -qqO- https://mcuxpresso.nxp.com/cmsis_pack/repo/$(PACK) | bsdtar -xf- LPC55S69_cm33_core0.xml
57-
mv LPC55S69_cm33_core0.xml svd/pack-$(PACK_VERSION)-LPC55S69_cm33_core0.xml
58-
ln -sf svd/pack-$(PACK_VERSION)-LPC55S69_cm33_core0.xml lpc55.svd
59-
6057
# Maintenance
6158
VERSION := $(shell grep version Cargo.toml|head -1|cut -d' ' -f 3|tr -d '"')
6259
tag:

src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,6 @@ pub enum Interrupt {
291291
#[doc = "59 - FLEXCOMM8"]
292292
FLEXCOMM8 = 59,
293293
}
294-
// unsafe impl cortex_m::interrupt::Nr for Interrupt {
295-
// #[inline(always)]
296-
// fn nr(&self) -> u8 {
297-
// *self as u8
298-
// }
299-
// }
300294
unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
301295
#[inline(always)]
302296
fn number(self) -> u16 {

0 commit comments

Comments
 (0)