We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 095454d commit beea327Copy full SHA for beea327
1 file changed
kernel/mailbox/mailbox.c
@@ -9,14 +9,14 @@ void mailbox_init(){
9
10
int mailbox_call(volatile uint32_t* mbox, uint8_t channel) {
11
uint32_t addr = ((uint32_t)(uintptr_t)mbox) & ~0xF;
12
- if (!wait(MBOX_STATUS, MBOX_FULL, false, 2000)){
+ if (!wait(MBOX_STATUS, MBOX_FULL, false, 200)){
13
uart_puts("[MAILBOX] could not find free mailbox slot\n");
14
return false;
15
}
16
MBOX_WRITE = addr | (channel & 0xF);
17
18
while (1) {
19
- if (!wait(MBOX_STATUS, MBOX_EMPTY, false, 2000)){
+ if (!wait(MBOX_STATUS, MBOX_EMPTY, false, 200)){
20
uart_puts("[MAILBOX] No response received\n");
21
22
0 commit comments