freeRTOS操作系统机器人实现
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.7 KiB

3 days ago
/******************************************************************************
(C), 2018-2099, Radkil
******************************************************************************
: bsp_usb.h
: 稿
: Radkil
: 2026510
:
: bsp_usb.c
:
1. : 2026510
: Radkil
:
******************************************************************************/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
#ifndef __BSP_USB_H__
#define __BSP_USB_H__
#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */
/*==============================================*
* include header files *
*----------------------------------------------*/
#include "bsp_config.h"
#ifdef USE_USB
#include "com.h"
/*==============================================*
* constants or macros define *
*----------------------------------------------*/
#define CONFIG_USB_CDC_BUFFER_SIZE 128
/*==============================================*
* project-wide global variables *
*----------------------------------------------*/
/*==============================================*
* routines' or functions' implementations *
*----------------------------------------------*/
extern TComCtrl *bsp_usb_init(void);
extern void usb_cdc_recv(uint8_t* _pBuffer, uint32_t _iSize);
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#endif /* __BSP_USB_H__ */