1 /* 2 * Copyright (c) 2024 Raspberry Pi (Trading) Ltd. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #include "pico/bootrom/lock.h" 8 #include "pico/runtime_init.h" 9 10 #if PICO_BOOTROM_LOCKING_ENABLED 11 #if !PICO_RUNTIME_NO_INIT_BOOTROM_LOCKING_ENABLE 12 #include "hardware/sync.h" runtime_init_bootrom_locking_enable(void)13void __weak runtime_init_bootrom_locking_enable(void) { 14 bootrom_acquire_lock_blocking(BOOTROM_LOCK_ENABLE); 15 } 16 #endif 17 18 #if !PICO_RUNTIME_SKIP_INIT_BOOTROM_LOCKING_ENABLE 19 PICO_RUNTIME_INIT_FUNC_RUNTIME(runtime_init_bootrom_locking_enable, PICO_RUNTIME_INIT_BOOTROM_LOCKING_ENABLE); 20 #endif 21 #endif 22