-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from nerwalt/nrf9120
nrf9120
- Loading branch information
Showing
694 changed files
with
163,357 additions
and
39 deletions.
There are no files selected for viewing
File renamed without changes.
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "nrf9120-pac" | ||
description = "Peripheral Access Crate for Nordic's nrf9120 microcontroller" | ||
documentation = "https://docs.rs/nrf9120-pac" | ||
version.workspace = true | ||
edition.workspace = true | ||
keywords.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
readme.workspace = true | ||
|
||
[dependencies] | ||
cortex-m.workspace = true | ||
vcell.workspace = true | ||
|
||
[dependencies.cortex-m-rt] | ||
optional = true | ||
workspace = true | ||
|
||
[features] | ||
rt = ["cortex-m-rt/device"] |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use std::env; | ||
use std::fs::File; | ||
use std::io::Write; | ||
use std::path::PathBuf; | ||
fn main() { | ||
if env::var_os("CARGO_FEATURE_RT").is_some() { | ||
let out = &PathBuf::from(env::var_os("OUT_DIR").unwrap()); | ||
File::create(out.join("device.x")) | ||
.unwrap() | ||
.write_all(include_bytes!("device.x")) | ||
.unwrap(); | ||
println!("cargo:rustc-link-search={}", out.display()); | ||
println!("cargo:rerun-if-changed=device.x"); | ||
} | ||
println!("cargo:rerun-if-changed=build.rs"); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
PROVIDE(SPU = DefaultHandler); | ||
PROVIDE(CLOCK_POWER = DefaultHandler); | ||
PROVIDE(SPIM0_SPIS0_TWIM0_TWIS0_UARTE0 = DefaultHandler); | ||
PROVIDE(SPIM1_SPIS1_TWIM1_TWIS1_UARTE1 = DefaultHandler); | ||
PROVIDE(SPIM2_SPIS2_TWIM2_TWIS2_UARTE2 = DefaultHandler); | ||
PROVIDE(SPIM3_SPIS3_TWIM3_TWIS3_UARTE3 = DefaultHandler); | ||
PROVIDE(GPIOTE0 = DefaultHandler); | ||
PROVIDE(SAADC = DefaultHandler); | ||
PROVIDE(TIMER0 = DefaultHandler); | ||
PROVIDE(TIMER1 = DefaultHandler); | ||
PROVIDE(TIMER2 = DefaultHandler); | ||
PROVIDE(RTC0 = DefaultHandler); | ||
PROVIDE(RTC1 = DefaultHandler); | ||
PROVIDE(WDT = DefaultHandler); | ||
PROVIDE(EGU0 = DefaultHandler); | ||
PROVIDE(EGU1 = DefaultHandler); | ||
PROVIDE(EGU2 = DefaultHandler); | ||
PROVIDE(EGU3 = DefaultHandler); | ||
PROVIDE(EGU4 = DefaultHandler); | ||
PROVIDE(EGU5 = DefaultHandler); | ||
PROVIDE(PWM0 = DefaultHandler); | ||
PROVIDE(PWM1 = DefaultHandler); | ||
PROVIDE(PWM2 = DefaultHandler); | ||
PROVIDE(PWM3 = DefaultHandler); | ||
PROVIDE(PDM = DefaultHandler); | ||
PROVIDE(I2S = DefaultHandler); | ||
PROVIDE(IPC = DefaultHandler); | ||
PROVIDE(FPU = DefaultHandler); | ||
PROVIDE(GPIOTE1 = DefaultHandler); | ||
PROVIDE(KMU = DefaultHandler); | ||
PROVIDE(CRYPTOCELL = DefaultHandler); | ||
|
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#[doc = r"Register block"] | ||
#[repr(C)] | ||
pub struct RegisterBlock { | ||
_reserved0: [u8; 0x0e00], | ||
#[doc = "0xe00 - Unspecified"] | ||
pub secureapprotect: SECUREAPPROTECT, | ||
_reserved1: [u8; 0x0c], | ||
#[doc = "0xe10 - Unspecified"] | ||
pub approtect: APPROTECT, | ||
} | ||
#[doc = "Unspecified"] | ||
pub use secureapprotect::SECUREAPPROTECT; | ||
#[doc = r"Cluster"] | ||
#[doc = "Unspecified"] | ||
pub mod secureapprotect; | ||
#[doc = "Unspecified"] | ||
pub use approtect::APPROTECT; | ||
#[doc = r"Cluster"] | ||
#[doc = "Unspecified"] | ||
pub mod approtect; |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#[doc = r"Register block"] | ||
#[repr(C)] | ||
pub struct APPROTECT { | ||
_reserved_0_disable: [u8; 0x04], | ||
} | ||
impl APPROTECT { | ||
#[doc = "0x00 - Software force APPROTECT mechanism"] | ||
#[inline(always)] | ||
pub fn forceprotect(&self) -> &FORCEPROTECT { | ||
unsafe { &*(((self as *const Self) as *const u8).add(0usize) as *const FORCEPROTECT) } | ||
} | ||
#[doc = "0x00 - Software disable APPROTECT mechanism"] | ||
#[inline(always)] | ||
pub fn disable(&self) -> &DISABLE { | ||
unsafe { &*(((self as *const Self) as *const u8).add(0usize) as *const DISABLE) } | ||
} | ||
} | ||
#[doc = "DISABLE (rw) register accessor: an alias for `Reg<DISABLE_SPEC>`"] | ||
pub type DISABLE = crate::Reg<disable::DISABLE_SPEC>; | ||
#[doc = "Software disable APPROTECT mechanism"] | ||
pub mod disable; | ||
#[doc = "FORCEPROTECT (rw) register accessor: an alias for `Reg<FORCEPROTECT_SPEC>`"] | ||
pub type FORCEPROTECT = crate::Reg<forceprotect::FORCEPROTECT_SPEC>; | ||
#[doc = "Software force APPROTECT mechanism"] | ||
pub mod forceprotect; |
Oops, something went wrong.