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:
parent
2a74dc26de
commit
0b6539c345
1 changed files with 11 additions and 10 deletions
|
@ -163,16 +163,17 @@ irq_connect_dynamic(unsigned int irq, unsigned int priority,
|
||||||
*
|
*
|
||||||
* Example usage:
|
* Example usage:
|
||||||
*
|
*
|
||||||
* 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);
|
*
|
||||||
* return 1;
|
* k_sem_give(some_sem);
|
||||||
* }
|
* return 1;
|
||||||
|
* }
|
||||||
*
|
*
|
||||||
* @param name symbol name of the ISR
|
* @param name symbol name of the ISR
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue