-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding nvic for cortex m0+, fixing little bug with stringToEnum (#281)
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
pub const SystemControlBlock = @compileError("TODO"); | ||
pub const NestedVectorInterruptController = @compileError("TODO"); | ||
|
||
pub const NestedVectorInterruptController = extern struct { | ||
/// Interrupt set registers. | ||
ISER: u32, | ||
_reserved0: [31]u32, | ||
/// Interrupt clear enable registers. | ||
ICER: u32, | ||
_reserved1: [31]u32, | ||
/// Interrupt set pending registers. | ||
ISPR: u32, | ||
_reserved2: [31]u32, | ||
/// Interrupt clear pending registers. | ||
ICPR: u32, | ||
_reserved3: [31]u32, | ||
/// Interrupt priority registers. | ||
IPR: [28]u8, | ||
}; | ||
|
||
pub const MemoryProtectionUnit = @compileError("TODO"); |