[PATCH 1/3] bsps/xil-ttc: Use interrupt entry

Kinsey Moore kinsey.moore at oarcorp.com
Thu Apr 11 14:27:43 UTC 2024


On Wed, Apr 10, 2024 at 6:16 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> ---
>  bsps/shared/dev/clock/xil-ttc.c | 14 ++++++++++----
>  1 file changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/bsps/shared/dev/clock/xil-ttc.c
> b/bsps/shared/dev/clock/xil-ttc.c
> index 340c428a48..384f23663b 100644
> --- a/bsps/shared/dev/clock/xil-ttc.c
> +++ b/bsps/shared/dev/clock/xil-ttc.c
> @@ -191,18 +191,24 @@ static void
> zynqmp_ttc_clock_driver_support_at_tick(ttc_clock_context *tc)
>    /* Else, something is set up wrong, only match should be enabled */
>  }
>
> +static rtems_interrupt_entry zynqmp_ttc_interrupt_entry;
> +
>  static void zynqmp_ttc_clock_driver_support_install_isr(
>    rtems_interrupt_handler handler
>  )
>  {
>    rtems_status_code sc;
>
> -  sc = rtems_interrupt_handler_install(
> -    BSP_SELECTED_TTC_IRQ,
> -    "Clock",
> -    RTEMS_INTERRUPT_UNIQUE,
> +  rtems_interrupt_entry_initialize(
> +    &zynqmp_ttc_interrupt_entry,
>      handler,
>      &ttc_clock_instance
>

There is a missing comma here preventing compilation.


> +    "Clock"
> +  );
> +  sc = rtems_interrupt_entry_install(
> +    BSP_SELECTED_TTC_IRQ,
> +    RTEMS_INTERRUPT_UNIQUE,
> +    &zynqmp_ttc_interrupt_entry
>    );
>    if ( sc != RTEMS_SUCCESSFUL ) {
>      rtems_fatal_error_occurred(0xdeadbeef);
> --
> 2.35.3
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20240411/edd29eb8/attachment.htm>


More information about the devel mailing list