Skip to content

Commit 1869835

Browse files
committed
system(WB): update the system source file
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 909f3ab commit 1869835

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: system/STM32WBxx/system_stm32wbxx.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,18 @@
152152
*/
153153
uint32_t SystemCoreClock = 4000000UL ; /*CPU1: M4 on MSI clock after startup (4MHz)*/
154154

155-
const uint32_t AHBPrescTable[16UL] = {1UL, 3UL, 5UL, 1UL, 1UL, 6UL, 10UL, 32UL, 2UL, 4UL, 8UL, 16UL, 64UL, 128UL, 256UL, 512UL};
155+
const uint32_t AHBPrescTable[16UL] = {1UL, 3UL, 5UL, 1UL, 1UL, 6UL, 10UL, 32UL, 2UL, 4UL, 8UL, 16UL, 64UL, 128UL, 256UL, 512UL};
156156

157-
const uint32_t APBPrescTable[8UL] = {0UL, 0UL, 0UL, 0UL, 1UL, 2UL, 3UL, 4UL};
157+
const uint32_t APBPrescTable[8UL] = {0UL, 0UL, 0UL, 0UL, 1UL, 2UL, 3UL, 4UL};
158158

159-
const uint32_t MSIRangeTable[16UL] = {100000UL, 200000UL, 400000UL, 800000UL, 1000000UL, 2000000UL, \
159+
const uint32_t MSIRangeTable[16UL] = {100000UL, 200000UL, 400000UL, 800000UL, 1000000UL, 2000000UL, \
160160
4000000UL, 8000000UL, 16000000UL, 24000000UL, 32000000UL, 48000000UL, 0UL, 0UL, 0UL, 0UL}; /* 0UL values are incorrect cases */
161161

162162
#if defined(STM32WB55xx) || defined(STM32WB5Mxx) || defined(STM32WB35xx) || defined (STM32WB15xx) || defined (STM32WB1Mxx)
163-
const uint32_t SmpsPrescalerTable[4UL][6UL]={{1UL,3UL,2UL,2UL,1UL,2UL}, \
164-
{2UL,6UL,4UL,3UL,2UL,4UL}, \
165-
{4UL,12UL,8UL,6UL,4UL,8UL}, \
166-
{4UL,12UL,8UL,6UL,4UL,8UL}};
163+
const uint32_t SmpsPrescalerTable[4UL][6UL] = {{1UL, 3UL, 2UL, 2UL, 1UL, 2UL}, \
164+
{2UL, 6UL, 4UL, 3UL, 2UL, 4UL}, \
165+
{4UL, 12UL, 8UL, 6UL, 4UL, 8UL}, \
166+
{4UL, 12UL, 8UL, 6UL, 4UL, 8UL}};
167167
#endif /* STM32WB55xx || STM32WB5Mxx || STM32WB35xx || STM32WB15xx || STM32WB1Mxx */
168168

169169
/**
@@ -223,7 +223,7 @@ void SystemInit(void)
223223
/* Reset HSEBYP bit */
224224
RCC->CR &= 0xFFFBFFFFU;
225225

226-
/* Disable all interrupts and clar flags */
226+
/* Disable all interrupts and clear flags */
227227
RCC->CIER = 0x00000000U;
228228
#if defined(RCC_CICR_HSI48RDYC)
229229
#if defined(RCC_CICR_PLLSAI1RDYC)

0 commit comments

Comments
 (0)