diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-07-03 13:25:24 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-07-03 13:25:24 +0100 |
| commit | 40f3c026823f8951a2fa04e9c7fc93c75bc27bec (patch) | |
| tree | c9c8210654c7114f00c5234a8481d9b5fbd28ce0 /stmhal/pin.c | |
| parent | 065aba587571150074ea79483ffa72c0fe6bc8c8 (diff) | |
Rename machine_(u)int_t to mp_(u)int_t.
See discussion in issue #50.
Diffstat (limited to 'stmhal/pin.c')
| -rw-r--r-- | stmhal/pin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/pin.c b/stmhal/pin.c index a9ebfa976..56f179f40 100644 --- a/stmhal/pin.c +++ b/stmhal/pin.c @@ -352,7 +352,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(pin_name_obj, pin_name); /// Get the pin port. STATIC mp_obj_t pin_port(mp_obj_t self_in) { pin_obj_t *self = self_in; - return MP_OBJ_NEW_SMALL_INT((mp_small_int_t)self->port); + return MP_OBJ_NEW_SMALL_INT((mp_int_t)self->port); } STATIC MP_DEFINE_CONST_FUN_OBJ_1(pin_port_obj, pin_port); @@ -360,7 +360,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(pin_port_obj, pin_port); /// Get the pin number. STATIC mp_obj_t pin_pin(mp_obj_t self_in) { pin_obj_t *self = self_in; - return MP_OBJ_NEW_SMALL_INT((mp_small_int_t)self->pin); + return MP_OBJ_NEW_SMALL_INT((mp_int_t)self->pin); } STATIC MP_DEFINE_CONST_FUN_OBJ_1(pin_pin_obj, pin_pin); |
