diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-22 15:52:33 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-22 15:52:33 +0000 |
commit | 626f6b813375a2a67d110cf8f240fe829d5887e4 (patch) | |
tree | 384376761bf402b3a399e4bab83be22e9f87d341 /stmhal/pybmodule.c | |
parent | d311655655b72fcb898a8d35bfe926a9adb1bebd (diff) |
stmhal: Add servo driver.
Diffstat (limited to 'stmhal/pybmodule.c')
-rw-r--r-- | stmhal/pybmodule.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/stmhal/pybmodule.c b/stmhal/pybmodule.c index afb3b2e60..09cdf83b8 100644 --- a/stmhal/pybmodule.c +++ b/stmhal/pybmodule.c @@ -23,8 +23,8 @@ #include "storage.h" #include "sdcard.h" #include "accel.h" -#if 0 #include "servo.h" +#if 0 #include "usb.h" #include "i2c.h" #include "adc.h" @@ -231,13 +231,11 @@ STATIC const mp_map_elem_t pyb_module_globals_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR_rtc_info), (mp_obj_t)&pyb_rtc_info_obj }, #endif -#if 0 #if MICROPY_HW_ENABLE_SERVO { MP_OBJ_NEW_QSTR(MP_QSTR_pwm), (mp_obj_t)&pyb_pwm_set_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_servo), (mp_obj_t)&pyb_servo_set_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_Servo), (mp_obj_t)&pyb_Servo_obj }, #endif -#endif #if MICROPY_HW_HAS_SWITCH { MP_OBJ_NEW_QSTR(MP_QSTR_switch), (mp_obj_t)&pyb_switch_obj }, |