From d381db5b1f6a7d7897056adb84ea24f18f2dd0b8 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Mon, 1 May 2023 00:50:55 +0200 Subject: usb: Update code for stm32_usb and add support for v3. --- usb/l0_usb_def.h | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 usb/l0_usb_def.h (limited to 'usb/l0_usb_def.h') diff --git a/usb/l0_usb_def.h b/usb/l0_usb_def.h deleted file mode 100644 index b9d8d10..0000000 --- a/usb/l0_usb_def.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef L0_USB_DEF_H -#define L0_USB_DEF_H - -#include - -class L0_USB_t { - private: - struct L0_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; - volatile uint32_t LPMCSR; - volatile uint32_t BCDR; - }; - - struct L0_USB_bufd_t { - volatile uint16_t ADDR_TX; - volatile uint16_t COUNT_TX; - volatile uint16_t ADDR_RX; - volatile uint16_t COUNT_RX; - }; - - public: - L0_USB_reg_t& reg; - L0_USB_bufd_t* bufd; - volatile uint16_t* buf; - - L0_USB_t(uint32_t reg_addr, uint32_t buf_addr) : - reg(*(L0_USB_reg_t*)reg_addr), - bufd((L0_USB_bufd_t*)buf_addr), - buf((volatile uint16_t*)buf_addr) {} -}; - -#endif -- cgit v1.2.3