mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
boards/ucleo-h743zi: Remove CONFIG_ARMV7M_SYSTICK from stm32_boot_image.c
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
7dbaa4f4c4
commit
78fcc6670d
@@ -57,9 +57,7 @@ struct arm_vector_table
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static void cleanup_arm_nvic(void);
|
static void cleanup_arm_nvic(void);
|
||||||
#ifdef CONFIG_ARMV7M_SYSTICK
|
|
||||||
static void systick_disable(void);
|
static void systick_disable(void);
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
@@ -103,7 +101,6 @@ static void cleanup_arm_nvic(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_ARMV7M_SYSTICK
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: systick_disable
|
* Name: systick_disable
|
||||||
*
|
*
|
||||||
@@ -124,7 +121,6 @@ static void systick_disable(void)
|
|||||||
putreg32(NVIC_SYSTICK_RELOAD_MASK, NVIC_SYSTICK_RELOAD);
|
putreg32(NVIC_SYSTICK_RELOAD_MASK, NVIC_SYSTICK_RELOAD);
|
||||||
putreg32(0, NVIC_SYSTICK_CURRENT);
|
putreg32(0, NVIC_SYSTICK_CURRENT);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
@@ -158,9 +154,7 @@ int board_boot_image(FAR const char *path, uint32_t hdr_size)
|
|||||||
return bytes < 0 ? bytes : -1;
|
return bytes < 0 ? bytes : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_ARMV7M_SYSTICK
|
|
||||||
systick_disable();
|
systick_disable();
|
||||||
#endif
|
|
||||||
|
|
||||||
cleanup_arm_nvic();
|
cleanup_arm_nvic();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user