boot: zephyr: add missing sys_clock_disable declaration
Add missing declaration of sys_clock_disable() to fix compiler warning.
Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
diff --git a/boot/zephyr/main.c b/boot/zephyr/main.c
index 234ad4c..1f097a6 100644
--- a/boot/zephyr/main.c
+++ b/boot/zephyr/main.c
@@ -48,6 +48,8 @@
uint32_t reset;
};
+extern void sys_clock_disable(void);
+
static void do_boot(struct boot_rsp *rsp)
{
struct arm_vector_table *vt;
@@ -124,7 +126,7 @@
GPIO_DIR_IN | GPIO_PUD_PULL_UP);
__ASSERT(rc == 0, "Error of boot detect pin initialization.\n");
- rc = gpio_pin_read(detect_port, CONFIG_BOOT_SERIAL_DETECT_PIN,
+ rc = gpio_pin_read(detect_port, CONFIG_BOOT_SERIAL_DETECT_PIN,
&detect_value);
__ASSERT(rc == 0, "Error of the reading the detect pin.\n");