Skip to content

Commit c18a16d

Browse files
committed
[stm32f429i-discovery] Merge and delete systick blink example.
Added Chucks improvements to the systick example into the ported one.
1 parent 7629bb0 commit c18a16d

File tree

4 files changed

+7
-124
lines changed

4 files changed

+7
-124
lines changed

examples/stm32/f4/stm32f4-disco/systick-blink/Makefile

Lines changed: 0 additions & 22 deletions
This file was deleted.

examples/stm32/f4/stm32f4-disco/systick-blink/README

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/stm32/f4/stm32f4-disco/systick-blink/systick-blink.c

Lines changed: 0 additions & 93 deletions
This file was deleted.

examples/stm32/f4/stm32f429i-discovery/tick_blink/tick_blink.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ static void msleep(uint32_t delay)
4646
while (wake > system_millis);
4747
}
4848

49-
/* Set up a timer to create 1mS ticks. */
49+
/*
50+
* systick_setup(void)
51+
*
52+
* This function sets up the 1khz "system tick" count. The SYSTICK counter is a
53+
* standard feature of the Cortex-M series.
54+
*/
5055
static void systick_setup(void)
5156
{
5257
/* clock rate / 1000 to get 1mS interrupt rate */
@@ -57,7 +62,7 @@ static void systick_setup(void)
5762
systick_interrupt_enable();
5863
}
5964

60-
/* Set STM32 to 168 MHz. */
65+
/* Set STM32 system clock to 168 MHz. */
6166
static void clock_setup(void)
6267
{
6368
rcc_clock_setup_hse_3v3(&hse_8mhz_3v3[CLOCK_3V3_168MHZ]);

0 commit comments

Comments
 (0)