MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / modMessagePostToMachineFromISR

Function modMessagePostToMachineFromISR

xs/platforms/esp/xsHost.c:1025–1039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1023}
1024
1025int modMessagePostToMachineFromISR(xsMachine *the, modMessageDeliver callback, void *refcon)
1026{
1027 modMessageRecord msg;
1028 portBASE_TYPE ignore;
1029
1030 msg.message = NULL;
1031 msg.length = 0;
1032 msg.callback = callback;
1033 msg.refcon = refcon;
1034 msg.embeddedMessage = 0;
1035
1036 if (pdTRUE == xQueueSendToBackFromISR(the->msgQueue, &msg, &ignore))
1037 return 0;
1038 return -1;
1039}
1040
1041void modMessageService(xsMachine *the, int maxDelayMS)
1042{

Callers 15

qdec_event_handlerFunction · 0.50
rmtTransmitCompleteFunction · 0.50
digitalMonitorISRFunction · 0.50
digitalMonitorISRFunction · 0.50
gpioISRFunction · 0.50
digitalMonitorISRFunction · 0.50
ble_radio_evtFunction · 0.50
touchpadISRFunction · 0.50
io_uart_handlerFunction · 0.50
serial_uart_isrFunction · 0.50
uart_irqFunction · 0.50
serial_isrFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected