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
e62235f8
Commit
e62235f8
authored
Mar 10, 2017
by
Damien George
Browse files
esp8266: Change default settings to mount flash at root dir.
parent
1b3e3724
Changes
3
Hide whitespace changes
Inline
Side-by-side
esp8266/main.c
View file @
e62235f8
...
...
@@ -50,8 +50,8 @@ STATIC void mp_reset(void) {
mp_init
();
mp_obj_list_init
(
mp_sys_path
,
0
);
mp_obj_list_append
(
mp_sys_path
,
MP_OBJ_NEW_QSTR
(
MP_QSTR_
));
// current dir (or base dir of the script)
mp_obj_list_append
(
mp_sys_path
,
MP_OBJ_NEW_QSTR
(
MP_QSTR__slash_
flash_slash_
lib
));
mp_obj_list_append
(
mp_sys_path
,
MP_OBJ_NEW_QSTR
(
MP_QSTR__slash_
flash
));
mp_obj_list_append
(
mp_sys_path
,
MP_OBJ_NEW_QSTR
(
MP_QSTR__slash_lib
));
mp_obj_list_append
(
mp_sys_path
,
MP_OBJ_NEW_QSTR
(
MP_QSTR__slash_
));
mp_obj_list_init
(
mp_sys_argv
,
0
);
MP_STATE_PORT
(
term_obj
)
=
MP_OBJ_NULL
;
MP_STATE_PORT
(
dupterm_arr_obj
)
=
MP_OBJ_NULL
;
...
...
esp8266/modules/_boot.py
View file @
e62235f8
...
...
@@ -5,9 +5,7 @@ from flashbdev import bdev
try
:
if
bdev
:
vfs
=
uos
.
VfsFat
(
bdev
)
uos
.
mount
(
vfs
,
'/flash'
)
uos
.
chdir
(
'/flash'
)
uos
.
mount
(
bdev
,
'/'
)
except
OSError
:
import
inisetup
vfs
=
inisetup
.
setup
()
...
...
esp8266/qstrdefsport.h
View file @
e62235f8
...
...
@@ -27,5 +27,5 @@
// qstrs specific to this port, only needed if they aren't auto-generated
// Entries for sys.path
Q
(
/
flash
)
Q
(
/
flash
/
lib
)
Q
(
/
)
Q
(
/
lib
)
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