{"action":"created","issue":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2605","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2605/labels{/name}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2605/comments","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2605/events","html_url":"https://github.com/RIOT-OS/RIOT/pull/2605","id":62011730,"number":2605,"title":"kinetis: Add LPM implementation","user":{"login":"gebart","id":317506,"avatar_url":"https://avatars.githubusercontent.com/u/317506?v=3","gravatar_id":"","url":"https://api.github.com/users/gebart","html_url":"https://github.com/gebart","followers_url":"https://api.github.com/users/gebart/followers","following_url":"https://api.github.com/users/gebart/following{/other_user}","gists_url":"https://api.github.com/users/gebart/gists{/gist_id}","starred_url":"https://api.github.com/users/gebart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gebart/subscriptions","organizations_url":"https://api.github.com/users/gebart/orgs","repos_url":"https://api.github.com/users/gebart/repos","events_url":"https://api.github.com/users/gebart/events{/privacy}","received_events_url":"https://api.github.com/users/gebart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/arm","name":"arm","color":"dddddd"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/enhancement","name":"enhancement","color":"f17070"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/NEEDS%20SQUASHING","name":"NEEDS SQUASHING","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"jfischer-phytec-iot","id":9864546,"avatar_url":"https://avatars.githubusercontent.com/u/9864546?v=3","gravatar_id":"","url":"https://api.github.com/users/jfischer-phytec-iot","html_url":"https://github.com/jfischer-phytec-iot","followers_url":"https://api.github.com/users/jfischer-phytec-iot/followers","following_url":"https://api.github.com/users/jfischer-phytec-iot/following{/other_user}","gists_url":"https://api.github.com/users/jfischer-phytec-iot/gists{/gist_id}","starred_url":"https://api.github.com/users/jfischer-phytec-iot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfischer-phytec-iot/subscriptions","organizations_url":"https://api.github.com/users/jfischer-phytec-iot/orgs","repos_url":"https://api.github.com/users/jfischer-phytec-iot/repos","events_url":"https://api.github.com/users/jfischer-phytec-iot/events{/privacy}","received_events_url":"https://api.github.com/users/jfischer-phytec-iot/received_events","type":"User","site_admin":false},"milestone":null,"comments":16,"created_at":"2015-03-16T08:43:09Z","updated_at":"2015-07-03T08:37:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2605","html_url":"https://github.com/RIOT-OS/RIOT/pull/2605","diff_url":"https://github.com/RIOT-OS/RIOT/pull/2605.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/2605.patch"},"body":"~~This PR depends on the atomic counters in #2321~~ - merged\r\n\r\nAdd support for Kinetis power modes: WAIT, STOP, VLPS, LLS.\r\n\r\nAlso included is a refactoring of the UART driver to allow low power modes while still being responsive to RX bytes and prevent deep sleep modes when the last TX byte has not yet been transmitted on the line. This requires using TX interrupts to detect when a transmission is done.\r\n\r\nThe deepest possible hardware sleep mode will be dynamically selected when lpm_set(LPM_IDLE).\r\n\r\nMissing power modes: \r\n - VLLSx (requires substantial work in the startup code)\r\n - VLPW, VLPR (needs some updates in the bus drivers to reconfigure bus speeds for low power mode)\r\n\r\nTested on:\r\n - k60/mulle"},"comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments/118277342","html_url":"https://github.com/RIOT-OS/RIOT/pull/2605#issuecomment-118277342","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2605","id":118277342,"user":{"login":"jfischer-phytec-iot","id":9864546,"avatar_url":"https://avatars.githubusercontent.com/u/9864546?v=3","gravatar_id":"","url":"https://api.github.com/users/jfischer-phytec-iot","html_url":"https://github.com/jfischer-phytec-iot","followers_url":"https://api.github.com/users/jfischer-phytec-iot/followers","following_url":"https://api.github.com/users/jfischer-phytec-iot/following{/other_user}","gists_url":"https://api.github.com/users/jfischer-phytec-iot/gists{/gist_id}","starred_url":"https://api.github.com/users/jfischer-phytec-iot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfischer-phytec-iot/subscriptions","organizations_url":"https://api.github.com/users/jfischer-phytec-iot/orgs","repos_url":"https://api.github.com/users/jfischer-phytec-iot/repos","events_url":"https://api.github.com/users/jfischer-phytec-iot/events{/privacy}","received_events_url":"https://api.github.com/users/jfischer-phytec-iot/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T08:37:37Z","updated_at":"2015-07-03T08:37:37Z","body":"> Do you have an idea of which of the defines and enums should be moved to kinetis_common?\r\n\r\nAs far as I can see, the following bit fields are identical:\r\n+ STOP mode bitfield values\r\n+ RUN mode bitfield values\r\n+ LLWU wake up sources (module and pins)\r\n+ VLLS Mode Control"}}