And everything is slightly related.
So first question, why on the LPC81x is for example the sleep API missing? Is it simply a matter of lack of time/interest to add it? Because of course not all devices can do the same, but it is nice if as much as possible is common for devices, and the LPC81x can certainly do sleep.
One of the answers on the previous question will be: "You can make it and then do a pull request". Indeed, thats what I did, I made sleep and deepsleep modes for it. Deepsleep needs a bit of polishing, so once that is done I can make a pull request. However I made it in the online compiler. And lets face it, the github mbed library is very active, and to me it looks like pull requests are fast processed. Pull requests on the mbed website are pretty much ignored, probably because you need to manually add it to github. But for someone like me who does use the online compiler, is there an easy way to go from my mbed-src code in the online compiler to a github pull request?
Finally, sleep, and specifically the sleep API. Can more sleep modii be added to the API? Devices do not need to have them implemented, but it allows for more options. Specifically for the LPC81x, deep powerdown is a PITA, however normal powerdown isn't harder than deepsleep, and consumes significantly less power. Or would it then be preferred to just implement powerdown then as deepsleep? So you stick to two sleep states.
And everything is slightly related.
So first question, why on the LPC81x is for example the sleep API missing? Is it simply a matter of lack of time/interest to add it? Because of course not all devices can do the same, but it is nice if as much as possible is common for devices, and the LPC81x can certainly do sleep.
One of the answers on the previous question will be: "You can make it and then do a pull request". Indeed, thats what I did, I made sleep and deepsleep modes for it. Deepsleep needs a bit of polishing, so once that is done I can make a pull request. However I made it in the online compiler. And lets face it, the github mbed library is very active, and to me it looks like pull requests are fast processed. Pull requests on the mbed website are pretty much ignored, probably because you need to manually add it to github. But for someone like me who does use the online compiler, is there an easy way to go from my mbed-src code in the online compiler to a github pull request?
Finally, sleep, and specifically the sleep API. Can more sleep modii be added to the API? Devices do not need to have them implemented, but it allows for more options. Specifically for the LPC81x, deep powerdown is a PITA, however normal powerdown isn't harder than deepsleep, and consumes significantly less power. Or would it then be preferred to just implement powerdown then as deepsleep? So you stick to two sleep states.