diff options
| author | hathach <[email protected]> | 2013-11-30 22:29:37 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-30 22:29:37 +0700 |
| commit | 6e30a068d254fdd1367fffdf046b3c8783b8ee21 (patch) | |
| tree | 6f3693d32404968578eb9d542cfa3e485a595a6d /demos | |
| parent | af87e231c53e8f22cb1c6caea6ad973cf9eb4e0c (diff) | |
completely change the dcd for lpc11u & lpc13u to overcome the fact that lpc11u dma cannot transfer more than 64 bytes
each buffer. This implement an soft DMA for lpc11u & lpc13u (previously 1023 max) queued transfer
Diffstat (limited to 'demos')
| -rw-r--r-- | demos/device/device_os_none/mscd_app.c | 2 | ||||
| -rw-r--r-- | demos/device/device_os_none/mscd_app_ramdisk.c | 6 | ||||
| -rw-r--r-- | demos/device/device_os_none/mscd_app_romdisk.c | 6 |
3 files changed, 13 insertions, 1 deletions
diff --git a/demos/device/device_os_none/mscd_app.c b/demos/device/device_os_none/mscd_app.c index bbb4df587..755153458 100644 --- a/demos/device/device_os_none/mscd_app.c +++ b/demos/device/device_os_none/mscd_app.c @@ -157,7 +157,7 @@ msc_csw_status_t tusbd_msc_scsi_received_isr (uint8_t coreid, uint8_t lun, uint8 void msc_dev_app_init (void)
{
- // fat12_fs_init(mscd_app_ramdisk);
+
}
diff --git a/demos/device/device_os_none/mscd_app_ramdisk.c b/demos/device/device_os_none/mscd_app_ramdisk.c index 955829b84..e78ac4030 100644 --- a/demos/device/device_os_none/mscd_app_ramdisk.c +++ b/demos/device/device_os_none/mscd_app_ramdisk.c @@ -51,6 +51,12 @@ ATTR_USB_MIN_ALIGNMENT uint8_t mscd_app_ramdisk[DISK_BLOCK_NUM][DISK_BLOCK_SIZE] TUSB_CFG_ATTR_USBRAM =
{
//------------- Boot Sector -------------//
+ // byte_per_sector = DISK_BLOCK_SIZE; fat12_sector_num_16 = DISK_BLOCK_NUM;
+ // sector_per_cluster = 1; reserved_sectors = 1;
+ // fat_num = 1; fat12_root_entry_num = 16;
+ // sector_per_fat = 1; sector_per_track = 1; head_num = 1; hidden_sectors = 0;
+ // drive_number = 0x80; media_type = 0xf8; extended_boot_signature = 0x29;
+ // filesystem_type = "FAT12 "; volume_serial_number = 0x1234; volume_label = "tinyusb msc";
[0] =
{
0xEB, 0x3C, 0x90, 0x4D, 0x53, 0x44, 0x4F, 0x53, 0x35, 0x2E, 0x30, 0x00, 0x02, 0x01, 0x01, 0x00,
diff --git a/demos/device/device_os_none/mscd_app_romdisk.c b/demos/device/device_os_none/mscd_app_romdisk.c index 4cb4d5368..751800f02 100644 --- a/demos/device/device_os_none/mscd_app_romdisk.c +++ b/demos/device/device_os_none/mscd_app_romdisk.c @@ -54,6 +54,12 @@ const uint8_t mscd_app_rommdisk[DISK_BLOCK_NUM][DISK_BLOCK_SIZE] =
{
//------------- Boot Sector -------------//
+ // byte_per_sector = DISK_BLOCK_SIZE; fat12_sector_num_16 = DISK_BLOCK_NUM;
+ // sector_per_cluster = 1; reserved_sectors = 1;
+ // fat_num = 1; fat12_root_entry_num = 16;
+ // sector_per_fat = 1; sector_per_track = 1; head_num = 1; hidden_sectors = 0;
+ // drive_number = 0x80; media_type = 0xf8; extended_boot_signature = 0x29;
+ // filesystem_type = "FAT12 "; volume_serial_number = 0x1234; volume_label = "tinyusb msc";
[0] =
{
0xEB, 0x3C, 0x90, 0x4D, 0x53, 0x44, 0x4F, 0x53, 0x35, 0x2E, 0x30, 0x00, 0x02, 0x01, 0x01, 0x00,
|
