aboutsummaryrefslogtreecommitdiff
path: root/examples/other/timer_interrupt/timer.c
diff options
context:
space:
mode:
authorThomas Otto2010-05-11 14:50:55 +0200
committerThomas Otto2010-05-11 14:50:55 +0200
commitd08ee7e33315e21d7b1d6ade1cabbcdf4616108c (patch)
tree6d82d8274604a3aadf31d5d3cde02ca8707e365c /examples/other/timer_interrupt/timer.c
parentb2bca1f1a413b3e6b7527445f89d3a802e4bab76 (diff)
Changed examples to new rcc definitions.
Diffstat (limited to 'examples/other/timer_interrupt/timer.c')
-rw-r--r--examples/other/timer_interrupt/timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/other/timer_interrupt/timer.c b/examples/other/timer_interrupt/timer.c
index 5c9791c..d1f2bbb 100644
--- a/examples/other/timer_interrupt/timer.c
+++ b/examples/other/timer_interrupt/timer.c
@@ -26,7 +26,7 @@
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,
@@ -60,7 +60,7 @@ int main(void)
gpio_clear(GPIOB, GPIO7); /* LED1 on */
gpio_set(GPIOB, GPIO6); /* LED2 off */
- rcc_peripheral_enable_clock(&RCC_APB1ENR, TIM2EN);
+ rcc_peripheral_enable_clock(&RCC_APB1ENR, RCC_APB1ENR_TIM2EN);
/* the goal is to let the LED2 glow for a second and then be off for a second */