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
2cf6dfa2
Commit
2cf6dfa2
authored
Jan 01, 2015
by
Damien George
Browse files
stmhal: Prefix includes with py/; remove need for -I../py.
parent
b36be5ff
Changes
55
Hide whitespace changes
Inline
Side-by-side
stmhal/led.c
View file @
2cf6dfa2
...
...
@@ -27,12 +27,8 @@
#include
<stdio.h>
#include
<stm32f4xx_hal.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
"timer.h"
#include
"led.h"
#include
"pin.h"
...
...
stmhal/lexerfatfs.c
View file @
2cf6dfa2
...
...
@@ -24,13 +24,9 @@
* THE SOFTWARE.
*/
#include
<stdint.h>
#include
<stdio.h>
#include
"mpconfig.h"
#include
"misc.h"
#include
"qstr.h"
#include
"lexer.h"
#include
"py/lexer.h"
#include
"lexerfatfs.h"
#include
"ff.h"
...
...
stmhal/main.c
View file @
2cf6dfa2
...
...
@@ -27,21 +27,16 @@
#include
<stdio.h>
#include
<string.h>
#include
"stm32f4xx_hal.h"
#include
"py/nlr.h"
#include
"py/lexer.h"
#include
"py/parse.h"
#include
"py/obj.h"
#include
"py/runtime.h"
#include
"py/stackctrl.h"
#include
"py/gc.h"
#include
"mpconfig.h"
#include
"misc.h"
#include
"systick.h"
#include
"pendsv.h"
#include
"qstr.h"
#include
"misc.h"
#include
"nlr.h"
#include
"lexer.h"
#include
"parse.h"
#include
"obj.h"
#include
"runtime.h"
#include
"stackctrl.h"
#include
"gc.h"
#include
"gccollect.h"
#include
"readline.h"
#include
"pyexec.h"
...
...
stmhal/modnetwork.c
View file @
2cf6dfa2
...
...
@@ -29,13 +29,9 @@
#include
<string.h>
#include
<errno.h>
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"objlist.h"
#include
"runtime.h"
#include
"py/nlr.h"
#include
"py/objlist.h"
#include
"py/runtime.h"
#include
"modnetwork.h"
/// \module network - network configuration
...
...
stmhal/modnwcc3k.c
View file @
2cf6dfa2
...
...
@@ -35,16 +35,11 @@
// CC3000 defines its own ENOBUFS (different to standard one!)
#undef ENOBUFS
#include
"stm32f4xx_hal.h"
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"objtuple.h"
#include
"objlist.h"
#include
"stream.h"
#include
"runtime.h"
#include
"py/nlr.h"
#include
"py/objtuple.h"
#include
"py/objlist.h"
#include
"py/stream.h"
#include
"py/runtime.h"
#include
"modnetwork.h"
#include
"pin.h"
#include
"genhdr/pins.h"
...
...
stmhal/modnwwiznet5k.c
View file @
2cf6dfa2
...
...
@@ -29,15 +29,9 @@
#include
<string.h>
#include
<errno.h>
#include
"stm32f4xx_hal.h"
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"objlist.h"
#include
"runtime.h"
#include
"py/nlr.h"
#include
"py/objlist.h"
#include
"py/runtime.h"
#include
"modnetwork.h"
#include
"pin.h"
#include
"genhdr/pins.h"
...
...
stmhal/modpyb.c
View file @
2cf6dfa2
...
...
@@ -29,12 +29,9 @@
#include
"stm32f4xx_hal.h"
#include
"mpconfig.h"
#include
"misc.h"
#include
"nlr.h"
#include
"qstr.h"
#include
"obj.h"
#include
"gc.h"
#include
"py/nlr.h"
#include
"py/obj.h"
#include
"py/gc.h"
#include
"gccollect.h"
#include
"irq.h"
#include
"systick.h"
...
...
stmhal/modstm.c
View file @
2cf6dfa2
...
...
@@ -29,11 +29,8 @@
#include
"stm32f4xx_hal.h"
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"py/nlr.h"
#include
"py/obj.h"
#include
"portmodules.h"
// To use compile-time constants we are restricted to 31-bit numbers (a small int,
...
...
stmhal/moduos.c
View file @
2cf6dfa2
...
...
@@ -27,12 +27,9 @@
#include
<stdint.h>
#include
<string.h>
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"objtuple.h"
#include
"py/nlr.h"
#include
"py/obj.h"
#include
"py/objtuple.h"
#include
"systick.h"
#include
"rng.h"
#include
"storage.h"
...
...
stmhal/moduselect.c
View file @
2cf6dfa2
...
...
@@ -24,16 +24,12 @@
* THE SOFTWARE.
*/
#include
<stdint.h>
#include
<stdio.h>
#include
<errno.h>
#include
"mpconfig.h"
#include
"misc.h"
#include
"nlr.h"
#include
"qstr.h"
#include
"obj.h"
#include
"objlist.h"
#include
"py/nlr.h"
#include
"py/obj.h"
#include
"py/objlist.h"
#include
"pybioctl.h"
#include MICROPY_HAL_H
...
...
stmhal/modusocket.c
View file @
2cf6dfa2
...
...
@@ -25,18 +25,13 @@
*/
#include
<stdio.h>
#include
<stdint.h>
#include
<string.h>
#include
<errno.h>
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"objtuple.h"
#include
"objlist.h"
#include
"runtime.h"
#include
"py/nlr.h"
#include
"py/objtuple.h"
#include
"py/objlist.h"
#include
"py/runtime.h"
#include
"modnetwork.h"
/******************************************************************************/
...
...
stmhal/modutime.c
View file @
2cf6dfa2
...
...
@@ -28,11 +28,8 @@
#include
<string.h>
#include
"stm32f4xx_hal.h"
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"py/nlr.h"
#include
"py/obj.h"
#include
"portmodules.h"
#include
"rtc.h"
...
...
stmhal/mphal.c
View file @
2cf6dfa2
#include
<errno.h>
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"py/nlr.h"
#include
"py/obj.h"
#include
"usb.h"
#include
"mphal.h"
...
...
stmhal/pendsv.c
View file @
2cf6dfa2
...
...
@@ -27,11 +27,7 @@
#include
<stdlib.h>
#include
<stm32f4xx_hal.h>
#include
"mpconfig.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"runtime.h"
#include
"py/runtime.h"
#include
"pendsv.h"
static
void
*
pendsv_object
=
NULL
;
...
...
stmhal/pin.c
View file @
2cf6dfa2
...
...
@@ -28,14 +28,10 @@
#include
<stdint.h>
#include
<string.h>
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"runtime.h"
#include MICROPY_HAL_H
#include
"py/nlr.h"
#include
"py/runtime.h"
#include
"pin.h"
#include MICROPY_HAL_H
/// \moduleref pyb
/// \class Pin - control I/O pins
...
...
stmhal/pin_defs_stmhal.c
View file @
2cf6dfa2
#include
"mpconfig.h"
#include
"nlr.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"runtime.h"
#include MICROPY_HAL_H
#include
"py/obj.h"
#include
"pin.h"
#include MICROPY_HAL_H
// Returns the pin mode. This value returned by this macro should be one of:
// GPIO_MODE_INPUT, GPIO_MODE_OUTPUT_PP, GPIO_MODE_OUTPUT_OD,
...
...
stmhal/pin_named_pins.c
View file @
2cf6dfa2
...
...
@@ -25,16 +25,11 @@
*/
#include
<stdio.h>
#include
<stdint.h>
#include
<string.h>
#include
"mpconfig.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"runtime.h"
#include MICROPY_HAL_H
#include
"py/runtime.h"
#include
"pin.h"
#include MICROPY_HAL_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
;
...
...
stmhal/printf.c
View file @
2cf6dfa2
...
...
@@ -28,15 +28,12 @@
#include
<string.h>
#include
<stdarg.h>
#include
"mpconfig.h"
#include
"misc.h"
#include
"qstr.h"
#include
"obj.h"
#include
"pfenv.h"
#include
"py/obj.h"
#include
"py/pfenv.h"
#include
"pybstdio.h"
#if MICROPY_PY_BUILTINS_FLOAT
#include
"formatfloat.h"
#include
"
py/
formatfloat.h"
#endif
int
pfenv_vprintf
(
const
pfenv_t
*
pfenv
,
const
char
*
fmt
,
va_list
args
);
...
...
stmhal/pybstdio.c
View file @
2cf6dfa2
...
...
@@ -29,16 +29,12 @@
#include
<string.h>
#include
<errno.h>
#include
"mpconfig.h"
#include
"misc.h"
#include
"qstr.h"
#include
"misc.h"
#include
"obj.h"
#include
"stream.h"
#include MICROPY_HAL_H
#include
"py/obj.h"
#include
"py/stream.h"
#include
"usb.h"
#include
"uart.h"
#include
"pybstdio.h"
#include MICROPY_HAL_H
// TODO make stdin, stdout and stderr writable objects so they can
// be changed by Python code. This requires some changes, as these
...
...
stmhal/pyexec.c
View file @
2cf6dfa2
...
...
@@ -28,14 +28,13 @@
#include
<stdio.h>
#include
<stdint.h>
#include
"mpconfig.h"
#include
"nlr.h"
#include
"obj.h"
#include
"parsehelper.h"
#include
"compile.h"
#include
"runtime.h"
#include
"repl.h"
#include
"gc.h"
#include
"py/nlr.h"
#include
"py/parsehelper.h"
#include
"py/compile.h"
#include
"py/runtime.h"
#include
"py/repl.h"
#include
"py/gc.h"
#include
"py/pfenv.h"
#ifdef MICROPY_HAL_H
#include MICROPY_HAL_H
#endif
...
...
@@ -44,7 +43,6 @@
#include
"pyexec.h"
#include
"pybstdio.h"
#include
"genhdr/py-version.h"
#include
"pfenv.h"
pyexec_mode_kind_t
pyexec_mode_kind
=
PYEXEC_MODE_FRIENDLY_REPL
;
STATIC
bool
repl_display_debugging_info
=
0
;
...
...
Prev
1
2
3
Next
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