[riot-notifications] [RIOT] kinetis: Add LPM implementation (#2605)

Johann Fischer notifications at github.com
Fri Jun 26 00:50:14 CEST 2015


> +    /* WFI instruction will start entry into WAIT mode */
> +    __WFI();
> +}
> +
> +/**
> + * @brief Switch the CPU into a STOP mode
> + *
> + * @param[in] stopmode     The chosen STOP mode
> + *
> + * @see Kinetis CPU reference manual, chapter System Mode Controller, Power Mode
> + * Control register (SMC_PMCTRL), field STOPM
> + */
> +static inline void stop(uint8_t stopmode)
> +{
> +    volatile uint8_t dummy;
> +    /* Set the SLEEPDEEP bit to enable deep sleep modes (STOP) */

the function is over-commented, /* wait for outstanding writes and go into STOP (deep sleep) mode */ is enough.

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/2605/files#r33313675
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150625/420337a6/attachment.html>


More information about the notifications mailing list