Skip to content

Commit 308b98c

Browse files
committed
re-add memory info
1 parent 9944a52 commit 308b98c

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

device.x

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
MEMORY
2+
{
3+
RAM : ORIGIN = 0x80000000, LENGTH = 16K
4+
}
5+
16
PROVIDE(WATCHDOG = DefaultHandler);
27
PROVIDE(RTC = DefaultHandler);
38
PROVIDE(UART0 = DefaultHandler);

memory.x

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
MEMORY
2+
{
3+
RAM : ORIGIN = 0x80000000, LENGTH = 16K
4+
}
5+

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![doc = "Peripheral access API for FE310 microcontrollers (generated using svd2rust v0.26.0 ( ))\n\nYou can find an overview of the generated API [here].\n\nAPI features to be included in the [next]
22
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.26.0/svd2rust/#peripheral-api\n[next]: https://github.com/rust-embedded/svd2rust/blob/master/CHANGELOG.md#unreleased\n[repository]: https://github.com/rust-embedded/svd2rust"]
3+
#![deny(const_err)]
34
#![deny(dead_code)]
45
#![deny(improper_ctypes)]
56
#![deny(missing_docs)]

update.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ mv generic.rs src/
1010
form -i lib.rs -o src/
1111
rm lib.rs
1212
cargo fmt
13+
14+
# combine generated device.x with memory.x
15+
mv device.x ints.x
16+
cat memory.x ints.x > device.x
17+
rm -f ints.x

0 commit comments

Comments
 (0)