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
16typedef enum : uint8_t
17{
18#if (defined(USB_BASE))
19 STM32_USB_FS_DEV,
20#endif
21#if (defined(USB_OTG_FS))
22 STM32_USB_OTG_FS,
23#endif
24#if (defined(USB_OTG_HS))
25 STM32_USB_OTG_HS,
26#endif
27 STM32_USB_DEV_ID_NUM
28} stm32_usb_dev_id_t;
29
30#endif