utralib: add SAMA5D27 svd and cargo feature

This commit is contained in:
eupn 2023-03-05 16:39:23 +04:00
parent 47b5b88438
commit de296fb6c0
No known key found for this signature in database
GPG key ID: 0BBE77FB42014014
5 changed files with 174781 additions and 2 deletions

View file

@ -46,5 +46,8 @@ precursor = []
hosted = []
renode = []
# ATSAMA5D27 ARMv7A SoC
atsama5d27 = []
# Specify a Precusor default so that we can pass packaging CI tests.
default = ["precursor-70190e2", "precursor"]

File diff suppressed because it is too large Load diff

View file

@ -21,7 +21,7 @@ macro_rules! count_enabled_features {
}
/// Helper macro that returns a compile-time error if multiple or none of the
/// features of some caterogy are defined.
/// features of some category are defined.
///
/// # Example
///
@ -83,7 +83,7 @@ fn main() {
// This script retains the use of an explicit "hosted" flag because we want to catch
// unintentional build system misconfigurations that meant to build for a target other
// than "hosted", rather than just falling back silently to defaults.
allow_single_target_feature!("precursor", "hosted", "renode");
allow_single_target_feature!("precursor", "hosted", "renode", "atsama5d27");
#[cfg(feature = "precursor")]
allow_single_gitrev_feature!(
@ -125,6 +125,11 @@ fn main() {
#[cfg(feature = "precursor-70190e2")]
let generated_filename = "src/generated/precursor_70190e2.rs";
#[cfg(feature = "atsama5d27")]
let svd_filename = "atsama5d/ATSAMA5D27.svd";
#[cfg(feature = "atsama5d27")]
let generated_filename = "src/generated/atsama5d27.rs";
// ----- control file generation and rebuild sequence -----
// check and see if the configuration has changed since the last build. This should be
// passed by the build system (e.g. xtask) if the feature is used.

View file

@ -31,6 +31,11 @@ mod precursor_70190e2;
#[cfg(feature="precursor-70190e2")]
pub use precursor_70190e2::*;
#[cfg(feature = "atsama5d27")]
mod atsama5d27;
#[cfg(feature = "atsama5d27")]
pub use atsama5d27::*;
// Hosted mode includes nothing, as it relies on the abstract host
// architecture for I/O; so this file is empty when the "hosted"
// configuration is selected and there are no corresponding "hosted"

File diff suppressed because it is too large Load diff