Skip to content

Commit

Permalink
cores/usb: Import current state of the USB core
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Munaut <[email protected]>
  • Loading branch information
smunaut committed Apr 3, 2019
0 parents commit 4c273b8
Show file tree
Hide file tree
Showing 20 changed files with 3,894 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CORE := usb

include ../../build/core-rules.mk
34 changes: 34 additions & 0 deletions core.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
CORE := usb

DEPS_usb := misc

RTL_SRCS_usb := $(addprefix rtl/, \
usb.v \
usb_crc.v \
usb_ep_buf.v \
usb_ep_status.v \
usb_phy.v \
usb_rx_ll.v \
usb_rx_pkt.v \
usb_trans.v \
usb_tx_ll.v \
usb_tx_pkt.v \
)

PREREQ_usb := \
$(ROOT)/cores/usb/rtl/usb_defs.vh \
$(BUILD_TMP)/usb_trans_mc.hex \
$(BUILD_TMP)/usb_ep_status.hex

TESTBENCHES_usb := \
usb_ep_buf_tb \
usb_tb \
usb_tx_tb

$(BUILD_TMP)/usb_trans_mc.hex: $(ROOT)/cores/usb/utils/microcode.py
$(ROOT)/cores/usb/utils/microcode.py > $@

$(BUILD_TMP)/usb_ep_status.hex: $(ROOT)/cores/usb/data/usb_ep_status.hex
cp -a $< $@

include $(ROOT)/build/core-magic.mk
1 change: 1 addition & 0 deletions data/capture_usb_raw_short.bin

Large diffs are not rendered by default.

256 changes: 256 additions & 0 deletions data/usb_ep_status.hex
Original file line number Diff line number Diff line change
@@ -0,0 +1,256 @@
0006
0000
0000
0000
4040
0000
0000
0000
0006
0000
0000
0000
4012
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
Loading

0 comments on commit 4c273b8

Please sign in to comment.