4
Chapter 3 Architecture .......................................................................................... 38
3-1 USB Host Stack Overview ................................................................... 39
3-1-1 USB Host Stack Modules .................................................................... 40
3-1-2 USB Host Stack Dependencies ........................................................... 43
3-2 Sending and Receiving Data ............................................................... 44
3-3 Task Model ........................................................................................... 44
3-3-1 Hub Task .............................................................................................. 44
3-3-2 Asynchronous Task ............................................................................. 46
3-4 Enumeration Process ........................................................................... 46
Chapter 4 Configuration ........................................................................................ 48
4-1 Static Stack Configuration ................................................................... 48
4-1-1 USB Host Configuration ...................................................................... 49
4-1-2 USB Classes Configuration ................................................................. 52
4-1-3 Debug Configuration ............................................................................ 53
4-2 Application Specific Configuration ..................................................... 54
4-2-1 Task Priorities ...................................................................................... 55
4-2-2 Task Stack Sizes .................................................................................. 55
4-3 Host Controller Driver Configuration ................................................... 56
4-3-1 Host Controller Configuration Structure ............................................. 56
4-3-2 Host Controller Initialization ................................................................ 58
4-4 Configuration Examples ...................................................................... 62
4-4-1 Single Host Controller and Unique Device ......................................... 63
4-4-2 Single Host Controller and Multiple Devices ...................................... 64
4-4-3 Multi-Host Controllers and Multiple Devices ...................................... 67
Chapter 5 Host Driver Guide ................................................................................. 72
5-1 Host Driver Model ................................................................................ 73
5-2 Host Driver API ..................................................................................... 73
5-3 Interrupt Handling ................................................................................ 77
5-3-1 Single USB ISR Vector with ISR Handler Argument ........................... 78
5-3-2 Single USB ISR Vector ......................................................................... 78
5-3-3 Multiple USB ISR Vectors with ISR Handler Arguments .................... 79
5-3-4 Multiple USB ISR Vectors .................................................................... 79
5-4 Host Controller Driver Configuration ................................................... 80
5-5 Memory Allocation ............................................................................... 80
5-6 CPU and Board Support ...................................................................... 80
5-7 USB Host Controller Driver Functional Model .................................... 82