Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
b68d98d6
Commit
b68d98d6
authored
Jan 01, 2015
by
Damien George
Browse files
teensy: Prefix includes with py/; remove need for -I../py.
parent
2cf6dfa2
Changes
18
Hide whitespace changes
Inline
Side-by-side
stmhal/pin.c
View file @
b68d98d6
...
...
@@ -30,8 +30,8 @@
#include
"py/nlr.h"
#include
"py/runtime.h"
#include
"pin.h"
#include MICROPY_HAL_H
#include
"pin.h"
/// \moduleref pyb
/// \class Pin - control I/O pins
...
...
stmhal/pin_named_pins.c
View file @
b68d98d6
...
...
@@ -28,8 +28,8 @@
#include
<string.h>
#include
"py/runtime.h"
#include
"pin.h"
#include MICROPY_HAL_H
#include
"pin.h"
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
)
{
pin_named_pins_obj_t
*
self
=
self_in
;
...
...
teensy/Makefile
View file @
b68d98d6
...
...
@@ -31,7 +31,6 @@ CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -msoft-float -mfloat
INC
=
-I
.
INC
+=
-I
..
INC
+=
-I
$(PY_SRC)
INC
+=
-I
../stmhal
INC
+=
-I
$(BUILD)
INC
+=
-Icore
...
...
teensy/help.c
View file @
b68d98d6
...
...
@@ -26,11 +26,7 @@
#include
<stdio.h>
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"py/obj.h"
STATIC
const
char
*
help_text
=
"Welcome to Micro Python!
\n
"
...
...
teensy/import.c
View file @
b68d98d6
#include
<stdio.h>
#include
<stdint.h>
#include
"mpconfig.h"
#include
"misc.h"
#include
"qstr.h"
#include
"lexer.h"
#include
"py/lexer.h"
#include
"memzip.h"
mp_import_stat_t
mp_import_stat
(
const
char
*
path
)
{
...
...
teensy/lcd.c
View file @
b68d98d6
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"parse.h"
#include
"obj.h"
#include
"py/obj.h"
#include
"../stmhal/lcd.h"
void
lcd_init
(
void
)
{
...
...
teensy/led.c
View file @
b68d98d6
...
...
@@ -2,12 +2,8 @@
#include
"Arduino.h"
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"runtime.h"
#include
"py/nlr.h"
#include
"py/runtime.h"
#include
"led.h"
#include MICROPY_HAL_H
#include
"pin.h"
...
...
teensy/lexermemzip.c
View file @
b68d98d6
#include
<stdint.h>
#include
<stdlib.h>
#include
"mpconfig.h"
#include
"misc.h"
#include
"qstr.h"
#include
"lexer.h"
#include
"py/lexer.h"
#include
"memzip.h"
mp_lexer_t
*
mp_lexer_new_from_file
(
const
char
*
filename
)
...
...
teensy/main.c
View file @
b68d98d6
...
...
@@ -3,19 +3,15 @@
#include
<string.h>
#include
<stdlib.h>
#include
"mpconfig.h"
#include
"misc.h"
#include
"qstr.h"
#include
"nlr.h"
#include
"lexer.h"
#include
"lexermemzip.h"
#include
"parse.h"
#include
"obj.h"
#include
"runtime.h"
#include
"gc.h"
#include
"py/nlr.h"
#include
"py/parse.h"
#include
"py/lexer.h"
#include
"py/runtime.h"
#include
"py/gc.h"
#include
"gccollect.h"
#include
"pyexec.h"
#include
"readline.h"
#include
"lexermemzip.h"
#include
"Arduino.h"
#include MICROPY_HAL_H
...
...
teensy/memzip.c
View file @
b68d98d6
#include
<stdint.h>
#include
<stdlib.h>
#include
<string.h>
#include
"mpconfig
port
.h"
#include
"misc.h"
#include
"
py/
mpconfig.h"
#include
"
py/
misc.h"
#include
"memzip.h"
extern
uint8_t
_staticfs
[];
...
...
teensy/mk20dx256_prefix.c
View file @
b68d98d6
// stm32fxx-prefix.c becomes the initial portion of the generated pins file.
#include
<stdio.h>
#include
<stdint.h>
#include
<mk20dx128.h>
#include
"py/obj.h"
#include
"teensy_hal.h"
#include
"mpconfig.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"pin.h"
#define AF(af_idx, af_fn, af_unit, af_type, af_ptr) \
...
...
teensy/modpyb.c
View file @
b68d98d6
...
...
@@ -29,14 +29,11 @@
#include
<mk20dx128.h>
#include
"Arduino.h"
#include
"
mpconfig
.h"
#include
"
mis
c.h"
#include
"
py/obj
.h"
#include
"
py/g
c.h"
#include
"teensy_hal.h"
#include
"qstr.h"
#include
"obj.h"
#include
"gc.h"
#include
"gccollect.h"
#include
"irq.h"
#include
"systick.h"
...
...
teensy/pin_defs_teensy.c
View file @
b68d98d6
#include
<stdint.h>
#include
<mk20dx128.h>
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"runtime.h"
#include
"py/runtime.h"
#include MICROPY_HAL_H
#include
"pin.h"
...
...
teensy/reg.c
View file @
b68d98d6
#include
<stdio.h>
#include
<string.h>
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"runtime.h"
#include
"py/runtime.h"
#include
"reg.h"
#if MICROPY_REG
...
...
teensy/teensy_hal.c
View file @
b68d98d6
#include
<stdio.h>
#include
<stdint.h>
#include
"mpconfig.h"
#include
"
py/
mpconfig.h"
#include
"Arduino.h"
...
...
teensy/timer.c
View file @
b68d98d6
...
...
@@ -29,18 +29,13 @@
#include
<string.h>
#include
<stddef.h>
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"runtime.h"
#include
"pfenv.h"
#include
"py/nlr.h"
#include
"py/runtime.h"
#include
"py/pfenv.h"
#include
"py/gc.h"
#include MICROPY_HAL_H
#include
"gc.h"
#include
"pin.h"
#include
"reg.h"
#include
"timer.h"
typedef
enum
{
...
...
teensy/uart.c
View file @
b68d98d6
...
...
@@ -27,12 +27,8 @@
#include
<stdio.h>
#include
<string.h>
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"runtime.h"
#include
"py/nlr.h"
#include
"py/runtime.h"
#include MICROPY_HAL_H
#include
"bufhelper.h"
#include
"uart.h"
...
...
teensy/usb.c
View file @
b68d98d6
#include
<string.h>
#include
<stdint.h>
#include
"
Arduino
.h"
#include
"
py/runtime
.h"
#include
"mpconfig.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"runtime.h"
#include
"Arduino.h"
#include
"usb.h"
#include
"usb_serial.h"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment