Skip to content

Commit

Permalink
Merge pull request pyocd#148 from flit/feature/file_categories
Browse files Browse the repository at this point in the history
Add preIncludeGlobal/Local file categories.
  • Loading branch information
flit authored Jul 9, 2020
2 parents b78322c + b1244dd commit 3aa44e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rust/cmsis-pack/src/pdsc/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ pub enum FileCategory {
LinkerScript,
Utility,
Image,
PreIncludeGlobal,
PreIncludeLocal,
Other,
}

Expand All @@ -40,8 +42,10 @@ impl FromStr for FileCategory {
"linkerScript" => Ok(FileCategory::LinkerScript),
"utility" => Ok(FileCategory::Utility),
"image" => Ok(FileCategory::Image),
"preIncludeGlobal" => Ok(FileCategory::PreIncludeGlobal),
"preIncludeLocal" => Ok(FileCategory::PreIncludeLocal),
"other" => Ok(FileCategory::Other),
unknown => Err(format_err!("Unknown file catogory {}", unknown)),
unknown => Err(format_err!("Unknown file category {}", unknown)),
}
}
}
Expand Down

0 comments on commit 3aa44e3

Please sign in to comment.