From 7c302c395ec699738bade269673c06a38cbedbff Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Thu, 5 Jan 2017 16:20:46 -0800 Subject: Improve docs and update to CircuitPython. --- shared-bindings/microcontroller/__init__.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'shared-bindings/microcontroller') diff --git a/shared-bindings/microcontroller/__init__.c b/shared-bindings/microcontroller/__init__.c index 031bfe35c..214436687 100644 --- a/shared-bindings/microcontroller/__init__.c +++ b/shared-bindings/microcontroller/__init__.c @@ -43,7 +43,7 @@ //| //| .. module:: microcontroller //| :synopsis: Pin references and core functionality -//| :platform: SAMD21 +//| :platform: SAMD21, ESP8266 //| //| The `microcontroller` module defines the pins from the perspective of the //| microcontroller. See `board` for board-specific pin mappings. @@ -56,10 +56,10 @@ //| Pin //| -//| .. method:: delay_us(delay) +//| .. method:: delay_us(delay) //| -//| Dedicated delay method used for very short delays. DO NOT do long delays -//| because it will stall any concurrent code. +//| Dedicated delay method used for very short delays. DO NOT do long delays +//| because it will stall any concurrent code. //| STATIC mp_obj_t mcu_delay_us(mp_obj_t delay_obj) { uint32_t delay = mp_obj_get_int(delay_obj); @@ -70,9 +70,9 @@ STATIC mp_obj_t mcu_delay_us(mp_obj_t delay_obj) { } STATIC MP_DEFINE_CONST_FUN_OBJ_1(mcu_delay_us_obj, mcu_delay_us); -//| .. method:: disable_interrupts() +//| .. method:: disable_interrupts() //| -//| Disable all interrupts. Be very careful, this can stall everything. +//| Disable all interrupts. Be very careful, this can stall everything. //| STATIC mp_obj_t mcu_disable_interrupts(void) { common_hal_mcu_disable_interrupts(); @@ -80,9 +80,9 @@ STATIC mp_obj_t mcu_disable_interrupts(void) { } STATIC MP_DEFINE_CONST_FUN_OBJ_0(mcu_disable_interrupts_obj, mcu_disable_interrupts); -//| .. method:: enable_interrupts() +//| .. method:: enable_interrupts() //| -//| Enable the interrupts that were enabled at the last disable. +//| Enable the interrupts that were enabled at the last disable. //| STATIC mp_obj_t mcu_enable_interrupts(void) { common_hal_mcu_enable_interrupts(); -- cgit v1.2.3