8000 stmhal: Fix typos in class documentation. · hellcoderz/micropython@baa2afb · GitHub
[go: up one dir, main page]

Skip to content

Commit baa2afb

Browse files
committed
stmhal: Fix typos in class documentation.
1 parent 16d58fc commit baa2afb

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

stmhal/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ STATIC mp_obj_t pyb_i2c_send(uint n_args, const mp_obj_t *args, mp_map_t *kw_arg
367367
}
368368
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(pyb_i2c_send_obj, 1, pyb_i2c_send);
369369

370-
/// \method recv(send, addr=0x00, timeout=5000)
370+
/// \method recv(recv, addr=0x00, timeout=5000)
371371
///
372372
/// Receive data on the bus:
373373
///

stmhal/pin.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ STATIC MP_DEFINE_CONST_CLASSMETHOD_OBJ(pin_debug_obj, (mp_obj_t)&pin_debug_fun_o
241241
/// - `Pin.PULL_DOWN` - enable the pull-down resistor.
242242
///
243243
/// Returns: `None`.
244+
// TODO allow keyword args
244245
STATIC mp_obj_t pin_obj_in D8CA it(uint n_args, mp_obj_t *args) {
245246
pin_obj_t *self = args[0];
246247

stmhal/servo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(pyb_servo_pulse_width_obj, 1, 2, pyb_
203203

204204
/// \method calibration([pulse_min, pulse_max, pulse_centre, [pulse_angle_90, pulse_speed_100]])
205205
/// Get or set the calibration of the servo timing.
206+
// TODO should accept 1 arg, a 5-tuple of values to set
206207
STATIC mp_obj_t pyb_servo_calibration(uint n_args, const mp_obj_t *args) {
207208
pyb_servo_obj_t *self = args[0];
208209
if (n_args == 1) {

stmhal/spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ STATIC void pyb_spi_print(void (*print)(void *env, const char *fmt, ...), void *
198198
}
199199
}
200200

201-
/// \method init(mode, baudrate=328125, *, polarity=1, phase=1, bits=8, firstbit=SPI.MSB, ti=false, crc=None)
201+
/// \method init(mode, baudrate=328125, *, polarity=1, phase=1, bits=8, firstbit=SPI.MSB, ti=False, crc=None)
202202
///
203203
/// Initialise the SPI bus with the given parameters:
204204
///

0 commit comments

Comments
 (0)
0