Skip to content

Commit 1f735c4

Browse files
committed
fix whitespace and register name typo
1 parent be68e88 commit 1f735c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

portable/GCC/ARM_CM4F/port.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ configuration register. */
103103
#define portNVIC_SYSTICK_CLK_BIT_SETTING ( portNVIC_SYSTICK_CLK_BIT )
104104
#else
105105
/* Select the option to clock SysTick not at the same frequency as the core.
106-
The clock used is often a divided version of the core clock. */
106+
The clock used is often a divided version of the core clock. */
107107
#define portNVIC_SYSTICK_CLK_BIT_SETTING ( 0 )
108108
#endif
109109

@@ -680,7 +680,7 @@ void xPortSysTickHandler( void )
680680
portNVIC_SYSTICK_CTRL_REG = portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT;
681681
#if( portNVIC_SYSTICK_CLK_BIT_SETTING != portNVIC_SYSTICK_CLK_BIT )
682682
{
683-
portNVIC_SYSTICK_LOAD_REG = portNVIC_SYSTICK_CLK_BIT_SETTING | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT;
683+
portNVIC_SYSTICK_CTRL_REG = portNVIC_SYSTICK_CLK_BIT_SETTING | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT;
684684
}
685685
#endif /* portNVIC_SYSTICK_CLK_BIT_SETTING */
686686
portNVIC_SYSTICK_LOAD_REG = ulTimerCountsForOneTick - 1UL;

0 commit comments

Comments
 (0)