aboutsummaryrefslogtreecommitdiff
path: root/examples/other/systick/systick.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/other/systick/systick.c')
-rw-r--r--examples/other/systick/systick.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/other/systick/systick.c b/examples/other/systick/systick.c
index 329218b..68120d2 100644
--- a/examples/other/systick/systick.c
+++ b/examples/other/systick/systick.c
@@ -28,7 +28,7 @@ u32 temp32;
void gpio_setup(void)
{
/* Enable GPIOB clock. */
- rcc_peripheral_enable_clock(&RCC_APB2ENR, IOPBEN);
+ rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPBEN);
/* Set GPIO6/7 (in GPIO port B) to 'output push-pull' for the LEDs. */
gpio_set_mode(GPIOB, GPIO_MODE_OUTPUT_2_MHZ,