Closed ashareye closed 6 years ago
As a starting point, you can have a look to extras/stdin_uart_interrupt/stdin_uart_interrupt.c
. It has code to configure, set an interrupt handler and enable the receive interrupt for UART 0.
thank you for reply, yes I saw the "extras/stdin_uart_interrupt/stdin_uart_interrupt.c", but when I try to turn off the all system printf function like #400, it didn't work, even I redefine "#define printf(...) ets_printf(__VA_ARGS__)" in plamform.h. how can I do then? Any suggestion is appreciated.
thanks again.
for example, I compiled the examples/simple and changed it to run in AP mode with DHCP, when pc connected the AP-wifi, it always printed "station: 68:db:ca:4c:e2:74 join/leave, AID = 1" & "rm match", but I couldn't find the string "station:" in any source code, where does it come from and how can I git rid of it ???
I found the way but not sure it always work.
printf sdk_printf
& ets_printf sdk_ets_printf
in lib/allsymbols.renameint sdk_ets_printf(const char *format, ...) { return 0; }
int sdk_printf(const char *format, ...) { return 0; }
#define printf sdk_printf
in main.c if you want turn off printf at allthen it print nothing with uart
Hi
I want to write a special uart driver with some equipments. But I cannot find any way to change ISR of uart 0, just like lib-driver in the original esp-rtos-sdk.
Please give me some advice thank you!
Your sincerely