26 lines
470 B
C
26 lines
470 B
C
#ifndef __USBD_H__
|
|
#define __USBD_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "app_config.h"
|
|
|
|
#if (DEF_USBD_ENABLED)
|
|
void usbd_init(void);
|
|
int32_t usbd_ser_write(uint8_t *p_data, uint32_t size, TickType_t timeout);
|
|
int32_t usbd_ser_read(uint8_t *p_data, uint32_t size, TickType_t timeout);
|
|
#else
|
|
#define usbd_init()
|
|
#define usbd_ser_write(...);
|
|
#define usbd_ser_read(...);
|
|
|
|
#endif /* ! DEF_FS_ENABLED */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ! __USBD_H__ */
|