summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/servo.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-10-18 11:06:20 +1100
committerDamien George <damien.p.george@gmail.com>2016-10-21 16:26:01 +1100
commit4ebdb1f2b217410cdc1cee0e0c0da8fceb7627f2 (patch)
treed6188cf8f6579ffa66b8370032b8184a901a5312 /stmhal/servo.h
parent5d0735b93a52ff7f2f41dd27f3a22ca847f6b49b (diff)
downloadmicropython-4ebdb1f2b217410cdc1cee0e0c0da8fceb7627f2.tar.gz
micropython-4ebdb1f2b217410cdc1cee0e0c0da8fceb7627f2.zip
py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros.
In order to have more fine-grained control over how builtin functions are constructed, the MP_DECLARE_CONST_FUN_OBJ macros are made more specific, with suffix of _0, _1, _2, _3, _VAR, _VAR_BETEEN or _KW. These names now match the MP_DEFINE_CONST_FUN_OBJ macros.
Diffstat (limited to 'stmhal/servo.h')
-rw-r--r--stmhal/servo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/servo.h b/stmhal/servo.h
index 121ce922df..0fca8fea17 100644
--- a/stmhal/servo.h
+++ b/stmhal/servo.h
@@ -29,5 +29,5 @@ void servo_timer_irq_callback(void);
extern const mp_obj_type_t pyb_servo_type;
-MP_DECLARE_CONST_FUN_OBJ(pyb_servo_set_obj);
-MP_DECLARE_CONST_FUN_OBJ(pyb_pwm_set_obj);
+MP_DECLARE_CONST_FUN_OBJ_2(pyb_servo_set_obj);
+MP_DECLARE_CONST_FUN_OBJ_2(pyb_pwm_set_obj);