diff options
author | Damien George <damien.p.george@gmail.com> | 2015-10-30 23:03:58 +0000 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-10-31 19:14:30 +0300 |
commit | 731f359292c0e2630873df1a19c5baac7287024f (patch) | |
tree | 3aef09fd15b82baa9fff7c72fe3bc7e05a869614 /pic16bit/main.c | |
parent | 0bd3f3291d3ea0252a91653a1edcbfa83d524834 (diff) |
all: Add py/mphal.h and use it in all ports.
py/mphal.h contains declarations for generic mp_hal_XXX functions, such
as stdio and delay/ticks, which ports should provide definitions for. A
port will also provide mphalport.h with further HAL declarations.
Diffstat (limited to 'pic16bit/main.c')
-rw-r--r-- | pic16bit/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pic16bit/main.c b/pic16bit/main.c index 9b993fda9..ad6f9e364 100644 --- a/pic16bit/main.c +++ b/pic16bit/main.c @@ -32,9 +32,9 @@ #include "py/compile.h" #include "py/runtime.h" #include "py/gc.h" +#include "py/mphal.h" #include "pyexec.h" #include "readline.h" -#include MICROPY_HAL_H #include "board.h" #include "modpyb.h" @@ -59,7 +59,7 @@ soft_reset: led_state(1, 0); led_state(2, 0); led_state(3, 1); - mp_hal_milli_delay(150); + mp_hal_delay_ms(150); led_state(3, 0); // init MicroPython runtime |