USBHost custom library.
Dependents: GR-PEACH_HVC-P2_sample_client mbed-os-storage-access GR-PEACH_Digital_Signage GR-PEACH_Audio_Playback_Sample ... more
Fork of USBHost by
Revision 34:028508fd50fa, committed 2016-02-18
- Comitter:
- mbed_official
- Date:
- Thu Feb 18 09:46:13 2016 +0000
- Parent:
- 33:6c4cab4d356f
- Child:
- 35:f72ccc6892ee
- Commit message:
- Synchronized with git revision b57f7d56840134d072ca567460a86b77fb7adcf8
Full URL: https://github.com/mbedmicro/mbed/commit/b57f7d56840134d072ca567460a86b77fb7adcf8/
Support of export function to the IAR.
Changed in this revision
--- a/USBHost/USBEndpoint.cpp Fri Dec 11 16:16:06 2015 +0000 +++ b/USBHost/USBEndpoint.cpp Thu Feb 18 09:46:13 2016 +0000 @@ -140,7 +140,7 @@ //Now add this free TD at this end of the queue state = USB_TYPE_PROCESSING; - td_current->nextTD = td_next; + td_current->nextTD = (hcTd*)td_next; hced->tailTD = td_next; } @@ -158,5 +158,5 @@ void USBEndpoint::queueEndpoint(USBEndpoint * ed) { nextEp = ed; - hced->nextED = (ed == NULL) ? 0 : ed->getHCED(); + hced->nextED = (ed == NULL) ? 0 : (hcEd*)(ed->getHCED()); }
--- a/USBHost/USBHost.cpp Fri Dec 11 16:16:06 2015 +0000 +++ b/USBHost/USBHost.cpp Thu Feb 18 09:46:13 2016 +0000 @@ -304,7 +304,7 @@ do { volatile HCTD* td = (volatile HCTD*)addr; addr = (uint32_t)td->nextTD; //Dequeue from physical list - td->nextTD = tdList; //Enqueue into reversed list + td->nextTD = (hcTd*)tdList; //Enqueue into reversed list tdList = td; } while(addr);
--- a/USBHost/USBHostTypes.h Fri Dec 11 16:16:06 2015 +0000 +++ b/USBHost/USBHostTypes.h Thu Feb 18 09:46:13 2016 +0000 @@ -136,10 +136,10 @@ #define CONFIGURATION_DESCRIPTOR_LENGTH 0x09 // ------------ HostController Transfer Descriptor ------------ -typedef struct HCTD { +typedef struct hcTd { __IO uint32_t control; // Transfer descriptor control __IO uint8_t * currBufPtr; // Physical address of current buffer pointer - __IO HCTD * nextTD; // Physical pointer to next Transfer Descriptor + __IO hcTd * nextTD; // Physical pointer to next Transfer Descriptor __IO uint8_t * bufEnd; // Physical address of end of buffer void * ep; // ep address where a td is linked in uint32_t dummy[3]; // padding