Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! sys/bhp_msg: add IPC based Bottom Half Processor
Browse files Browse the repository at this point in the history
jia200x committed Aug 18, 2022
1 parent 83d8e1c commit 0a2e7b3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions sys/include/bhp/msg.h
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
*
* @note Offloading ISRs with messages is in general a terrible idea,
* because messages can be lost. Use it with care or prefer
* alternatives such as @ref bhp_event.
* alternatives such as @ref sys_bhp_event.
*
* @brief Bottom Half Processor module for generic IRQ offloading using
* messages.
@@ -21,8 +21,8 @@
* @author José I. Alamos <jose.alamos@haw-hamburg.de>
*/

#ifndef BHP_EVENT_H
#define BHP_EVENT_H
#ifndef BHP_MSG_H
#define BHP_MSG_H

#include "msg.h"
#include "thread.h"
@@ -32,6 +32,9 @@
extern "C" {
#endif

/**
* @brief The message type to trigger Bottom Half Processing
*/
#define BHP_MSG_BH_REQUEST 0x1539

/**
@@ -84,5 +87,5 @@ static inline void bhp_msg_claim_thread(bhp_msg_t *bhp_msg, kernel_pid_t pid)
}
#endif

#endif /* BHP_EVENT_H */
#endif /* BHP_MSG_H */
/** @} */

0 comments on commit 0a2e7b3

Please sign in to comment.