Skip to content

Commit

Permalink
Fix building other targets
Browse files Browse the repository at this point in the history
  • Loading branch information
morio committed Nov 29, 2023
1 parent f5b99f5 commit 4b62b82
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 8 deletions.
Binary file not shown.
Binary file removed ZuluSCSI-firmware-23.11.27-Cardreader_Pico_Dayna.uf2
Binary file not shown.
1 change: 1 addition & 0 deletions lib/ZuluSCSI_platform_RP2040/ZuluSCSI_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <stdint.h>
#include <Arduino.h>
#include "ZuluSCSI_platform_network.h"
#include "rp_msc_reader.h"

#ifdef ZULUSCSI_PICO
// ZuluSCSI Pico carrier board variant
Expand Down
2 changes: 2 additions & 0 deletions lib/ZuluSCSI_platform_RP2040/msc_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*
* This file is part of the TinyUSB stack.
*/
#ifdef PLATFORM_CARDREADER

#include "tusb_option.h"

Expand Down Expand Up @@ -950,3 +951,4 @@ static void proc_write10_new_data(uint8_t rhport, mscd_interface_t* p_msc, uint3
}

#endif
#endif // PLATFORM_CARDREADER
5 changes: 2 additions & 3 deletions lib/ZuluSCSI_platform_RP2040/rp_msc_reader.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* TODO - Header. By ZZJ. */
#ifdef PLATFORM_CARDREADER

#include <SdFat.h>
#include <device/usbd.h>
Expand All @@ -9,8 +10,6 @@
#include "msc.h"
#include "msc_device.h"

#ifdef PLATFORM_CARDREADER

#if CFG_TUD_MSC_EP_BUFSIZE < SD_SECTOR_SIZE
#error "CFG_TUD_MSC_EP_BUFSIZE is too small! It needs to be at least 512 (SD_SECTOR_SIZE)"
#endif
Expand Down Expand Up @@ -293,4 +292,4 @@ extern "C" void tud_msc_write10_complete_cb(uint8_t lun) {
SD.card()->syncDevice();
}

#endif
#endif // PLATFORM_CARDREADER
4 changes: 1 addition & 3 deletions lib/ZuluSCSI_platform_RP2040/rp_msc_reader.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* TODO - Header. By ZZJ. */

#ifdef PLATFORM_CARDREADER
#ifndef RP_MSC_READER_H
#define RP_MSC_READER_H

#ifdef PLATFORM_CARDREADER

// wait up to this long during init sequence for USB enumeration to enter card reader
#define CR_ENUM_TIMEOUT 1000

Expand Down
2 changes: 0 additions & 2 deletions src/ZuluSCSI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,6 @@ static void reinitSCSI()

}

#include "rp_msc_reader.h"

extern "C" void zuluscsi_setup(void)
{
platform_init();
Expand Down
Binary file removed testbuild/zulu pico dayna.uf2
Binary file not shown.

0 comments on commit 4b62b82

Please sign in to comment.