Skip to content

Commit

Permalink
Complying with the REUSE specification
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpallant committed Jul 23, 2024
1 parent 6be74d1 commit cb78435
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 15 deletions.
3 changes: 3 additions & 0 deletions qemu-cortex-r5-app/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2024 Ferrous Systems
# SPDX-License-Identifier: MIT OR Apache-2.0

[target.armv7r-none-eabihf]
rustflags = [
"-Clink-arg=-Tlinker.ld",
Expand Down
3 changes: 3 additions & 0 deletions qemu-cortex-r5-app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# SPDX-FileCopyrightText: Copyright (c) 2024 Ferrous Systems
# SPDX-License-Identifier: CC0-1.0

/target
3 changes: 0 additions & 3 deletions qemu-cortex-r5-app/.vscode/settings.json

This file was deleted.

2 changes: 2 additions & 0 deletions qemu-cortex-r5-app/Cargo.lock.license

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions qemu-cortex-r5-app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2024 Ferrous Systems
# SPDX-License-Identifier: MIT OR Apache-2.0

[package]
name = "qemu-cortex-r5-app"
version = "0.1.0"
Expand Down
2 changes: 2 additions & 0 deletions qemu-cortex-r5-app/commands.gdb.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SPDX-FileCopyrightText: Copyright (c) 2024 Ferrous Systems
# SPDX-License-Identifier: CC0-1.0
7 changes: 7 additions & 0 deletions qemu-cortex-r5-app/linker.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Linker script for running ThreadX/Rust on QEMU's Versatile AB with a Cortex-R5
*
* SPDX-FileCopyrightText: Copyright (c) 2024 Ferrous Systems
* SPDX-License-Identifier: MIT OR Apache-2.0
*/

MEMORY {
RAM : ORIGIN = 0, LENGTH = 0x1000000
}
Expand Down
5 changes: 5 additions & 0 deletions qemu-cortex-r5-app/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//! Common code for the ThreadX/Rust on Cortex-R5 demo

// SPDX-FileCopyrightText: Copyright (c) 2024 Ferrous Systems
// SPDX-License-Identifier: MIT OR Apache-2.0

#![no_std]

pub mod pl011_uart;
Expand Down
7 changes: 3 additions & 4 deletions qemu-cortex-r5-app/src/pl011_uart.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
//! Code for the Arm PL011 Uart
//!
//! Written by Jonathan Pallant at Ferrous Systems
//!
//! Copyright (c) Ferrous Systems, 2024

// SPDX-FileCopyrightText: Copyright (c) 2024 Ferrous Systems
// SPDX-License-Identifier: MIT OR Apache-2.0

/// A driver for a virtual PL011 Uart
///
Expand Down
7 changes: 3 additions & 4 deletions qemu-cortex-r5-app/src/pl190_vic.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
//! Code for the Arm PL190 Vector Interrupt Controller
//!
//! Written by Jonathan Pallant at Ferrous Systems
//!
//! Copyright (c) Ferrous Systems, 2024

// SPDX-FileCopyrightText: Copyright (c) 2024 Ferrous Systems
// SPDX-License-Identifier: MIT OR Apache-2.0

/// A driver for a virtual PL190 Vector Interrupt Controller
///
Expand Down
8 changes: 4 additions & 4 deletions qemu-cortex-r5-app/src/sp804_timer.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
//! Code for the Arm SP804 Timer
//!
//! Written by Jonathan Pallant at Ferrous Systems
//!
//! Copyright (c) Ferrous Systems, 2024

// SPDX-FileCopyrightText: Copyright (c) 2024 Ferrous Systems
// SPDX-License-Identifier: MIT OR Apache-2.0

/// Supported timer modes
pub enum Mode {
Expand All @@ -16,6 +15,7 @@ pub enum Interrupts {
Enabled = 1 << 5,
}

/// Timer0 on an Arm Versatile Application Board.
pub type Timer0 = Timer<0x101e_2000>;

/// A driver for a virtual SP804 Timer
Expand Down

0 comments on commit cb78435

Please sign in to comment.