Skip to content

Commit

Permalink
ports/psoc6/frezee: Formatted VFS message.
Browse files Browse the repository at this point in the history
Signed-off-by: enriquezgarc <[email protected]>
  • Loading branch information
jaenrig-ifx committed Aug 8, 2024
1 parent f0ffeba commit 126c2b5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
7 changes: 4 additions & 3 deletions ports/psoc6/freeze/vfs_fat.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
os.mount(vfs, "/")

if "QSPI_Flash" in dir(psoc6):
print("External Flash with FAT filesystem mounted at /\n")

location = "external QSPI"
else:
print("Internal Flash with FAT filesystem mounted at /\n")
location = "internal"

print(f"Virtual File System: mounted at '/' with FAT format in {location} flash.\n")

del machine, os, psoc6, bdev, vfs
2 changes: 1 addition & 1 deletion ports/psoc6/freeze/vfs_fat_qspi_flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
vfs = os.VfsFat(bdev)
os.mount(vfs, "/flash")

print("External Flash with FAT filesystem mounted at /flash\n")
print("Virtual File System: mounted at '/flash' with FAT format in external QSPI flash.\n")

del machine, os, psoc6, bdev, vfs
7 changes: 4 additions & 3 deletions ports/psoc6/freeze/vfs_lfs2.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
os.mount(vfs, "/")

if "QSPI_Flash" in dir(psoc6):
print("External Flash with LFS2 filesystem mounted at /\n")

location = "external QSPI"
else:
print("Internal Flash with LFS2 filesystem mounted at /\n")
location = "internal"

print(f"Virtual File System: mounted at '/' with LFS2 format in {location} flash.\n")

del machine, os, psoc6, bdev, vfs, read_size, write_size
2 changes: 1 addition & 1 deletion ports/psoc6/freeze/vfs_lfs2_qspi_flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
vfs = os.VfsLfs2(bdev, progsize=read_size, readsize=write_size)
os.mount(vfs, "/flash")

print("External Flash with LFS2 filesystem mounted at /flash\n")
print("Virtual File System: mounted at '/flash' with LFS2 format in external QSPI flash.\n")

del machine, os, psoc6, bdev, vfs, read_size, write_size

0 comments on commit 126c2b5

Please sign in to comment.