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
753a8e8b
Commit
753a8e8b
authored
Jul 15, 2015
by
Daniel Campora
Browse files
cc3200: Create /flash/cert folder if it doesn't exist.
parent
e955089d
Changes
1
Hide whitespace changes
Inline
Side-by-side
cc3200/mptask.c
View file @
753a8e8b
...
...
@@ -337,17 +337,20 @@ STATIC void mptask_init_sflash_filesystem (void) {
// It is set to the internal flash filesystem by default.
f_chdrive
(
"/flash"
);
// create /flash/sys and /flash/
lib
if they don't exist
// create /flash/sys
, /flash/lib
and /flash/
cert
if they don't exist
if
(
FR_OK
!=
f_chdir
(
"/flash/sys"
))
{
res
=
f_mkdir
(
"/flash/sys"
);
}
if
(
FR_OK
!=
f_chdir
(
"/flash/lib"
))
{
res
=
f_mkdir
(
"/flash/lib"
);
}
if
(
FR_OK
!=
f_chdir
(
"/flash/cert"
))
{
res
=
f_mkdir
(
"/flash/cert"
);
}
f_chdir
(
"/flash"
);
//
M
ake sure we have a /flash/boot.py. Create it if needed.
//
m
ake sure we have a /flash/boot.py. Create it if needed.
res
=
f_stat
(
"/flash/boot.py"
,
&
fno
);
if
(
res
==
FR_OK
)
{
if
(
fno
.
fattrib
&
AM_DIR
)
{
...
...
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