stm32: morse timer: remove WFI where not critical

__WFI is not standardized, though often provided.  As it's not a core
part of this example, drop it.
This commit is contained in:
Karl Palsson
2016-12-17 00:24:36 +00:00
parent 9af2b8c7fb
commit c03b580722
2 changed files with 2 additions and 20 deletions

View File

@@ -21,7 +21,6 @@
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/timer.h>
#include <libopencmsis/core_cm3.h>
#ifndef ARRAY_LEN
#define ARRAY_LEN(array) (sizeof((array))/sizeof((array)[0]))
@@ -157,16 +156,8 @@ int main(void)
gpio_setup();
tim_setup();
/* Loop calling Wait For Interrupt. In older pre cortex ARM this is
* just equivalent to nop. On cortex it puts the cpu to sleep until
* one of the three occurs:
*
* a non-masked interrupt occurs and is taken
* an interrupt masked by PRIMASK becomes pending
* a Debug Entry request
*/
while (1) {
__WFI(); /* Wait For Interrupt. */
;
}
return 0;

View File

@@ -22,7 +22,6 @@
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/timer.h>
#include <libopencmsis/core_cm3.h>
#ifndef ARRAY_LEN
#define ARRAY_LEN(array) (sizeof((array))/sizeof((array)[0]))
@@ -157,16 +156,8 @@ int main(void)
gpio_setup();
tim_setup();
/* Loop calling Wait For Interrupt. In older pre cortex ARM this is
* just equivalent to nop. On cortex it puts the cpu to sleep until
* one of the three occurs:
*
* a non-masked interrupt occurs and is taken
* an interrupt masked by PRIMASK becomes pending
* a Debug Entry request
*/
while (1) {
__WFI(); /* Wait For Interrupt. */
;
}
return 0;