Skip to content

Commit efd2819

Browse files
author
Espressif Systems
committed
Version 1.4.0(cb4060d9)
1. fix a bug in wifi_send_pkt_freedom; 2. modify driver code due to _xt_isr_attach parameter changed;
1 parent 55de019 commit efd2819

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/driver_lib/driver/hw_timer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ typedef enum { // timer interrupt mode
4949

5050
static void (* user_hw_timer_cb)(void) = NULL;
5151

52-
static void hw_timer_isr_cb(void)
52+
static void hw_timer_isr_cb(void *arg)
5353
{
5454
if (user_hw_timer_cb != NULL) {
5555
(*(user_hw_timer_cb))();

examples/driver_lib/driver/uart.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ uart0_write_char(char c)
8383
}
8484

8585
LOCAL void
86-
uart_rx_intr_handler_ssc(void)
86+
uart_rx_intr_handler_ssc(void *arg)
8787
{
8888
/* uart0 and uart1 intr combine togther, when interrupt occur, see reg 0x3ff20020, bit2, bit0 represents
8989
* uart1 and uart0 respectively
@@ -117,7 +117,7 @@ uart_config(uint8 uart_no, UartDevice *uart)
117117
PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO2_U, FUNC_U1TXD_BK);
118118
} else {
119119
/* rcv_buff size if 0x100 */
120-
_xt_isr_attach(ETS_UART_INUM, uart_rx_intr_handler_ssc);
120+
_xt_isr_attach(ETS_UART_INUM, uart_rx_intr_handler_ssc, NULL);
121121
PIN_PULLUP_DIS(PERIPHS_IO_MUX_U0TXD_U);
122122
PIN_FUNC_SELECT(PERIPHS_IO_MUX_U0TXD_U, FUNC_U0TXD);
123123
}
@@ -421,7 +421,7 @@ uart_init_new(void)
421421
UART_IntrConfig(UART0, &uart_intr);
422422

423423
UART_SetPrintPort(UART0);
424-
UART_intr_handler_register(uart0_rx_intr_handler);
424+
UART_intr_handler_register(uart0_rx_intr_handler, NULL);
425425
ETS_UART_INTR_ENABLE();
426426

427427
/*

lib/libmain.a

0 Bytes
Binary file not shown.

lib/libnet80211.a

-16 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)