diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2023-05-01 00:50:55 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2023-05-01 00:50:55 +0200 |
commit | d381db5b1f6a7d7897056adb84ea24f18f2dd0b8 (patch) | |
tree | 411568025c0aa101bd3241416ce192ae9c2a9ab1 /usb/f1_usb_def.h | |
parent | 3eb114c680a63274948700c653dfc263d182171a (diff) |
usb: Update code for stm32_usb and add support for v3.
Diffstat (limited to 'usb/f1_usb_def.h')
-rw-r--r-- | usb/f1_usb_def.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/usb/f1_usb_def.h b/usb/f1_usb_def.h deleted file mode 100644 index 0e42f6f..0000000 --- a/usb/f1_usb_def.h +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef F1_USB_DEF_H -#define F1_USB_DEF_H - -#include <stdint.h> - -class F1_USB_t { - private: - struct F1_USB_reg_t { - volatile uint32_t EPR[16]; - volatile uint32_t CNTR; - volatile uint32_t ISTR; - volatile uint32_t FNR; - volatile uint32_t DADDR; - volatile uint32_t BTABLE; - }; - - struct F1_USB_bufd_t { - volatile uint32_t ADDR_TX; - volatile uint32_t COUNT_TX; - volatile uint32_t ADDR_RX; - volatile uint32_t COUNT_RX; - }; - - public: - F1_USB_reg_t& reg; - F1_USB_bufd_t* bufd; - volatile uint32_t* buf; - - F1_USB_t(uint32_t reg_addr, uint32_t buf_addr) : - reg(*(F1_USB_reg_t*)reg_addr), - bufd((F1_USB_bufd_t*)buf_addr), - buf((volatile uint32_t*)buf_addr) {} -}; - -#endif |