usbclose.c

来自「How to control USB interface under SZ pl」· C语言 代码 · 共 15 行

C
15
字号
// When the driver is closed by it's called, the driver status will be changed
// to "not ready".

#include "usb_pptt.h"
#include "usb_pvar.h"
#include "usb_pdef.h"
#include "DMA_pptt.h"

STATUS _UsbClose(void)
{
    _gUsbDrvStatus[0] = _gUsbDrvStatus[1] = USB_DRV_NOT_READY;  

    return SYS_OK;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?