Skip to content

Commit

Permalink
boards: config: nrf: appid: use storage perm policy
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Jun 19, 2024
1 parent e7a1a12 commit f71bab9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,21 @@ pub unsafe fn main() {
let checker = components::appid::checker::ProcessCheckerMachineComponent::new(checking_policy)
.finalize(components::process_checker_machine_component_static!());

//--------------------------------------------------------------------------
// STORAGE PERMISSIONS
//--------------------------------------------------------------------------

let storage_permissions_policy =
components::storage_permissions::null::StoragePermissionsNullComponent::new().finalize(
components::storage_permissions_null_component_static!(
nrf52840::chip::NRF52<Nrf52840DefaultPeripherals>
),
);

//--------------------------------------------------------------------------
// PROCESS LOADING
//--------------------------------------------------------------------------

// Create and start the asynchronous process loader.
let _loader = components::loader::sequential::ProcessLoaderSequentialComponent::new(
checker,
Expand All @@ -279,6 +294,7 @@ pub unsafe fn main() {
chip,
&FAULT_RESPONSE,
assigner,
storage_permissions_policy,
)
.finalize(components::process_loader_sequential_component_static!(
nrf52840::chip::NRF52<Nrf52840DefaultPeripherals>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,21 @@ pub unsafe fn main() {
let checker = components::appid::checker::ProcessCheckerMachineComponent::new(checking_policy)
.finalize(components::process_checker_machine_component_static!());

//--------------------------------------------------------------------------
// STORAGE PERMISSIONS
//--------------------------------------------------------------------------

let storage_permissions_policy =
components::storage_permissions::null::StoragePermissionsNullComponent::new().finalize(
components::storage_permissions_null_component_static!(
nrf52840::chip::NRF52<Nrf52840DefaultPeripherals>
),
);

//--------------------------------------------------------------------------
// PROCESS LOADING
//--------------------------------------------------------------------------

// Create and start the asynchronous process loader.
let loader = components::loader::sequential::ProcessLoaderSequentialComponent::new(
checker,
Expand All @@ -314,6 +329,7 @@ pub unsafe fn main() {
chip,
&FAULT_RESPONSE,
assigner,
storage_permissions_policy,
)
.finalize(components::process_loader_sequential_component_static!(
nrf52840::chip::NRF52<Nrf52840DefaultPeripherals>,
Expand Down

0 comments on commit f71bab9

Please sign in to comment.