cc3200: Improve callback API.

Rename "wakes" param to "wake_from" and make "value" an object
instead of an integer.
This commit is contained in:
Daniel Campora
2015-08-11 11:18:02 +02:00
parent 4c5bfe2d10
commit ea5061e409
13 changed files with 46 additions and 38 deletions

View File

@@ -90,12 +90,12 @@ Methods
.. only:: port_wipy
.. method:: rtc.callback(\*, value, handler=None, wakes=pyb.Sleep.ACTIVE)
.. method:: rtc.callback(\*, value, handler=None, wake_from=pyb.Sleep.ACTIVE)
Create a callback object triggered by a real time clock alarm.
- ``value`` is the alarm timeout in milliseconds. This parameter is required.
- ``handler`` is the function to be called when the callback is triggered.
- ``wakes`` specifies the power mode from where this interrupt can wake
- ``wake_from`` specifies the power mode from where this interrupt can wake
up the system.