You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/09/16 08:19:45 UTC

[incubator-nuttx] branch master updated: boards/ucleo-h743zi: Remove CONFIG_ARMV7M_SYSTICK from stm32_boot_image.c

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 78fcc6670d boards/ucleo-h743zi: Remove CONFIG_ARMV7M_SYSTICK from stm32_boot_image.c
78fcc6670d is described below

commit 78fcc6670d1e41b8554f9019b2a84d58641dc14a
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Thu Sep 15 22:25:59 2022 +0800

    boards/ucleo-h743zi: Remove CONFIG_ARMV7M_SYSTICK from stm32_boot_image.c
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 boards/arm/stm32h7/nucleo-h743zi/src/stm32_boot_image.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_boot_image.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_boot_image.c
index e8c99f3c72..54ec29045f 100644
--- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_boot_image.c
+++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_boot_image.c
@@ -57,9 +57,7 @@ struct arm_vector_table
  ****************************************************************************/
 
 static void cleanup_arm_nvic(void);
-#ifdef CONFIG_ARMV7M_SYSTICK
 static void systick_disable(void);
-#endif
 
 /****************************************************************************
  * Private Functions
@@ -103,7 +101,6 @@ static void cleanup_arm_nvic(void)
     }
 }
 
-#ifdef CONFIG_ARMV7M_SYSTICK
 /****************************************************************************
  * Name:  systick_disable
  *
@@ -124,7 +121,6 @@ static void systick_disable(void)
   putreg32(NVIC_SYSTICK_RELOAD_MASK, NVIC_SYSTICK_RELOAD);
   putreg32(0, NVIC_SYSTICK_CURRENT);
 }
-#endif
 
 /****************************************************************************
  * Public Functions
@@ -158,9 +154,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();