boards/arm/samv7: disable systick no matter if ARMV7M_SYSTICK is enabled or not
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
57c3fce583
commit
b04b2f1bc8
@ -59,9 +59,7 @@ struct arm_vector_table
|
||||
****************************************************************************/
|
||||
|
||||
static void cleanup_arm_nvic(void);
|
||||
#ifdef CONFIG_ARMV7M_SYSTICK
|
||||
static void systick_disable(void);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
@ -105,7 +103,6 @@ static void cleanup_arm_nvic(void)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ARMV7M_SYSTICK
|
||||
/****************************************************************************
|
||||
* Name: systick_disable
|
||||
*
|
||||
@ -126,7 +123,6 @@ static void systick_disable(void)
|
||||
putreg32(NVIC_SYSTICK_RELOAD_MASK, NVIC_SYSTICK_RELOAD);
|
||||
putreg32(0, NVIC_SYSTICK_CURRENT);
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
@ -160,9 +156,7 @@ int board_boot_image(FAR const char *path, uint32_t hdr_size)
|
||||
return bytes < 0 ? bytes : -1;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ARMV7M_SYSTICK
|
||||
systick_disable();
|
||||
#endif
|
||||
|
||||
cleanup_arm_nvic();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user