diff options
| author | Ulf Lilleengen <[email protected]> | 2025-12-12 08:16:01 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-12 08:16:01 +0000 |
| commit | 737fedeb358b9376abffd8ff836dc0bab7718c21 (patch) | |
| tree | 6f825b48b75b7d81cb8fd6b59ac5846f09a7dc6e /embassy-nrf | |
| parent | 3ff10a6a12b61ff16db26f8ffccfa3c1ec6b09ab (diff) | |
| parent | 1b9220993fb5cfd093a2ac953dd9da3578f9c78f (diff) | |
Merge pull request #5029 from robamu/tiny-docs-improvements
tiny improvements for nrf init code docs
Diffstat (limited to 'embassy-nrf')
| -rw-r--r-- | embassy-nrf/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-nrf/src/lib.rs b/embassy-nrf/src/lib.rs index db71dee10..584d0a0be 100644 --- a/embassy-nrf/src/lib.rs +++ b/embassy-nrf/src/lib.rs | |||
| @@ -845,9 +845,9 @@ pub fn init(config: config::Config) -> Peripherals { | |||
| 845 | // Chips with a certain chip type-specific build code or higher have an | 845 | // Chips with a certain chip type-specific build code or higher have an |
| 846 | // improved APPROTECT ("hardware and software controlled access port protection") | 846 | // improved APPROTECT ("hardware and software controlled access port protection") |
| 847 | // which needs explicit action by the firmware to keep it unlocked | 847 | // which needs explicit action by the firmware to keep it unlocked |
| 848 | // See https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/working-with-the-nrf52-series-improved-approtect | 848 | // See https://docs.nordicsemi.com/bundle/ps_nrf52840/page/dif.html#d402e184 |
| 849 | 849 | ||
| 850 | // UICR.APPROTECT = SwDisabled | 850 | // UICR.APPROTECT = HwDisabled |
| 851 | let res = uicr_write(consts::UICR_APPROTECT, consts::APPROTECT_DISABLED); | 851 | let res = uicr_write(consts::UICR_APPROTECT, consts::APPROTECT_DISABLED); |
| 852 | needs_reset |= res == WriteResult::Written; | 852 | needs_reset |= res == WriteResult::Written; |
| 853 | // APPROTECT.DISABLE = SwDisabled | 853 | // APPROTECT.DISABLE = SwDisabled |
