summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/mods/modpyb.c
diff options
context:
space:
mode:
authordanicampora <danicampora@gmail.com>2015-02-09 19:38:02 +0100
committerdanicampora <danicampora@gmail.com>2015-02-09 20:01:54 +0100
commit53716fcc3effbce1b7cca49d8df30ecaad8bc1dc (patch)
tree2c3894d6d1ee74bb18bb8226908f9b07a44a8240 /cc3200/mods/modpyb.c
parentd0df10b2c6192449747280e91ca56a185398288d (diff)
downloadmicropython-53716fcc3effbce1b7cca49d8df30ecaad8bc1dc.tar.gz
micropython-53716fcc3effbce1b7cca49d8df30ecaad8bc1dc.zip
cc3200: Rename GPIO module to Pin.
This change helps making the cc3200 port API a bit closer to stmhal. The ramaining differences are due to the specific hardware details of each chip. One feature that has been deliberately disabled is the possibility to add custom names and custom pin mappings. Those features are nice and convenient, but in this port, code size is a major concern.
Diffstat (limited to 'cc3200/mods/modpyb.c')
-rw-r--r--cc3200/mods/modpyb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc3200/mods/modpyb.c b/cc3200/mods/modpyb.c
index f17d6a257e..fe6ccc561e 100644
--- a/cc3200/mods/modpyb.c
+++ b/cc3200/mods/modpyb.c
@@ -47,7 +47,7 @@
#include "prcm.h"
#include "pyexec.h"
#include "pybuart.h"
-#include "pybgpio.h"
+#include "pybpin.h"
#include "pybstdio.h"
#include "pybrtc.h"
#include "pybsystick.h"
@@ -303,7 +303,7 @@ STATIC const mp_map_elem_t pyb_module_globals_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_RTC), (mp_obj_t)&pyb_rtc_type },
#endif
- { MP_OBJ_NEW_QSTR(MP_QSTR_GPIO), (mp_obj_t)&gpio_type },
+ { MP_OBJ_NEW_QSTR(MP_QSTR_Pin), (mp_obj_t)&pin_type },
{ MP_OBJ_NEW_QSTR(MP_QSTR_ExtInt), (mp_obj_t)&extint_type },
{ MP_OBJ_NEW_QSTR(MP_QSTR_UART), (mp_obj_t)&pyb_uart_type },