core/msg: coding convention cleanup
This commit is contained in:
parent
535839f2d5
commit
b4d9c9e6b7
@ -53,7 +53,8 @@ static int queue_msg(tcb_t *target, const msg_t *m)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int msg_send(msg_t *m, kernel_pid_t target_pid) {
|
int msg_send(msg_t *m, kernel_pid_t target_pid)
|
||||||
|
{
|
||||||
if (inISR()) {
|
if (inISR()) {
|
||||||
return msg_send_int(m, target_pid);
|
return msg_send_int(m, target_pid);
|
||||||
}
|
}
|
||||||
@ -63,7 +64,8 @@ int msg_send(msg_t *m, kernel_pid_t target_pid) {
|
|||||||
return _msg_send(m, target_pid, true, disableIRQ());
|
return _msg_send(m, target_pid, true, disableIRQ());
|
||||||
}
|
}
|
||||||
|
|
||||||
int msg_try_send(msg_t *m, kernel_pid_t target_pid) {
|
int msg_try_send(msg_t *m, kernel_pid_t target_pid)
|
||||||
|
{
|
||||||
if (inISR()) {
|
if (inISR()) {
|
||||||
return msg_send_int(m, target_pid);
|
return msg_send_int(m, target_pid);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user