Skip to content

Commit b68d98d

Browse files
committed
teensy: Prefix includes with py/; remove need for -I../py.
1 parent 2cf6dfa commit b68d98d

File tree

18 files changed

+30
-90
lines changed

18 files changed

+30
-90
lines changed

stmhal/pin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
#include "py/nlr.h"
3232
#include "py/runtime.h"
33-
#include "pin.h"
3433
#include MICROPY_HAL_H
34+
#include "pin.h"
3535

3636
/// \moduleref pyb
3737
/// \class Pin - control I/O pins

stmhal/pin_named_pins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
#include <string.h>
2929

3030
#include "py/runtime.h"
31-
#include "pin.h"
3231
#include MICROPY_HAL_H
32+
#include "pin.h"
3333

3434
STATIC void pin_named_pins_obj_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) {
3535
pin_named_pins_obj_t *self = self_in;

teensy/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -msoft-float -mfloat
3131

3232
INC = -I.
3333
INC += -I..
34-
INC += -I$(PY_SRC)
3534
INC += -I../stmhal
3635
INC += -I$(BUILD)
3736
INC += -Icore

teensy/help.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626

2727
#include <stdio.h>
2828

29-
#include "mpconfig.h"
30-
#include "nlr.h"
31-
#include "misc.h"
32-
#include "qstr.h"
33-
#include "obj.h"
29+
#include "py/obj.h"
3430

3531
STATIC const char *help_text =
3632
"Welcome to Micro Python!\n"

teensy/import.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#include <stdio.h>
2-
#include <stdint.h>
3-
4-
#include "mpconfig.h"
5-
#include "misc.h"
6-
#include "qstr.h"
7-
#include "lexer.h"
82

3+
#include "py/lexer.h"
94
#include "memzip.h"
105

116
mp_import_stat_t mp_import_stat(const char *path) {

teensy/lcd.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
#include "mpconfig.h"
2-
#include "nlr.h"
3-
#include "misc.h"
4-
#include "qstr.h"
5-
#include "parse.h"
6-
#include "obj.h"
1+
#include "py/obj.h"
72
#include "../stmhal/lcd.h"
83

94
void lcd_init(void) {

teensy/led.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22

33
#include "Arduino.h"
44

5-
#include "mpconfig.h"
6-
#include "nlr.h"
7-
#include "misc.h"
8-
#include "qstr.h"
9-
#include "obj.h"
10-
#include "runtime.h"
5+
#include "py/nlr.h"
6+
#include "py/runtime.h"
117
#include "led.h"
128
#include MICROPY_HAL_H
139
#include "pin.h"

teensy/lexermemzip.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
#include <stdint.h>
21
#include <stdlib.h>
32

4-
#include "mpconfig.h"
5-
#include "misc.h"
6-
#include "qstr.h"
7-
#include "lexer.h"
3+
#include "py/lexer.h"
84
#include "memzip.h"
95

106
mp_lexer_t *mp_lexer_new_from_file(const char *filename)

teensy/main.c

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@
33
#include <string.h>
44
#include <stdlib.h>
55

6-
#include "mpconfig.h"
7-
#include "misc.h"
8-
#include "qstr.h"
9-
#include "nlr.h"
10-
#include "lexer.h"
11-
#include "lexermemzip.h"
12-
#include "parse.h"
13-
#include "obj.h"
14-
#include "runtime.h"
15-
#include "gc.h"
6+
#include "py/nlr.h"
7+
#include "py/parse.h"
8+
#include "py/lexer.h"
9+
#include "py/runtime.h"
10+
#include "py/gc.h"
1611
#include "gccollect.h"
1712
#include "pyexec.h"
1813
#include "readline.h"
14+
#include "lexermemzip.h"
1915

2016
#include "Arduino.h"
2117
#include MICROPY_HAL_H

teensy/memzip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include <stdint.h>
22
#include <stdlib.h>
33
#include <string.h>
4-
#include "mpconfigport.h"
5-
#include "misc.h"
4+
#include "py/mpconfig.h"
5+
#include "py/misc.h"
66
#include "memzip.h"
77

88
extern uint8_t _staticfs[];

0 commit comments

Comments
 (0)