diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-04 20:21:15 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-04 20:21:15 +0000 |
commit | 71c5181a8dfa69ba9f5ca322a3aba0660be2e166 (patch) | |
tree | 77aae5a9008f269276bda9c433235f7e11b57ed4 /stm | |
parent | e9906ac3d771a312b05d76e42aee8e806dd0d128 (diff) | |
download | micropython-71c5181a8dfa69ba9f5ca322a3aba0660be2e166.tar.gz micropython-71c5181a8dfa69ba9f5ca322a3aba0660be2e166.zip |
Convert Python types to proper Python type hierarchy.
Now much more inline with how CPython does types.
Diffstat (limited to 'stm')
-rw-r--r-- | stm/Makefile | 1 | ||||
-rw-r--r-- | stm/i2c.c | 1 | ||||
-rw-r--r-- | stm/led.c | 1 | ||||
-rw-r--r-- | stm/main.c | 1 | ||||
-rw-r--r-- | stm/servo.c | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/stm/Makefile b/stm/Makefile index 729913baee..d75c945bfc 100644 --- a/stm/Makefile +++ b/stm/Makefile @@ -73,6 +73,7 @@ PY_O = \ objfun.o \ objgenerator.o \ objinstance.o \ + objint.o \ objlist.o \ objmodule.o \ objnone.o \ @@ -330,6 +330,7 @@ static const mp_obj_type_t i2c_obj_type = { { &mp_const_type }, "I2C", i2c_obj_print, // print + NULL, // make_new NULL, // call_n NULL, // unary_op NULL, // binary_op @@ -108,6 +108,7 @@ static const mp_obj_type_t led_obj_type = { { &mp_const_type }, "Led", led_obj_print, // print + NULL, // make_new NULL, // call_n NULL, // unary_op NULL, // binary_op diff --git a/stm/main.c b/stm/main.c index b7ae8aacca..0ab44ca8d4 100644 --- a/stm/main.c +++ b/stm/main.c @@ -746,6 +746,7 @@ static const mp_obj_type_t file_obj_type = { { &mp_const_type }, "File", file_obj_print, // print + NULL, // make_new NULL, // call_n NULL, // unary_op NULL, // binary_op diff --git a/stm/servo.c b/stm/servo.c index ae421048b9..1e31db5140 100644 --- a/stm/servo.c +++ b/stm/servo.c @@ -141,6 +141,7 @@ static const mp_obj_type_t servo_obj_type = { { &mp_const_type }, "Servo", servo_obj_print, // print + NULL, // make_new NULL, // call_n NULL, // unary_op NULL, // binary_op |