From 5bfffcbb29849bbeb4df2e78b43ca408443196dc Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 9 Feb 2011 02:34:50 +0100 Subject: Use ST STM32VLDISCOVERY board name consistently. --- examples/stm32/stm32-discovery/button/README | 4 +++- examples/stm32/stm32-discovery/button/button.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'examples/stm32/stm32-discovery/button') diff --git a/examples/stm32/stm32-discovery/button/README b/examples/stm32/stm32-discovery/button/README index 3e634d7..38bc1ea 100644 --- a/examples/stm32/stm32-discovery/button/README +++ b/examples/stm32/stm32-discovery/button/README @@ -2,5 +2,7 @@ README ------------------------------------------------------------------------------ -This example blinks the green LED on the discovery. +This example blinks the green LED on the ST STM32VLDISCOVERY eval board. + When you press the 'USER' button, the blinking is slower. + diff --git a/examples/stm32/stm32-discovery/button/button.c b/examples/stm32/stm32-discovery/button/button.c index 086d850..b84f074 100644 --- a/examples/stm32/stm32-discovery/button/button.c +++ b/examples/stm32/stm32-discovery/button/button.c @@ -61,6 +61,7 @@ int main(void) while (1) { gpio_toggle(GPIOC, GPIO9); + /* Upon button press, blink more slowly. */ exti_line_state = GPIOA_IDR; if ((exti_line_state & (1 << 0)) != 0) { for (i = 0; i < 800000; i++) /* Wait a bit. */ -- cgit v1.2.3