diff options
Diffstat (limited to 'embassy-mspm0/build.rs')
| -rw-r--r-- | embassy-mspm0/build.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/embassy-mspm0/build.rs b/embassy-mspm0/build.rs index 256192f8b..e8364e31a 100644 --- a/embassy-mspm0/build.rs +++ b/embassy-mspm0/build.rs | |||
| @@ -79,10 +79,14 @@ fn get_chip_cfgs(chip_name: &str) -> Vec<String> { | |||
| 79 | let mut cfgs = Vec::new(); | 79 | let mut cfgs = Vec::new(); |
| 80 | 80 | ||
| 81 | // GPIO on C110x is special as it does not belong to an interrupt group. | 81 | // GPIO on C110x is special as it does not belong to an interrupt group. |
| 82 | if chip_name.starts_with("mspm0c110") || chip_name.starts_with("msps003f") { | 82 | if chip_name.starts_with("mspm0c1103") || chip_name.starts_with("mspm0c1104") || chip_name.starts_with("msps003f") { |
| 83 | cfgs.push("mspm0c110x".to_string()); | 83 | cfgs.push("mspm0c110x".to_string()); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | if chip_name.starts_with("mspm0c1105") || chip_name.starts_with("mspm0c1106") { | ||
| 87 | cfgs.push("mspm0c1105_c1106".to_string()); | ||
| 88 | } | ||
| 89 | |||
| 86 | // Family ranges (temporary until int groups are generated) | 90 | // Family ranges (temporary until int groups are generated) |
| 87 | // | 91 | // |
| 88 | // TODO: Remove this once int group stuff is generated. | 92 | // TODO: Remove this once int group stuff is generated. |
| @@ -537,6 +541,8 @@ fn generate_interrupts() -> TokenStream { | |||
| 537 | pub fn enable_group_interrupts(_cs: critical_section::CriticalSection) { | 541 | pub fn enable_group_interrupts(_cs: critical_section::CriticalSection) { |
| 538 | use crate::interrupt::typelevel::Interrupt; | 542 | use crate::interrupt::typelevel::Interrupt; |
| 539 | 543 | ||
| 544 | // This is empty for C1105/6 | ||
| 545 | #[allow(unused_unsafe)] | ||
| 540 | unsafe { | 546 | unsafe { |
| 541 | #(#group_interrupt_enables)* | 547 | #(#group_interrupt_enables)* |
| 542 | } | 548 | } |
