Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
3a1bbcc2
Commit
3a1bbcc2
authored
Nov 25, 2015
by
Paul Sokolovsky
Browse files
extmod: Move fsusermount.c from stmhal for cross-port reuse.
parent
c8437f97
Changes
9
Hide whitespace changes
Inline
Side-by-side
stmhal
/fsusermount.c
→
extmod
/fsusermount.c
View file @
3a1bbcc2
File moved
stmhal
/fsusermount.h
→
extmod
/fsusermount.h
View file @
3a1bbcc2
File moved
py/builtin.h
View file @
3a1bbcc2
...
...
@@ -105,4 +105,7 @@ extern const mp_obj_module_t mp_module_ussl;
extern
const
mp_obj_module_t
mp_module_machine
;
extern
const
mp_obj_module_t
mp_module_lwip
;
// extmod functions
MP_DECLARE_CONST_FUN_OBJ
(
pyb_mount_obj
);
#endif // __MICROPY_INCLUDED_PY_BUILTIN_H__
py/py.mk
View file @
3a1bbcc2
...
...
@@ -167,6 +167,7 @@ PY_O_BASENAME = \
../extmod/modubinascii.o
\
../extmod/modmachine.o
\
../extmod/modussl.o
\
../extmod/fsusermount.o
\
# prepend the build destination prefix to the py object files
PY_O
=
$(
addprefix
$(PY_BUILD)
/,
$(PY_O_BASENAME)
)
...
...
stmhal/Makefile
View file @
3a1bbcc2
...
...
@@ -153,7 +153,6 @@ SRC_C = \
storage.c
\
file.c
\
sdcard.c
\
fsusermount.c
\
diskio.c
\
ffconf.c
\
lcd.c
\
...
...
stmhal/diskio.c
View file @
3a1bbcc2
...
...
@@ -38,7 +38,7 @@
#include
"rtc.h"
#include
"storage.h"
#include
"sdcard.h"
#include
"fsusermount.h"
#include
"
extmod/
fsusermount.h"
const
PARTITION
VolToPart
[]
=
{
{
0
,
1
},
// Logical drive 0 ==> Physical drive 0, 1st partition
...
...
stmhal/ffconf.c
View file @
3a1bbcc2
...
...
@@ -30,7 +30,7 @@
#include
"lib/fatfs/ff.h"
#include
"lib/fatfs/ffconf.h"
#include
"lib/fatfs/diskio.h"
#include
"fsusermount.h"
#include
"
extmod/
fsusermount.h"
STATIC
bool
check_path
(
const
TCHAR
**
path
,
const
char
*
mount_point_str
,
mp_uint_t
mount_point_len
)
{
if
(
strncmp
(
*
path
,
mount_point_str
,
mount_point_len
)
==
0
)
{
...
...
stmhal/modpyb.c
View file @
3a1bbcc2
...
...
@@ -33,6 +33,7 @@
#include
"py/nlr.h"
#include
"py/obj.h"
#include
"py/gc.h"
#include
"py/builtin.h"
#include
"lib/utils/pyexec.h"
#include
"lib/fatfs/ff.h"
#include
"lib/fatfs/diskio.h"
...
...
@@ -58,7 +59,6 @@
#include
"dac.h"
#include
"lcd.h"
#include
"usb.h"
#include
"fsusermount.h"
#include
"portmodules.h"
#include
"modmachine.h"
...
...
stmhal/moduos.c
View file @
3a1bbcc2
...
...
@@ -38,7 +38,7 @@
#include
"uart.h"
#include
"file.h"
#include
"sdcard.h"
#include
"fsusermount.h"
#include
"
extmod/
fsusermount.h"
#include
"portmodules.h"
/// \module os - basic "operating system" services
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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