Skip to content

Commit 8e0ff85

Browse files
committed
update(class/mtp): support obj remove & add event
Signed-off-by: sakumisu <[email protected]>
1 parent 739db92 commit 8e0ff85

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

class/mtp/usbd_mtp.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ struct usbd_interface *usbd_mtp_init_intf(struct usbd_interface *intf,
3636
const uint8_t in_ep,
3737
const uint8_t int_ep);
3838

39+
int usbd_mtp_notify_object_add(const char *path);
40+
int usbd_mtp_notify_object_remove(const char *path);
41+
3942
const char *usbd_mtp_fs_root_path(void);
4043
const char *usbd_mtp_fs_description(void);
4144

docs/source/support/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
- 主机 UVC & UAC 类 MUSB IP 中 ISO 驱动和 UAC/UVC 框架, MUSB 需要为 mentor 公司制定的标准 IP
2222

23-
- 从机 MTP 类驱动, 支持多文件和多文件夹
23+
- 从机 MTP 类驱动, 支持多文件和多文件夹,支持 MCU 端增删文件并与 PC 同步
2424

2525
.. figure:: img/mtpdev.png
2626

platform/fatfs/usbd_fatfs_mtp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FATFS s_sd_disk;
1313
FIL s_file;
1414
BYTE work[FF_MAX_SS];
1515

16-
const TCHAR driver_num_buf[4] = { '0', ':', '/', '\0' };
16+
const TCHAR driver_num_buf[3] = { '0', ':', '\0' };
1717

1818
const char *show_error_string(FRESULT fresult);
1919

0 commit comments

Comments
 (0)