libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
stm32_usb.hpp
1#pragma once
2
3#include "double_buffer.hpp"
4#include "main.h"
5
6#undef USB
7
8#include "usb/core/ep_pool.hpp"
9#include "usb/device/dev_core.hpp"
10
11#if defined(HAL_PCD_MODULE_ENABLED)
12
13typedef enum : uint8_t
14{
15#if (defined(USB_BASE))
16 STM32_USB_FS_DEV,
17#endif
18#if (defined(USB_OTG_FS))
19 STM32_USB_OTG_FS,
20#endif
21#if (defined(USB_OTG_HS))
22 STM32_USB_OTG_HS,
23#endif
24 STM32_USB_DEV_ID_NUM
25} stm32_usb_dev_id_t;
26
27#endif