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

Johann Fischer notifications at github.com
Fri Jun 26 00:43:41 CEST 2015


> + */
> +
> +#include "cpu.h"
> +#include "arch/lpm_arch.h"
> +#include "kinetis_lpm.h"
> +
> +/*
> + * Counting semaphores for inhibiting undesired power modes.
> + */
> +atomic_int_t kinetis_lpm_inhibit_stop_sema = {0};
> +atomic_int_t kinetis_lpm_inhibit_vlps_sema = {0};
> +atomic_int_t kinetis_lpm_inhibit_lls_sema  = {0};
> +
> +static inline void wait(void)
> +{
> +    /* Clear the SLEEPDEEP bit to make sure we go into WAIT (sleep) mode instead

over-commented,  /* wait for outstanding writes and go into WAIT (sleep) mode */ is suffiecient
There are 6 lines of comments and 3 lines of plain code :-)

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


More information about the notifications mailing list