From 0b6539c34584396b5ec24203c5e83dcc027d4eca Mon Sep 17 00:00:00 2001 From: Maksim Masalski Date: Fri, 7 May 2021 17:07:32 +0800 Subject: [PATCH] doc: fix display of the ISR_DIRECT_DECLARE example usage In the ISR docs page ISR_DIRECT_DECLARE example usage was not displayed correctly. Signed-off-by: Maksim Masalski --- include/irq.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/include/irq.h b/include/irq.h index 50088742b43..44dc9075aea 100644 --- a/include/irq.h +++ b/include/irq.h @@ -163,16 +163,17 @@ irq_connect_dynamic(unsigned int irq, unsigned int priority, * * Example usage: * - * ISR_DIRECT_DECLARE(my_isr) - * { - * bool done = do_stuff(); - * ISR_DIRECT_PM(); <-- done after do_stuff() due to latency concerns - * if (!done) { - * return 0; <-- Don't bother checking if we have to z_swap() - * } - * k_sem_give(some_sem); - * return 1; - * } + * ISR_DIRECT_DECLARE(my_isr) + * { + * bool done = do_stuff(); + * ISR_DIRECT_PM(); // done after do_stuff() due to latency concerns + * if (!done) { + * return 0; // don't bother checking if we have to z_swap() + * } + * + * k_sem_give(some_sem); + * return 1; + * } * * @param name symbol name of the ISR */