This repository has been archived by the owner on May 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
paulocode
committed
Jan 15, 2023
1 parent
3d38736
commit 49cb602
Showing
46 changed files
with
28,738 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# These are some examples of commonly ignored file patterns. | ||
# You should customize this list as applicable to your project. | ||
# Learn more about .gitignore: | ||
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore | ||
|
||
build/ | ||
# Node artifact files | ||
node_modules/ | ||
dist/ | ||
|
||
# Compiled Java class files | ||
*.class | ||
|
||
# Compiled Python bytecode | ||
*.py[cod] | ||
|
||
# Log files | ||
*.log | ||
|
||
# Package files | ||
*.jar | ||
|
||
# Maven | ||
target/ | ||
dist/ | ||
|
||
# JetBrains IDE | ||
.idea/ | ||
|
||
# Unit test reports | ||
TEST*.xml | ||
|
||
# Generated by MacOS | ||
.DS_Store | ||
|
||
# Generated by Windows | ||
Thumbs.db | ||
|
||
# Applications | ||
*.app | ||
*.exe | ||
*.war | ||
|
||
# Large media files | ||
*.mp4 | ||
*.tiff | ||
*.avi | ||
*.flv | ||
*.mov | ||
*.wmv | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
cmake_minimum_required(VERSION 3.24.1) | ||
|
||
include(pico_sdk_import.cmake) | ||
|
||
project(picostation) | ||
|
||
pico_sdk_init() | ||
|
||
add_executable(picostation) | ||
|
||
target_sources(picostation PRIVATE main.c utils.c subq.c cmd.c hw_config.c i2s.c) | ||
|
||
add_subdirectory(FatFs_SPI build) | ||
|
||
pico_enable_stdio_usb(picostation 1) | ||
|
||
pico_generate_pio_header(picostation ${CMAKE_CURRENT_LIST_DIR}/main.pio) | ||
|
||
target_link_libraries(picostation PRIVATE pico_stdlib hardware_pio hardware_dma FatFs_SPI pico_multicore) | ||
|
||
pico_set_binary_type(picostation copy_to_ram) | ||
|
||
pico_add_extra_outputs(picostation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
add_library(FatFs_SPI INTERFACE) | ||
target_sources(FatFs_SPI INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/ff14a/source/ffsystem.c | ||
${CMAKE_CURRENT_LIST_DIR}/ff14a/source/ffunicode.c | ||
${CMAKE_CURRENT_LIST_DIR}/ff14a/source/ff.c | ||
${CMAKE_CURRENT_LIST_DIR}/sd_driver/sd_spi.c | ||
${CMAKE_CURRENT_LIST_DIR}/sd_driver/demo_logging.c | ||
# ${CMAKE_CURRENT_LIST_DIR}/sd_driver/hw_config.c | ||
${CMAKE_CURRENT_LIST_DIR}/sd_driver/spi.c | ||
${CMAKE_CURRENT_LIST_DIR}/sd_driver/sd_card.c | ||
${CMAKE_CURRENT_LIST_DIR}/sd_driver/crc.c | ||
${CMAKE_CURRENT_LIST_DIR}/src/glue.c | ||
${CMAKE_CURRENT_LIST_DIR}/src/f_util.c | ||
${CMAKE_CURRENT_LIST_DIR}/src/ff_stdio.c | ||
${CMAKE_CURRENT_LIST_DIR}/src/my_debug.c | ||
${CMAKE_CURRENT_LIST_DIR}/src/rtc.c | ||
) | ||
target_include_directories(FatFs_SPI INTERFACE | ||
ff14a/source | ||
sd_driver | ||
include | ||
) | ||
target_link_libraries(FatFs_SPI INTERFACE | ||
hardware_spi | ||
hardware_dma | ||
hardware_rtc | ||
pico_stdlib | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FatFs License | ||
|
||
FatFs has being developped as a personal project of the author, ChaN. It is free from the code anyone else wrote at current release. Following code block shows a copy of the FatFs license document that heading the source files. | ||
|
||
/*----------------------------------------------------------------------------/ | ||
/ FatFs - Generic FAT Filesystem Module Rx.xx / | ||
/-----------------------------------------------------------------------------/ | ||
/ | ||
/ Copyright (C) 20xx, ChaN, all right reserved. | ||
/ | ||
/ FatFs module is an open source software. Redistribution and use of FatFs in | ||
/ source and binary forms, with or without modification, are permitted provided | ||
/ that the following condition is met: | ||
/ | ||
/ 1. Redistributions of source code must retain the above copyright notice, | ||
/ this condition and the following disclaimer. | ||
/ | ||
/ This software is provided by the copyright holder and contributors "AS IS" | ||
/ and any warranties related to this software are DISCLAIMED. | ||
/ The copyright owner or contributors be NOT LIABLE for any damages caused | ||
/ by use of this software. | ||
/----------------------------------------------------------------------------*/ | ||
|
||
Therefore FatFs license is one of the BSD-style licenses, but there is a significant feature. FatFs is mainly intended for embedded systems. In order to extend the usability for commercial products, the redistributions of FatFs in binary form, such as embedded code, binary library and any forms without source code, do not need to include about FatFs in the documentations. This is equivalent to the 1-clause BSD license. Of course FatFs is compatible with the most of open source software licenses include GNU GPL. When you redistribute the FatFs source code with changes or create a fork, the license can also be changed to GNU GPL, BSD-style license or any open source software license that not conflict with FatFs license. |
Oops, something went wrong.