Skip to content

Commit

Permalink
Merge pull request #68 from electro-smith/libdaisy_update
Browse files Browse the repository at this point in the history
updated libdaisy to v4.0.0
  • Loading branch information
stephenhensley authored Dec 17, 2021
2 parents feca4db + 30ae9ca commit ec635df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions source/genlib_daisy.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ static bool update = false;
static const uint32_t OOPSY_SRAM_SIZE = 512 * 1024;
static const uint32_t OOPSY_SDRAM_SIZE = 64 * 1024 * 1024;

// Added dedicated global SDFile to replace old global from libDaisy
FIL SDFile;

namespace oopsy {

uint32_t sram_used = 0, sram_usable = 0;
Expand Down Expand Up @@ -278,6 +281,8 @@ namespace oopsy {
#define OOPSY_WAV_WORKSPACE_BYTES (256)

daisy::SdmmcHandler handler;
daisy::FatFSInterface fsi;

uint8_t workspace[OOPSY_WAV_WORKSPACE_BYTES];

void sdcard_init() {
Expand All @@ -287,8 +292,8 @@ namespace oopsy {
// sdconfig.speed = daisy::SdmmcHandler::Speed::FAST;
sdconfig.width = daisy::SdmmcHandler::BusWidth::BITS_1;
handler.Init(sdconfig);
dsy_fatfs_init();
f_mount(&SDFatFS, SDPath, 1);
fsi.Init(daisy::FatFSInterface::Config::MEDIA_SD);
f_mount(&fsi.GetSDFileSystem(), fsi.GetSDPath(), 1);
}

// TODO: resizing without wasting memory
Expand Down
2 changes: 1 addition & 1 deletion source/libdaisy
Submodule libdaisy updated 68 files
+163 −2 CHANGELOG.md
+16 −2 CMakeLists.txt
+17 −3 Makefile
+7 −0 Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc/usbd_cdc.h
+70 −6 Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c
+216 −0 Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc/usbh_msc.h
+232 −0 Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc/usbh_msc_bot.h
+218 −0 Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc/usbh_msc_scsi.h
+863 −0 Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Src/usbh_msc.c
+700 −0 Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Src/usbh_msc_bot.c
+466 −0 Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Src/usbh_msc_scsi.c
+152 −0 Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_conf_template.h
+192 −0 Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_core.h
+141 −0 Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_ctlreq.h
+500 −0 Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_def.h
+160 −0 Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_ioreq.h
+123 −0 Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_pipes.h
+315 −0 Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_conf_template.c
+1,370 −0 Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_core.c
+1,003 −0 Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_ctlreq.c
+350 −0 Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_ioreq.c
+188 −0 Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_pipes.c
+6 −0 Middlewares/notes.md
+2 −2 cmake/toolchains/stm32h750xx.cmake
+11 −3 core/Makefile
+256 −0 core/STM32H750IB_qspi.lds
+255 −0 core/STM32H750IB_sram.lds
+ core/dsy_bootloader_v4.bin
+3 −0 src/daisy.h
+93 −6 src/daisy_core.h
+14 −4 src/daisy_patch.cpp
+10 −9 src/daisy_seed.cpp
+72 −16 src/daisy_seed.h
+987 −0 src/dev/max11300.h
+401 −0 src/dev/mcp23x17.h
+2 −0 src/hid/midi.h
+3 −11 src/hid/usb.cpp
+123 −0 src/hid/usb_host.cpp
+79 −0 src/hid/usb_host.h
+214 −0 src/hid/usb_midi.cpp
+49 −0 src/hid/usb_midi.h
+15 −19 src/hid/wavplayer.cpp
+4 −2 src/hid/wavplayer.h
+0 −80 src/per/gpio.c
+206 −0 src/per/gpio.cpp
+124 −0 src/per/gpio.h
+14 −2 src/per/sdmmc.cpp
+27 −0 src/per/spi.cpp
+10 −0 src/per/spi.h
+0 −21 src/sys/fatfs.c
+52 −0 src/sys/fatfs.cpp
+102 −18 src/sys/fatfs.h
+2 −2 src/sys/ffconf.h
+28 −0 src/sys/system.cpp
+28 −4 src/ui/UI.cpp
+10 −0 src/ui/UI.h
+4 −4 src/usbd/usbd_cdc_if.c
+573 −0 src/usbh/usbh_conf.c
+212 −0 src/usbh/usbh_conf.h
+1 −1 src/util/FIFO.h
+15 −0 src/util/FixedCapStr.h
+16 −7 src/util/ringbuffer.h
+3 −7 src/util/sd_diskio.c
+338 −0 src/util/usbh_diskio.c
+40 −0 src/util/usbh_diskio.h
+1 −1 src/version.h
+1,117 −0 tests/MAX11300_gtest.cpp
+40 −0 tests/Pin_gtest.cpp

0 comments on commit ec635df

Please sign in to comment.