adiv5: Export extract.
This commit is contained in:
parent
eee16cf08a
commit
783ec377d9
|
@ -586,7 +586,7 @@ static void ap_mem_access_setup(ADIv5_AP_t *ap, uint32_t addr, enum align align)
|
|||
}
|
||||
|
||||
/* Extract read data from data lane based on align and src address */
|
||||
static void * extract(void *dest, uint32_t src, uint32_t val, enum align align)
|
||||
void * extract(void *dest, uint32_t src, uint32_t val, enum align align)
|
||||
{
|
||||
switch (align) {
|
||||
case ALIGN_BYTE:
|
||||
|
|
|
@ -197,4 +197,5 @@ void adiv5_mem_write(ADIv5_AP_t *ap, uint32_t dest, const void *src, size_t len)
|
|||
void adiv5_mem_write_sized(ADIv5_AP_t *ap, uint32_t dest, const void *src,
|
||||
size_t len, enum align align);
|
||||
uint64_t adiv5_ap_read_pidr(ADIv5_AP_t *ap, uint32_t addr);
|
||||
void * extract(void *dest, uint32_t src, uint32_t val, enum align align);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue