Skip to content

Commit 0161939

Browse files
committed
zephyr/machine_pin: Use native Zephyr types for Zephyr API calls.
In 1.8, Zephyr made a controversial change of dumping C99 stdint types and switching to its own types.
1 parent 52410ef commit 0161939

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

zephyr/machine_pin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ STATIC mp_obj_t machine_pin_call(mp_obj_t self_in, size_t n_args, size_t n_kw, c
117117
mp_arg_check_num(n_args, n_kw, 0, 1, false);
118118
machine_pin_obj_t *self = self_in;
119119
if (n_args == 0) {
120-
uint32_t pin_val;
120+
u32_t pin_val;
121121
(void)gpio_pin_read(self->port, self->pin, &pin_val);
122122
return MP_OBJ_NEW_SMALL_INT(pin_val);
123123
} else {
@@ -158,7 +158,7 @@ STATIC mp_uint_t machine_pin_ioctl(mp_obj_t self_in, mp_uint_t request, uintptr_
158158

159159
switch (request) {
160160
case MP_PIN_READ: {
161-
uint32_t pin_val;
161+
u32_t pin_val;
162162
gpio_pin_read(self->port, self->pin, &pin_val);
163163
return pin_val;
164164
}

0 commit comments

Comments
 (0)