summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/mods/pybspi.c
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-09-27 13:45:48 +0200
committerDaniel Campora <daniel@wipy.io>2015-09-27 16:50:27 +0200
commitc92e6a45ebba4d41c2d0d891e07f94a81d2f601f (patch)
treee861f7bfb70147d7a648cefc4c47c4b8e682f52d /cc3200/mods/pybspi.c
parent0a7e4fa5cee7dcb6ce060bef37d4eae5e6f06503 (diff)
downloadmicropython-c92e6a45ebba4d41c2d0d891e07f94a81d2f601f.tar.gz
micropython-c92e6a45ebba4d41c2d0d891e07f94a81d2f601f.zip
cc3200: Rename pyb module to machine.
Diffstat (limited to 'cc3200/mods/pybspi.c')
-rw-r--r--cc3200/mods/pybspi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc3200/mods/pybspi.c b/cc3200/mods/pybspi.c
index a248cfcff7..ed3abf5888 100644
--- a/cc3200/mods/pybspi.c
+++ b/cc3200/mods/pybspi.c
@@ -214,7 +214,7 @@ STATIC mp_obj_t pyb_spi_init_helper(pyb_spi_obj_t *self, const mp_arg_val_t *arg
pybspi_init((const pyb_spi_obj_t *)self);
// register it with the sleep module
- pybsleep_add((const mp_obj_t)self, (WakeUpCB_t)pybspi_init);
+ pyb_sleep_add((const mp_obj_t)self, (WakeUpCB_t)pybspi_init);
return mp_const_none;
@@ -271,7 +271,7 @@ STATIC mp_obj_t pyb_spi_deinit(mp_obj_t self_in) {
// invalidate the baudrate
pyb_spi_obj.baudrate = 0;
// unregister it with the sleep module
- pybsleep_remove((const mp_obj_t)self_in);
+ pyb_sleep_remove((const mp_obj_t)self_in);
return mp_const_none;
}
STATIC MP_DEFINE_CONST_FUN_OBJ_1(pyb_spi_deinit_obj, pyb_spi_deinit);