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>
This commit is contained in:
Emanuele Di Santo 2018-11-01 16:06:36 +01:00 committed by Andrzej Puzdrowski
parent 4a60ee7c76
commit fcfff58417
1 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,8 @@ struct arm_vector_table {
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 @@ void main(void)
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");