Commit c9289b1b authored by Tmplt's avatar Tmplt
Browse files

refactor(csec): take ownership of FTFC and CSE_PRAM

This simplifies usage with RTFM.
parent f6ac7154
No related merge requests found
Showing with 6 additions and 6 deletions
+6 -6
......@@ -208,9 +208,9 @@ fn u8_be_array_from_u32(x: u32) -> [u8; 4] {
]
}
pub struct CSEc<'a> {
ftfc: &'a s32k144::FTFC,
cse_pram: &'a s32k144::CSE_PRAM,
pub struct CSEc {
ftfc: s32k144::FTFC,
cse_pram: s32k144::CSE_PRAM,
}
const PAGE_1_OFFSET: usize = 16;
......@@ -225,10 +225,10 @@ const UPPER_HALF_SHIFT: u32 = 0x10;
const BYTES_TO_PAGES_SHIFT: u32 = 4;
const MAX_PAGES: usize = 7;
impl<'a> CSEc<'a> {
impl CSEc {
pub fn init(
ftfc: &'a s32k144::FTFC,
cse_pram: &'a s32k144::CSE_PRAM,
ftfc: s32k144::FTFC,
cse_pram: s32k144::CSE_PRAM,
) -> Self {
CSEc {
ftfc: ftfc,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment