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 <maksim.masalski@intel.com>
This commit is contained in:
Maksim Masalski 2021-05-07 17:07:32 +08:00 committed by Anas Nashif
commit 0b6539c345

View file

@ -166,10 +166,11 @@ irq_connect_dynamic(unsigned int irq, unsigned int priority,
* ISR_DIRECT_DECLARE(my_isr) * ISR_DIRECT_DECLARE(my_isr)
* { * {
* bool done = do_stuff(); * bool done = do_stuff();
* ISR_DIRECT_PM(); <-- done after do_stuff() due to latency concerns * ISR_DIRECT_PM(); // done after do_stuff() due to latency concerns
* if (!done) { * if (!done) {
* return 0; <-- Don't bother checking if we have to z_swap() * return 0; // don't bother checking if we have to z_swap()
* } * }
*
* k_sem_give(some_sem); * k_sem_give(some_sem);
* return 1; * return 1;
* } * }