Browse Source

lib/pyexec: Move header pyexec.h from stmhal directory.

pull/1600/merge
Damien George 9 years ago
parent
commit
40274fec9c
  1. 1
      cc3200/mods/modmachine.c
  2. 2
      cc3200/mptask.c
  3. 2
      esp8266/main.c
  4. 1
      esp8266/modpyb.c
  5. 2
      esp8266/uart.c
  6. 2
      lib/utils/pyexec.c
  7. 4
      lib/utils/pyexec.h
  8. 2
      minimal/main.c
  9. 2
      pic16bit/main.c
  10. 2
      stmhal/main.c
  11. 2
      stmhal/modpyb.c
  12. 2
      teensy/main.c
  13. 3
      teensy/modpyb.c

1
cc3200/mods/modmachine.c

@ -39,7 +39,6 @@
#include "inc/hw_uart.h" #include "inc/hw_uart.h"
#include "rom_map.h" #include "rom_map.h"
#include "prcm.h" #include "prcm.h"
#include "pyexec.h"
#include "pybuart.h" #include "pybuart.h"
#include "pybpin.h" #include "pybpin.h"
#include "pybrtc.h" #include "pybrtc.h"

2
cc3200/mptask.c

@ -43,7 +43,7 @@
#include "pybuart.h" #include "pybuart.h"
#include "pybpin.h" #include "pybpin.h"
#include "pybrtc.h" #include "pybrtc.h"
#include "pyexec.h" #include "lib/utils/pyexec.h"
#include "gccollect.h" #include "gccollect.h"
#include "gchelper.h" #include "gchelper.h"
#include "readline.h" #include "readline.h"

2
esp8266/main.c

@ -35,7 +35,7 @@
#include "py/frozenmod.h" #include "py/frozenmod.h"
#include "py/mphal.h" #include "py/mphal.h"
#include "py/gc.h" #include "py/gc.h"
#include "pyexec.h" #include "lib/utils/pyexec.h"
#include "gccollect.h" #include "gccollect.h"
#include "user_interface.h" #include "user_interface.h"

1
esp8266/modpyb.c

@ -31,7 +31,6 @@
#include "py/gc.h" #include "py/gc.h"
#include "py/mphal.h" #include "py/mphal.h"
#include "gccollect.h" #include "gccollect.h"
#include "pyexec.h"
#include "user_interface.h" #include "user_interface.h"
#include "modpyb.h" #include "modpyb.h"

2
esp8266/uart.c

@ -207,7 +207,7 @@ void ICACHE_FLASH_ATTR uart_reattach() {
// Task-based UART interface // Task-based UART interface
#include "py/obj.h" #include "py/obj.h"
#include "stmhal/pyexec.h" #include "lib/utils/pyexec.h"
void soft_reset(void); void soft_reset(void);

2
lib/utils/pyexec.c

@ -39,7 +39,7 @@
#include "usb.h" #include "usb.h"
#endif #endif
#include "readline.h" #include "readline.h"
#include "pyexec.h" #include "lib/utils/pyexec.h"
#include "genhdr/mpversion.h" #include "genhdr/mpversion.h"
pyexec_mode_kind_t pyexec_mode_kind = PYEXEC_MODE_FRIENDLY_REPL; pyexec_mode_kind_t pyexec_mode_kind = PYEXEC_MODE_FRIENDLY_REPL;

4
stmhal/pyexec.h → lib/utils/pyexec.h

@ -23,6 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef __MICROPY_INCLUDED_LIB_UTILS_PYEXEC_H__
#define __MICROPY_INCLUDED_LIB_UTILS_PYEXEC_H__
typedef enum { typedef enum {
PYEXEC_MODE_RAW_REPL, PYEXEC_MODE_RAW_REPL,
@ -41,3 +43,5 @@ void pyexec_event_repl_init(void);
int pyexec_event_repl_process_char(int c); int pyexec_event_repl_process_char(int c);
MP_DECLARE_CONST_FUN_OBJ(pyb_set_repl_info_obj); MP_DECLARE_CONST_FUN_OBJ(pyb_set_repl_info_obj);
#endif // __MICROPY_INCLUDED_LIB_UTILS_PYEXEC_H__

2
minimal/main.c

@ -7,7 +7,7 @@
#include "py/runtime.h" #include "py/runtime.h"
#include "py/repl.h" #include "py/repl.h"
#include "py/gc.h" #include "py/gc.h"
#include "pyexec.h" #include "lib/utils/pyexec.h"
void do_str(const char *src, mp_parse_input_kind_t input_kind) { void do_str(const char *src, mp_parse_input_kind_t input_kind) {
mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0); mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0);

2
pic16bit/main.c

@ -33,7 +33,7 @@
#include "py/runtime.h" #include "py/runtime.h"
#include "py/gc.h" #include "py/gc.h"
#include "py/mphal.h" #include "py/mphal.h"
#include "pyexec.h" #include "lib/utils/pyexec.h"
#include "readline.h" #include "readline.h"
#include "board.h" #include "board.h"
#include "modpyb.h" #include "modpyb.h"

2
stmhal/main.c

@ -36,13 +36,13 @@
#include "py/gc.h" #include "py/gc.h"
#include "py/mphal.h" #include "py/mphal.h"
#include "lib/utils/pyexec.h"
#include "lib/fatfs/ff.h" #include "lib/fatfs/ff.h"
#include "systick.h" #include "systick.h"
#include "pendsv.h" #include "pendsv.h"
#include "gccollect.h" #include "gccollect.h"
#include "readline.h" #include "readline.h"
#include "pyexec.h"
#include "i2c.h" #include "i2c.h"
#include "spi.h" #include "spi.h"
#include "uart.h" #include "uart.h"

2
stmhal/modpyb.c

@ -33,12 +33,12 @@
#include "py/nlr.h" #include "py/nlr.h"
#include "py/obj.h" #include "py/obj.h"
#include "py/gc.h" #include "py/gc.h"
#include "lib/utils/pyexec.h"
#include "lib/fatfs/ff.h" #include "lib/fatfs/ff.h"
#include "lib/fatfs/diskio.h" #include "lib/fatfs/diskio.h"
#include "gccollect.h" #include "gccollect.h"
#include "irq.h" #include "irq.h"
#include "systick.h" #include "systick.h"
#include "pyexec.h"
#include "led.h" #include "led.h"
#include "pin.h" #include "pin.h"
#include "timer.h" #include "timer.h"

2
teensy/main.c

@ -11,7 +11,7 @@
#include "py/gc.h" #include "py/gc.h"
#include "py/mphal.h" #include "py/mphal.h"
#include "gccollect.h" #include "gccollect.h"
#include "pyexec.h" #include "lib/utils/pyexec.h"
#include "readline.h" #include "readline.h"
#include "lexermemzip.h" #include "lexermemzip.h"

3
teensy/modpyb.c

@ -33,10 +33,11 @@
#include "py/gc.h" #include "py/gc.h"
#include "py/mphal.h" #include "py/mphal.h"
#include "lib/utils/pyexec.h"
#include "gccollect.h" #include "gccollect.h"
#include "irq.h" #include "irq.h"
#include "systick.h" #include "systick.h"
#include "pyexec.h"
#include "led.h" #include "led.h"
#include "pin.h" #include "pin.h"
#include "timer.h" #include "timer.h"

Loading…
Cancel
Save