summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modpyb.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-04-28 12:23:55 +0100
committerDamien George <damien.p.george@gmail.com>2016-04-28 12:23:55 +0100
commita6aa35af09584bdf5d52275e0d9703ca4fec4231 (patch)
treeda7d4fed0aae19e6dcb0d83a1414769495722d45 /esp8266/modpyb.h
parent3c2e40b008e2f4818553a29e3d8f3d679fe00a43 (diff)
downloadmicropython-a6aa35af09584bdf5d52275e0d9703ca4fec4231.tar.gz
micropython-a6aa35af09584bdf5d52275e0d9703ca4fec4231.zip
esp8266: Move pyb.info() function to esp module and remove pyb module.
All functionality of the pyb module is available in other modules, like time, machine and os. The only outstanding function, info(), is (temporarily) moved to the esp module and the pyb module is removed.
Diffstat (limited to 'esp8266/modpyb.h')
-rw-r--r--esp8266/modpyb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/esp8266/modpyb.h b/esp8266/modpyb.h
index c1a0413f04..dc399ad819 100644
--- a/esp8266/modpyb.h
+++ b/esp8266/modpyb.h
@@ -11,6 +11,8 @@ extern const mp_obj_type_t pyb_uart_type;
extern const mp_obj_type_t pyb_i2c_type;
extern const mp_obj_type_t pyb_spi_type;
+MP_DECLARE_CONST_FUN_OBJ(pyb_info_obj);
+
typedef struct _pyb_pin_obj_t {
mp_obj_base_t base;
uint16_t phys_port;