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/led.c | |
parent | dce8876dbe272d34d8d28aac21b4a4c3bdea0317 (diff) | |
download | micropython-4d9dd26818547e252768d62bf3e319c6f1ca7b7f.tar.gz micropython-4d9dd26818547e252768d62bf3e319c6f1ca7b7f.zip |
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/led.c')
-rw-r--r-- | teensy/led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/teensy/led.c b/teensy/led.c index 999ca98071..2f6e8d6301 100644 --- a/teensy/led.c +++ b/teensy/led.c @@ -31,7 +31,7 @@ STATIC const pyb_led_obj_t pyb_led_obj[] = { #endif #endif }; -#define NUM_LEDS ARRAY_SIZE(pyb_led_obj) +#define NUM_LEDS MP_ARRAY_SIZE(pyb_led_obj) void led_init(void) { /* GPIO structure */ |