Browse Source

Merge pull request #9 from FrankBoesing/patch-1

let user choose PERIODIC_LIST_SIZE
main
Paul Stoffregen 7 years ago
parent
commit
95cefd34df
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      ehci.cpp

+ 4
- 0
ehci.cpp View File

@@ -54,7 +54,11 @@
// slowest rate we can poll interrupt endpoints. Each entry uses
// 12 bytes (4 for a pointer, 8 for bandwidth management).
// Supported values: 8, 16, 32, 64, 128, 256, 512, 1024
#if defined(USBHS_PERIODIC_LIST_SIZE)
#define PERIODIC_LIST_SIZE (USBHS_PERIODIC_LIST_SIZE)
#else
#define PERIODIC_LIST_SIZE 32
#endif

// The EHCI periodic schedule, used for interrupt pipes/endpoints
static uint32_t periodictable[PERIODIC_LIST_SIZE] __attribute__ ((aligned(4096), used));

Loading…
Cancel
Save