diff options
| author | hathach <[email protected]> | 2023-07-03 13:09:43 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-07-03 13:09:43 +0700 |
| commit | 04b1a67898cbd32f09cf7ef5384b780afee30e8c (patch) | |
| tree | 5f7ee88c2de9b5a8310fe8eb8060efc1e99b4f66 /src/device/dcd.h | |
| parent | 2b735ee8f5476168d6b5ed1dc32edc52f4d3648a (diff) | |
| parent | f1e006d09bd32088ab421d0b519eb89c531eda4e (diff) | |
Merge branch 'master' into renesas_ra_hs_rebased
Diffstat (limited to 'src/device/dcd.h')
| -rw-r--r-- | src/device/dcd.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index f82b8633d..18a708347 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -108,15 +108,15 @@ typedef struct TU_ATTR_ALIGNED(4) // clean/flush data cache: write cache -> memory. // Required before an DMA TX transfer to make sure data is in memory -void dcd_dcache_clean(void* addr, uint32_t data_size) TU_ATTR_WEAK; +void dcd_dcache_clean(void const* addr, uint32_t data_size) TU_ATTR_WEAK; // invalidate data cache: mark cache as invalid, next read will read from memory // Required BOTH before and after an DMA RX transfer -void dcd_dcache_invalidate(void* addr, uint32_t data_size) TU_ATTR_WEAK; +void dcd_dcache_invalidate(void const* addr, uint32_t data_size) TU_ATTR_WEAK; // clean and invalidate data cache // Required before an DMA transfer where memory is both read/write by DMA -void dcd_dcache_clean_invalidate(void* addr, uint32_t data_size) TU_ATTR_WEAK; +void dcd_dcache_clean_invalidate(void const* addr, uint32_t data_size) TU_ATTR_WEAK; //--------------------------------------------------------------------+ // Controller API @@ -189,6 +189,7 @@ TU_ATTR_WEAK bool dcd_edpt_iso_alloc(uint8_t rhport, uint8_t ep_addr, uint16_t l // Configure and enable an ISO endpoint according to descriptor TU_ATTR_WEAK bool dcd_edpt_iso_activate(uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc); + //--------------------------------------------------------------------+ // Event API (implemented by stack) //--------------------------------------------------------------------+ |
