Skip to content

Commit

Permalink
config parameters only, no SVD changes
Browse files Browse the repository at this point in the history
  • Loading branch information
romancardenas committed Aug 22, 2024
1 parent ae043db commit c314fc9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 72 deletions.
69 changes: 0 additions & 69 deletions e310x.svd
Original file line number Diff line number Diff line change
Expand Up @@ -11,75 +11,6 @@
<resetValue>0x00000000</resetValue>
<resetMask>0xFFFFFFFF</resetMask>

<riscv>
<coreInterrupts>
<interrupt>
<name>MachineSoft</name>
<description>Machine Software Interrupt</description>
<value>3</value>
</interrupt>
<interrupt>
<name>MachineTimer</name>
<description>Machine Timer Interrupt</description>
<value>7</value>
</interrupt>
<interrupt>
<name>MachineExternal</name>
<description>Machine External Interrupt</description>
<value>11</value>
</interrupt>
</coreInterrupts>
<priorities>
<priority>
<name>P0</name>
<description>Priority level 0</description>
<value>0</value>
</priority>
<priority>
<name>P1</name>
<description>Priority level 1</description>
<value>1</value>
</priority>
<priority>
<name>P2</name>
<description>Priority level 2</description>
<value>2</value>
</priority>
<priority>
<name>P3</name>
<description>Priority level 3</description>
<value>3</value>
</priority>
<priority>
<name>P4</name>
<description>Priority level 4</description>
<value>4</value>
</priority>
<priority>
<name>P5</name>
<description>Priority level 5</description>
<value>5</value>
</priority>
<priority>
<name>P6</name>
<description>Priority level 6</description>
<value>6</value>
</priority>
<priority>
<name>P7</name>
<description>Priority level 7</description>
<value>7</value>
</priority>
</priorities>
<harts>
<hart>
<name>H0</name>
<description>Hart 0</description>
<value>0</value>
</hart>
</harts>
</riscv>

<peripherals>
<!-- CLINT -->
<peripheral>
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![doc = "Peripheral access API for FE310 microcontrollers (generated using svd2rust v0.33.4 (b930ea3 2024-08-20))\n\nYou can find an overview of the generated API [here].\n\nAPI features to be included in the [next]
#![doc = "Peripheral access API for FE310 microcontrollers (generated using svd2rust v0.33.4 (eac74d5 2024-08-21))\n\nYou can find an overview of the generated API [here].\n\nAPI features to be included in the [next]
svd2rust release can be generated by cloning the svd2rust [repository], checking out the above commit, and running `cargo doc --open`.\n\n[here]: https://docs.rs/svd2rust/0.33.4/svd2rust/#peripheral-api\n[next]: https://github.com/rust-embedded/svd2rust/blob/master/CHANGELOG.md#unreleased\n[repository]: https://github.com/rust-embedded/svd2rust"]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
Expand Down
23 changes: 21 additions & 2 deletions svd2rust.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
use_riscv_peripheral = true
riscv_clint_freq = 32768
[riscv_config]
core_interrupts = [
{ name = "MachineSoft", value = 3, description = "Machine Software Interrupt" },
{ name = "MachineTimer", value = 7, description = "Machine Timer Interrupt" },
{ name = "MachineExternal", value = 11, description = "Machine External Interrupt" },
]
priorities = [
{ name = "P0", value = 0, description = "Priority level 0" },
{ name = "P1", value = 1, description = "Priority level 1" },
{ name = "P2", value = 2, description = "Priority level 2" },
{ name = "P3", value = 3, description = "Priority level 3" },
{ name = "P4", value = 4, description = "Priority level 4" },
{ name = "P5", value = 5, description = "Priority level 5" },
{ name = "P6", value = 6, description = "Priority level 6" },
{ name = "P7", value = 7, description = "Priority level 7" },
]
harts = [
{ name = "H0", value = 0, description = "Hart 0" },
]
clint = {name = "CLINT", freq = 32768, async_delay = false }
plic = "PLIC"

0 comments on commit c314fc9

Please sign in to comment.