feat(ieee802154): make the receive done handler feature mandatory
This commit is contained in:
@@ -25,9 +25,8 @@
|
||||
#include "protocol_examples_common.h"
|
||||
#include "esp_zigbee_gateway.h"
|
||||
|
||||
#include "esp_vfs_dev.h"
|
||||
#include "esp_vfs_usb_serial_jtag.h"
|
||||
#include "driver/usb_serial_jtag.h"
|
||||
#include "driver/uart_vfs.h"
|
||||
#include "driver/usb_serial_jtag_vfs.h"
|
||||
|
||||
#if (!defined ZB_MACSPLIT_HOST && defined ZB_MACSPLIT_DEVICE)
|
||||
#error Only Zigbee gateway host device should be defined
|
||||
@@ -44,9 +43,9 @@ esp_err_t esp_zb_gateway_console_init(void)
|
||||
setvbuf(stdin, NULL, _IONBF, 0);
|
||||
|
||||
/* Minicom, screen, idf_monitor send CR when ENTER key is pressed */
|
||||
esp_vfs_dev_usb_serial_jtag_set_rx_line_endings(ESP_LINE_ENDINGS_CR);
|
||||
usb_serial_jtag_vfs_set_rx_line_endings(ESP_LINE_ENDINGS_CR);
|
||||
/* Move the caret to the beginning of the next line on '\n' */
|
||||
esp_vfs_dev_usb_serial_jtag_set_tx_line_endings(ESP_LINE_ENDINGS_CRLF);
|
||||
usb_serial_jtag_vfs_set_tx_line_endings(ESP_LINE_ENDINGS_CRLF);
|
||||
|
||||
/* Enable non-blocking mode on stdin and stdout */
|
||||
fcntl(fileno(stdout), F_SETFL, O_NONBLOCK);
|
||||
@@ -54,8 +53,8 @@ esp_err_t esp_zb_gateway_console_init(void)
|
||||
|
||||
usb_serial_jtag_driver_config_t usb_serial_jtag_config = USB_SERIAL_JTAG_DRIVER_CONFIG_DEFAULT();
|
||||
ret = usb_serial_jtag_driver_install(&usb_serial_jtag_config);
|
||||
esp_vfs_usb_serial_jtag_use_driver();
|
||||
esp_vfs_dev_uart_register();
|
||||
usb_serial_jtag_vfs_use_driver();
|
||||
uart_vfs_dev_register();
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -31,9 +31,3 @@ CONFIG_ZB_ENABLED=y
|
||||
CONFIG_ZB_ZCZR=y
|
||||
# end of Zboss
|
||||
# end of Component config
|
||||
|
||||
#
|
||||
# IEEE802154
|
||||
#
|
||||
CONFIG_IEEE802154_RECEIVE_DONE_HANDLER=y
|
||||
# end of IEEE802154
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
## IDF Component Manager Manifest File
|
||||
dependencies:
|
||||
espressif/esp-zboss-lib: "~1.0.9"
|
||||
espressif/esp-zigbee-lib: "~1.0.9"
|
||||
espressif/esp-zboss-lib: "1.0.9"
|
||||
espressif/esp-zigbee-lib: "1.0.9"
|
||||
## Required IDF version
|
||||
idf:
|
||||
version: ">=5.0.0"
|
||||
|
||||
@@ -14,10 +14,4 @@ CONFIG_PARTITION_TABLE_MD5=y
|
||||
CONFIG_ZB_ENABLED=y
|
||||
CONFIG_ZB_RCP=y
|
||||
# end of ZBOSS Source
|
||||
|
||||
#
|
||||
# IEEE802154
|
||||
#
|
||||
CONFIG_IEEE802154_RECEIVE_DONE_HANDLER=y
|
||||
# end of IEEE802154
|
||||
# end of Component config
|
||||
|
||||
@@ -28,10 +28,4 @@ CONFIG_MBEDTLS_ECJPAKE_C=y
|
||||
CONFIG_ZB_ENABLED=y
|
||||
CONFIG_ZB_ZED=y
|
||||
# end of Zboss
|
||||
|
||||
#
|
||||
# IEEE802154
|
||||
#
|
||||
CONFIG_IEEE802154_RECEIVE_DONE_HANDLER=y
|
||||
# end of IEEE802154
|
||||
# end of Component config
|
||||
|
||||
@@ -27,6 +27,5 @@ CONFIG_MBEDTLS_ECJPAKE_C=y
|
||||
#
|
||||
CONFIG_ZB_ENABLED=y
|
||||
CONFIG_ZB_ZCZR=y
|
||||
CONFIG_IEEE802154_RECEIVE_DONE_HANDLER=y
|
||||
# end of Zboss
|
||||
# end of Component config
|
||||
|
||||
Reference in New Issue
Block a user