diff --git a/src/target/adiv5.c b/src/target/adiv5.c index 778cd0c..8c82a31 100644 --- a/src/target/adiv5.c +++ b/src/target/adiv5.c @@ -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: diff --git a/src/target/adiv5.h b/src/target/adiv5.h index c72a7a4..1ae53bd 100644 --- a/src/target/adiv5.h +++ b/src/target/adiv5.h @@ -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