Moderator: igrr
JimDrew wrote:Nobody knows how to access the API through the Arduino IDE?
I answered prematurely and did not read deep enough back in the thread to get the correct context for you question. Regrets... a bad habit of mine.
That being said, there is the gdbstuf.c which creates the function:
static void ATTR_GDBINIT install_uart_hdlr() {
ets_isr_attach(ETS_UART_INUM, uart_hdlr, NULL);
SET_PERI_REG_MASK(UART_INT_ENA(0), UART_RXFIFO_FULL_INT_ENA|UART_RXFIFO_TOUT_INT_ENA);
ets_isr_unmask((1<<ETS_UART_INUM)); //enable uart interrupt
}
Ray