ESP8266_RTOS_SDK中的uart0_rx_intr_handler如何使用?
-
- Posts: 10
- Joined: Sun Jan 03, 2016 12:57 pm
ESP8266_RTOS_SDK中的uart0_rx_intr_handler如何使用?
Postby Nicholas3388 » Sat Jan 16, 2016 11:44 pm
uart0_rx_intr_handler的参数如何使用?example/driver_lib中的uart.c给出的例子中没用到这个参数?
Re: ESP8266_RTOS_SDK中的uart0_rx_intr_handler如何使用?
Postby ESP_Faye » Mon Jan 18, 2016 4:17 pm
您好,
您可以自行设置传入的参数。
例如:
ETS_UART_INTR_ATTACH(uart0_rx_intr_handler, &(UartDev.rcv_buff));
那么函数 uart0_rx_intr_handler 的参数,就是指向 UartDev.rcv_buff 的指针。
感谢您对 ESP8266 的关注!
您可以自行设置传入的参数。
例如:
ETS_UART_INTR_ATTACH(uart0_rx_intr_handler, &(UartDev.rcv_buff));
那么函数 uart0_rx_intr_handler 的参数,就是指向 UartDev.rcv_buff 的指针。
感谢您对 ESP8266 的关注!
Who is online
Users browsing this forum: No registered users and 18 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.