Skip to content

Commit 40274fe

Browse files
committed
lib/pyexec: Move header pyexec.h from stmhal directory.
1 parent 50f5622 commit 40274fe

File tree

13 files changed

+15
-12
lines changed

13 files changed

+15
-12
lines changed

cc3200/mods/modmachine.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#include "inc/hw_uart.h"
4040
#include "rom_map.h"
4141
#include "prcm.h"
42-
#include "pyexec.h"
4342
#include "pybuart.h"
4443
#include "pybpin.h"
4544
#include "pybrtc.h"

cc3200/mptask.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#include "pybuart.h"
4444
#include "pybpin.h"
4545
#include "pybrtc.h"
46-
#include "pyexec.h"
46+
#include "lib/utils/pyexec.h"
4747
#include "gccollect.h"
4848
#include "gchelper.h"
4949
#include "readline.h"

esp8266/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "py/frozenmod.h"
3636
#include "py/mphal.h"
3737
#include "py/gc.h"
38-
#include "pyexec.h"
38+
#include "lib/utils/pyexec.h"
3939
#include "gccollect.h"
4040
#include "user_interface.h"
4141

esp8266/modpyb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#include "py/gc.h"
3232
#include "py/mphal.h"
3333
#include "gccollect.h"
34-
#include "pyexec.h"
3534
#include "user_interface.h"
3635
#include "modpyb.h"
3736

esp8266/uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ void ICACHE_FLASH_ATTR uart_reattach() {
207207
// Task-based UART interface
208208

209209
#include "py/obj.h"
210-
#include "stmhal/pyexec.h"
210+
#include "lib/utils/pyexec.h"
211211

212212
void soft_reset(void);
213213

lib/utils/pyexec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include "usb.h"
4040
#endif
4141
#include "readline.h"
42-
#include "pyexec.h"
42+
#include "lib/utils/pyexec.h"
4343
#include "genhdr/mpversion.h"
4444

4545
pyexec_mode_kind_t pyexec_mode_kind = PYEXEC_MODE_FRIENDLY_REPL;

stmhal/pyexec.h renamed to lib/utils/pyexec.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
* THE SOFTWARE.
2525
*/
26+
#ifndef __MICROPY_INCLUDED_LIB_UTILS_PYEXEC_H__
27+
#define __MICROPY_INCLUDED_LIB_UTILS_PYEXEC_H__
2628

2729
typedef enum {
2830
PYEXEC_MODE_RAW_REPL,
@@ -41,3 +43,5 @@ void pyexec_event_repl_init(void);
4143
int pyexec_event_repl_process_char(int c);
4244

4345
MP_DECLARE_CONST_FUN_OBJ(pyb_set_repl_info_obj);
46+
47+
#endif // __MICROPY_INCLUDED_LIB_UTILS_PYEXEC_H__

minimal/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "py/runtime.h"
88
#include "py/repl.h"
99
#include "py/gc.h"
10-
#include "pyexec.h"
10+
#include "lib/utils/pyexec.h"
1111

1212
void do_str(const char *src, mp_parse_input_kind_t input_kind) {
1313
mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0);

pic16bit/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "py/runtime.h"
3434
#include "py/gc.h"
3535
#include "py/mphal.h"
36-
#include "pyexec.h"
36+
#include "lib/utils/pyexec.h"
3737
#include "readline.h"
3838
#include "board.h"
3939
#include "modpyb.h"

stmhal/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
#include "py/gc.h"
3737
#include "py/mphal.h"
3838

39+
#include "lib/utils/pyexec.h"
3940
#include "lib/fatfs/ff.h"
4041

4142
#include "systick.h"
4243
#include "pendsv.h"
4344
#include "gccollect.h"
4445
#include "readline.h"
45-
#include "pyexec.h"
4646
#include "i2c.h"
4747
#include "spi.h"
4848
#include "uart.h"

0 commit comments

Comments
 (0)