summaryrefslogtreecommitdiff
path: root/ports/stm32/timer.c
diff options
context:
space:
mode:
authorchuangjinglu <chuangjinglu@outlook.com>2024-11-25 11:06:15 +0800
committerDamien George <damien@micropython.org>2024-11-30 13:08:33 +1100
commit2e796d6c3e33e2d3b1936cd05aa926400ad1d5b7 (patch)
treed8da1231caa87036fe1724640efa1efb2e74538b /ports/stm32/timer.c
parent3de3821abf7e245566be227c9799b74d6b80aae3 (diff)
docs,ports: Fix some comments and error messages with doubled-up words.
Signed-off-by: chuangjinglu <chuangjinglu@outlook.com>
Diffstat (limited to 'ports/stm32/timer.c')
-rw-r--r--ports/stm32/timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/timer.c b/ports/stm32/timer.c
index d999e5746..acfdbd84e 100644
--- a/ports/stm32/timer.c
+++ b/ports/stm32/timer.c
@@ -1089,7 +1089,7 @@ static MP_DEFINE_CONST_FUN_OBJ_1(pyb_timer_deinit_obj, pyb_timer_deinit);
/// - `callback` - as per TimerChannel.callback()
///
/// - `pin` None (the default) or a Pin object. If specified (and not None)
-/// this will cause the alternate function of the the indicated pin
+/// this will cause the alternate function of the indicated pin
/// to be configured for this timer channel. An error will be raised if
/// the pin doesn't support any alternate functions for this timer channel.
///
@@ -1197,7 +1197,7 @@ static mp_obj_t pyb_timer_channel(size_t n_args, const mp_obj_t *pos_args, mp_ma
mp_obj_t pin_obj = args[2].u_obj;
if (pin_obj != mp_const_none) {
if (!mp_obj_is_type(pin_obj, &pin_type)) {
- mp_raise_ValueError(MP_ERROR_TEXT("pin argument needs to be be a Pin type"));
+ mp_raise_ValueError(MP_ERROR_TEXT("pin argument needs to be a Pin type"));
}
const machine_pin_obj_t *pin = MP_OBJ_TO_PTR(pin_obj);
const pin_af_obj_t *af = pin_find_af(pin, AF_FN_TIM, self->tim_id);