Commit cd079c31 authored by Jaco Hofmann's avatar Jaco Hofmann
Browse files

Revert "Recognize separate IAR status and IAR ACK registers"

    * Turns out Vivado changed the interrupt ack register back to 0x0c

This reverts commit e63deaf5.
parent e63deaf5
Pipeline #232 passed with stage
in 3 minutes and 8 seconds
......@@ -55,8 +55,6 @@ tapasco_reg_addr_t tapasco_address_map_func_reg(tapasco_dev_ctx_t *dev_ctx,
return platform_address_get_slot_base(slot_id, 0) + 0x0c;
case TAPASCO_FUNC_REG_RETURN:
return platform_address_get_slot_base(slot_id, 0) + 0x10;
case TAPASCO_FUNC_REG_IAR_ACK:
return platform_address_get_slot_base(slot_id, 0) + 0x1c;
default:
return 0;
}
......
......@@ -36,10 +36,8 @@ typedef enum {
TAPASCO_FUNC_REG_BASE,
/** Control register (start). */
TAPASCO_FUNC_REG_CONTROL,
/** Function interrupt status register (if any). */
TAPASCO_FUNC_REG_IAR,
/** Function interrupt acknowledge register (if any). */
TAPASCO_FUNC_REG_IAR_ACK,
TAPASCO_FUNC_REG_IAR,
/** Register with return value of function (if any). */
TAPASCO_FUNC_REG_RETURN
} tapasco_func_reg_t;
......
......@@ -107,7 +107,7 @@ void tapasco_functions_setup_system(tapasco_dev_ctx_t *dev_ctx, tapasco_function
slot_id, TAPASCO_FUNC_REG_IAR), sizeof(d), &d,
PLATFORM_CTL_FLAGS_NONE);
platform_write_ctl(tapasco_address_map_func_reg(dev_ctx,
slot_id, TAPASCO_FUNC_REG_IAR_ACK), sizeof(d), &d,
slot_id, TAPASCO_FUNC_REG_IAR), sizeof(d), &d,
PLATFORM_CTL_FLAGS_NONE);
d = 1;
}
......
......@@ -127,7 +127,7 @@ tapasco_res_t tapasco_scheduler_launch(
// ack the interrupt
if (platform_write_ctl(tapasco_address_map_func_reg(dev_ctx, slot_id,
TAPASCO_FUNC_REG_IAR_ACK), sizeof(start_cmd), &start_cmd,
TAPASCO_FUNC_REG_IAR), sizeof(start_cmd), &start_cmd,
PLATFORM_CTL_FLAGS_NONE) != PLATFORM_SUCCESS)
return TAPASCO_FAILURE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment