kernel: Change k_is_in_isr to return bool
Change this function to return a boolean type. MISRA-C rule 14.4 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
09e362e0d0
commit
6a4a86e413
2 changed files with 4 additions and 4 deletions
|
@ -1110,10 +1110,10 @@ extern void k_sched_time_slice_set(s32_t slice, int prio);
|
|||
*
|
||||
* @note Can be called by ISRs.
|
||||
*
|
||||
* @return 0 if invoked by a thread.
|
||||
* @return Non-zero if invoked by an ISR.
|
||||
* @return false if invoked by a thread.
|
||||
* @return true if invoked by an ISR.
|
||||
*/
|
||||
extern int k_is_in_isr(void);
|
||||
extern bool k_is_in_isr(void);
|
||||
|
||||
/**
|
||||
* @brief Determine if code is running in a preemptible thread.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue