作者 将狼才鲸 日期 2022-03-26
本子文档所属的上级文档(Gitee仓库): 才鲸 / 嵌入式知识图谱WiKi
https://gitee.com/langcai1943/embedded-knowledge-wiki
电脑USB电压是多少伏
/********************************************************************** * Copyright (C) 2014-2022 Cadence Design Systems, Inc. * All rights reserved worldwide. *********************************************************************** * platform.c * This platform depended code is example of initialization code * for ZC702 Board with Cortex A9 that can be run under Xilinx SDK environment. * * This is only reference file and can vary depending on evnironment * and platform used for running Core Driver and References code. **********************************************************************/
可以参考的USB驱动1:STM32F4xx_HAL_Driver 可以参考的USB驱动2:Mentor Graphics uC/OS-II

1 The Device and Host Special Function Registers ........................................ 18
1.1 The OUT (HCIN) 0 endpoint byte count register (out0bc, hcin0bc)__ 18
1.2 The IN (HCOUT) 0 endpoint byte count register (in0bc, hcout0bc)__ 18
1.3 The 0 endpoint control/status register (ep0cs, hcep0cs)______ 19
1.4 The LPM control low byte register (lpmctrll, hclpmctrll) ______ 21
1.5 The LPM control high byte register (lpmctrlh, hclpmctrlh)_____ 22
1.6 The LPM clock control (lpmclock)____________ 23
1.7 The 0 endpoint fifo register (ep0fifo, hcep0fifo) ________ 23
1.8 The OUT (HCIN) X endpoint byte count register (outxbc, hcinxbc)__ 24
1.9 The OUT (HCIN) X endpoint control register (outxcon, hcinxcon) ___ 26
1.10 The OUT (HCIN) X endpoint control and status register (outxcs, hcinxcs) 27
1.11 The IN (HCOUT) X endpoint byte count register (inxbc, hcoutxbc)__ 29
1.12 The IN (HCOUT) X endpoint control register (inxcon, hcoutxcon) ___ 31
1.13 The IN (HCOUT) X endpoint control and status register (inxcs, hcoutxcs) 32
1.14 The FIFO X data register (fifoxdat, hcfifoxdat) _________ 34
1.15 The HC 0 endpoint control register (hcep0ctrl) _________ 35
1.16 The HCOUT X endpoint error register (hcoutxerr) _______ 36
1.17 The HCIN X endpoint error register (hcinxerr)__________ 37
1.18 The HCOUT X endpoint control register (hcoutxctrl) _______ 39
1.19 The HCIN X endpoint control register (hcinxctrl)________ 39
1.20 The IN (HCOUT) 0 endpoint data buffer (ep0indat, hcep0outdat)_____ 40
1.21 The OUT (HCIN) 0 endpoint data buffer (ep0outdat, hcep0indat)___ 40
1.22 The setup data packet buffer (setupdat) __________ 41
1.23 The IN (HCOUT) X endpoint interrupt request register (inxirq, hcoutxirq) 41
1.24 The OUT (HCIN) X endpoint interrupt request register (outxirq, hcinxirq) 42
1.25 The USB interrupt request register (usbirq, hcusbirq)________ 43
1.26 The external interrupt request register (extirq)_________ 44
1.27 The OUT X endpoint ping interrupt request register (outxpngirq) ___ 45
1.28 The IN (HCOUT) X FIFO full interrupt request register (inxfullirq, hcoutxfullirq) 46
1.29 The OUT (HCIN) X FIFO empty interrupt request register (outxemptirq, hcinxemptirq) ___________________ 47
1.30 The IN (HCOUT) X endpoint interrupt enables (inxien, hcoutxien) __ 48
1.31 The OUT (HCIN) X endpoint interrupt enable register (outxien, hcinxien) 48
1.32 The USB interrupt enable register (usbien, hcusbien) ________ 49
1.33 The external interrupt enable register (extien) _________ 50
1.34 The OUT x ping interrupt enable register (outxpngien) _______ 50
1.35 The IN (HCOUT) x FIFO full interrupt enable register (inxfullien, hcoutxfullien) 51
1.36 The OUT (HCIN) x FIFO empty interrupt enable register (outxemptien, hcinxemptien) ___________________ 52
1.37 The USB interrupt vector register (ivect, hcivect) _______ 53
1.38 The FIFO interrupt vector register (fifoivect, hcfifoivect)______ 53
1.39 The endpoint reset register (endprst, hcendprst) _______ 53
1.40 The USB control and status register (usbcs, hcusbcs)________ 55
1.41 The USB frame counter (frmnr) _____________ 56
1.42 The Function Address register (fnaddr, hcfnaddr) _______ 57
1.43 The Clock Gate register (clkgate, hcclkgate) _________ 57
1.44 The FIFO control register (fifoctrl, hcfifoctrl) _________ 58
1.45 The Speed Control register (speedctrl) ___________ 59
1.46 The Sleep Clock Gate register (sleepclkgate) __________ 59
1.47 The HC Port control register (hcportctrl) __________ 60
1.48 The HC Frame number register (hcfrmnr) _________ 61
1.49 The HC Frame remain register (hcfrmremain)__________ 62
1.50 The HCIN X error interrupt request register (hcinxerrirq) _____ 63
1.51 The HCOUT X error interrupt request register (hcoutxerrirq) ______ 64
1.52 The HCIN X error interrupt enable register (hcinxerrien) _____ 64
1.53 The HCOUT X error interrupt enable register (hcoutxerrien)_____ 65
1.54 The Address Test Register (tr_addr) ___________ 65
1.55 The Write Data Test Register (tr_wdata) __________ 66
1.56 The Read Data Test Register (tr_rdata)___________ 66
1.57 The Control Test Register (tr_ctrl)___________ 67
1.58 The ISO auto-arm register (isoautoarm) __________ 67
1.59 The ISO control register (isodctrl) ___________ 68
1.60 The ISO auto dump enable register (isoautodump)______ 69
1.61 The PHY control 2 register (phyctrl2)___________ 70
1.62 The PHY control 1 register (phyctrl1)___________ 70
1.63 The PHY control 0 register (phyctrl0)___________ 70
1.64 The OUT (HCIN) 0 Max packet size (out0maxpck, hcin0maxpck) _____ 71
1.65 The OUT (HCIN) X Max packet size (outxmaxpck, hcinxmaxpck) ___ 72
1.66 The HCIN X timer value (hcinxtmrh, hcinxtmrl) ________ 73
1.67 The HCIN X timer control/status (hcinxtmr) _________ 74
1.68 The HCOUT X timer value (hcoutxtmrh, hcoutxtmrl)_______ 75
1.69 The HCOUT X timer control/status (hcoutxtmr)_________ 76
1.70 The OUT (HCIN) X Start address (outxstaddr, hcinxstaddr) _____ 77
1.71 The IN (HCOUT) X Start address (inxstaddr, hcoutxstaddr) _____ 79
1.72 The IN X endpoint interrupt mode register (inxirqmode, hcoutxirqmode)_ 80
1.73 The OUT X endpoint interrupt mode register (outxirqmode, hcinxirqmode) _ 81
1.74 The microprocessor control register (cpuctrl) ________ 82
1.75 The microprocessor control register 2 (cpuctrl2)________ 83
1.76 The RX debug byte count register (debug_rx_bc) _______ 83
1.77 The RX debug status register (debug_rx_status) _______ 83
1.78 The debug interrupt request register (debug_irq) _______ 84
1.79 The TX debug byte count register (debug_tx_bc) _______ 85
1.80 The TX debug status register (debug_tx_status)________ 85
1.81 The debug interrupt enable register (debug_ien) _______ 85
1.82 The PHY workarounds enable register (phywa_en) ______ 86
1.83 The PHY workaround 1 counter register (wa1_cnt) ______ 87
1.84 The OTG workaround register (otg_wa) __________ 87
1.85 The ENDIAN SFR control/status register (endian_sfr_cs) _____ 87
1.86 The ENDIAN SFR status register (endian_sfr_s) ________ 89
1.87 The IN (HCOUT) X Max packet size (inxmaxpck, hcoutxmaxpck) ___ 90
2 The OTG Controller Special Function Registers .......................................... 92
2.1 The OTG interrupt request register (otgirq)________ 92
2.2 The OTG FSM state register (otgstate) ___________ 92
2.3 The OTG control register (otgctrl) ___________ 93
2.4 The OTG status register (otgstatus) ___________ 94
2.5 The OTG interrupt enable register (otgien) __________ 94
2.6 The OTG ta_aidl_bdis time register (taaidlbdis) ________ 95
2.7 The OTG ta_wait_bcon time register (tawaitbcon) ______ 96
2.8 The OTG tb_vbus_pls time register (tbvbuspls) ________ 96
2.9 The OTG force register (otgforce) ___________ 97
2.10 The OTG tb_vbus_dischrg_pls time register (tbvbusdispls)____ 97
3 The OTG2 Controller Special Function Registers ........................................ 98
3.1 The OTG2 control register (otg2ctrl) ___________ 98
3.2 The ADP/BC control register 0(adpbcctrl0) __________ 98
3.3 The ADP/BC control register 1 (adpbcctrl1)________ 99
3.4 The ADP/BC control register 2 (adpbcctrl2)________ 99
3.5 The ADP/BC interrupt request register 1 (adpbc1irq) _______ 100
3.6 The ADP/BC interrupt request register 2 (adpbc2irq) _______ 101
3.7 The ADP/BC status register 0 (adpbc0status) _________ 101
3.8 The ADP/BC status register 1 (adpbc1status) _________ 102
3.9 The ADP/BC status register 2 (adpbc2status) _________ 102
3.10 The ADP/BC interrupt enable register 1 (adpbc1ien)________ 103
3.11 The ADP/BC interrupt enable register 2 (adpbc2ien)________ 103
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删