38#define BHP_MSG_BH_REQUEST 0x1539
#define assert(cond)
abort the program if assertion is false
int16_t kernel_pid_t
Unique process identifier.
static void bhp_msg_handler(msg_t *msg)
Handle a Bottom Half Processor message with type BHP_MSG_BH_REQUEST.
#define BHP_MSG_BH_REQUEST
The message type to trigger Bottom Half Processing.
void bhp_msg_init(bhp_msg_t *bhp_msg, bhp_cb_t cb, void *ctx)
Init a Bottom Half Processor to be used with messages.
void bhp_msg_isr_cb(void *bhp_msg_ctx)
Message based Bottom Half Processor ISR callback To be called from ISR in order to trigger the Bottom...
static void bhp_msg_claim_thread(bhp_msg_t *bhp_msg, kernel_pid_t pid)
Claim a thread with a message queue to be used as Bottom Half Processor.
static void bhp_irq_handler(bhp_t *bhp)
Call the IRQ handler associated to a Bottom Half Processor descriptor.
void(* bhp_cb_t)(void *arg)
A Bottom Half Processor callback.
Message based Bottom Half Processor descriptor.
bhp_t bhp
Bottom Half Processor descriptor.
msg_t msg
Message containing the Bottom Half Processing request.
kernel_pid_t pid
PID of the thread that process the Bottom Half Processor.
Bottom Half Processor descriptor.
Describes a message object which can be sent between threads.
union msg_t::@1 content
Content of the message.
void * ptr
Pointer content field.
Definitions for parsing and composition of DNS messages.