diff options
| author | Dave Hylands <dhylands@gmail.com> | 2014-07-14 22:19:27 -0700 |
|---|---|---|
| committer | Dave Hylands <dhylands@gmail.com> | 2014-07-14 22:19:27 -0700 |
| commit | 4d9dd26818547e252768d62bf3e319c6f1ca7b7f (patch) | |
| tree | 6dff510e9be2f025fad7f8ef0ee0fd3371266e9d /teensy/modpyb.c | |
| parent | dce8876dbe272d34d8d28aac21b4a4c3bdea0317 (diff) | |
Fix teensy to build on latest tree.
Put #include of mpconfig.h before misc.h
Replace uses of ARRAY_SIZE with MP_ARRAY_SIZE
Diffstat (limited to 'teensy/modpyb.c')
| -rw-r--r-- | teensy/modpyb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/teensy/modpyb.c b/teensy/modpyb.c index 435b198d0..64b9bda2d 100644 --- a/teensy/modpyb.c +++ b/teensy/modpyb.c @@ -29,8 +29,8 @@ #include <mk20dx128.h> #include "Arduino.h" -#include "misc.h" #include "mpconfig.h" +#include "misc.h" #include "teensy_hal.h" @@ -328,8 +328,8 @@ STATIC const mp_obj_dict_t pyb_module_globals = { .map = { .all_keys_are_qstrs = 1, .table_is_fixed_array = 1, - .used = ARRAY_SIZE(pyb_module_globals_table), - .alloc = ARRAY_SIZE(pyb_module_globals_table), + .used = MP_ARRAY_SIZE(pyb_module_globals_table), + .alloc = MP_ARRAY_SIZE(pyb_module_globals_table), .table = (mp_map_elem_t*)pyb_module_globals_table, }, }; |
