Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/P-NUCLEO-WB55.Nucleo/Applications/USB_Device/DFU_Standalone/Core/Src/system_stm32wbxx.c')
-rw-r--r--Projects/P-NUCLEO-WB55.Nucleo/Applications/USB_Device/DFU_Standalone/Core/Src/system_stm32wbxx.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Applications/USB_Device/DFU_Standalone/Core/Src/system_stm32wbxx.c b/Projects/P-NUCLEO-WB55.Nucleo/Applications/USB_Device/DFU_Standalone/Core/Src/system_stm32wbxx.c
index f1d3f0db4..706ee9182 100644
--- a/Projects/P-NUCLEO-WB55.Nucleo/Applications/USB_Device/DFU_Standalone/Core/Src/system_stm32wbxx.c
+++ b/Projects/P-NUCLEO-WB55.Nucleo/Applications/USB_Device/DFU_Standalone/Core/Src/system_stm32wbxx.c
@@ -123,21 +123,12 @@
/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
-#ifdef CORE_CM0PLUS
-/* #define VECT_TAB_SRAM */
-#define VECT_TAB_OFFSET 0x0U /*!< Vector Table base offset field.
- This value must be a multiple of 0x100. */
-
-#define VECT_TAB_BASE_ADDRESS SRAM2A_BASE /*!< Vector Table base address field.
- This value must be a multiple of 0x100. */
-#else
/* #define VECT_TAB_SRAM */
#define VECT_TAB_OFFSET 0x0U /*!< Vector Table base offset field.
This value must be a multiple of 0x200. */
#define VECT_TAB_BASE_ADDRESS SRAM1_BASE /*!< Vector Table base offset field.
This value must be a multiple of 0x200. */
-#endif
/**
* @}
*/
@@ -201,22 +192,12 @@
void SystemInit(void)
{
/* Configure the Vector Table location add offset address ------------------*/
-#ifdef CORE_CM0PLUS
-#if defined(VECT_TAB_SRAM) && defined(VECT_TAB_BASE_ADDRESS)
- /* program in SRAMx */
- SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAMx for CPU2 */
-#else
- /* program in FLASH */
- SCB->VTOR = VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
-#endif /* Program memory type */
-#else
#if defined(VECT_TAB_SRAM) && defined(VECT_TAB_BASE_ADDRESS)
/* program in SRAMx */
SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAMx for CPU1 */
#else /* program in FLASH */
SCB->VTOR = VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
#endif
-#endif
/* FPU settings ------------------------------------------------------------*/
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
@@ -355,14 +336,8 @@ void SystemCoreClockUpdate(void)
}
/* Compute HCLK clock frequency --------------------------------------------*/
-#ifdef CORE_CM0PLUS
- /* Get HCLK2 prescaler */
- tmp = AHBPrescTable[((RCC->EXTCFGR & RCC_EXTCFGR_C2HPRE) >> RCC_EXTCFGR_C2HPRE_Pos)];
-
-#else
/* Get HCLK1 prescaler */
tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos)];
-#endif
/* HCLK clock frequency */
SystemCoreClock = SystemCoreClock / tmp;