summaryrefslogtreecommitdiff
path: root/bsps/shared/grlib/ascs/grascs.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-18 10:00:46 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-16 07:07:19 +0200
commitf9c8e14dcb578c503c666ffdabe06d28b383700d (patch)
tree77aa2db2612a3ae85b09218a561f23db3e1d6a7f /bsps/shared/grlib/ascs/grascs.c
parentc15c520b96363966c0087a997ea6db10f52451f4 (diff)
grlib: Add ambapp_common_info to derived types
This avoids a cast in DEV_TO_COMMON().
Diffstat (limited to 'bsps/shared/grlib/ascs/grascs.c')
-rw-r--r--bsps/shared/grlib/ascs/grascs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/shared/grlib/ascs/grascs.c b/bsps/shared/grlib/ascs/grascs.c
index 030faaa44c..200cf67409 100644
--- a/bsps/shared/grlib/ascs/grascs.c
+++ b/bsps/shared/grlib/ascs/grascs.c
@@ -74,7 +74,7 @@ static int ASCS_get_addr(int *base, int *irq) {
if(ambapp_find_apbslv(&ambapp_plb, VENDOR_GAISLER, GAISLER_ASCS, &core) == 1) {
*base = core.start;
- *irq = core.irq;
+ *irq = core.common.irq;
DBG("ASCS_get_addr: Registerd ASCS core at 0x%x with irq %i\n",core.start, core.irq);
return 0;
}