Skip to content

Commit a53c4d4

Browse files
committed
features: adds rt feature for gd32vf103-pac/rt
Adds a `rt` feature to allow users to opt-in to using the `gd32vf103-pac/rt` feature. This exposes the `interrupt` macro, allowing users to define functions for system interrupts. This is preferable to using inline assembly to include the code in `eclic-mode-hack.S` which causes symbol collisions with user-defined interrupt functions, and strange bugs for handler execution.
1 parent 3e3b292 commit a53c4d4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ jobs:
2424

2525
- name: Check code
2626
run: cargo check --target ${{ matrix.target }}
27+
28+
- name: Check rt feature
29+
run: cargo check --target ${{ matrix.target }} --features rt

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ embedded-dma = "0.1.2"
2121
[dependencies.embedded-hal]
2222
version = "0.2.3"
2323
features = ["unproven"]
24+
25+
[features]
26+
rt = ["gd32vf103-pac/rt"]

0 commit comments

Comments
 (0)