v01d commented on a change in pull request #1893:
URL: https://github.com/apache/incubator-nuttx/pull/1893#discussion_r494718603



##########
File path: arch/xtensa/src/esp32/Make.defs
##########
@@ -136,3 +136,36 @@ ifeq ($(CONFIG_ARCH_USE_MODULE_TEXT),y)
 CHIP_CSRCS += esp32_modtext.c
 CMN_ASRCS += xtensa_loadstore.S
 endif
+
+ifeq ($(CONFIG_ESP32_WIRELESS),y)
+WIRELESS_DRV_UNPACK  = esp-wireless-drivers-3rdparty
+WIRELESS_DRV_ZIP     = master.zip
+WIRELESS_DRV_URL     = 
https://github.com/espressif/esp-wireless-drivers-3rdparty/archive

Review comment:
       `esp32_wifi_adapter.c` is mainly contains of `OS adapter` fucntions, 
like `task, semaphore, mutex, message queue`, even including `libc`, `log`, 
`file system` and so on. So it mainly have no specific logic.
   
   It would be better to split this file then into different files, each with a 
specific function. It will be easier to review and maintain.
   
   But please try to add some general comment of what the code is doing, how 
this adapting layer works, etc.

##########
File path: arch/xtensa/src/esp32/Make.defs
##########
@@ -136,3 +136,36 @@ ifeq ($(CONFIG_ARCH_USE_MODULE_TEXT),y)
 CHIP_CSRCS += esp32_modtext.c
 CMN_ASRCS += xtensa_loadstore.S
 endif
+
+ifeq ($(CONFIG_ESP32_WIRELESS),y)
+WIRELESS_DRV_UNPACK  = esp-wireless-drivers-3rdparty
+WIRELESS_DRV_ZIP     = master.zip
+WIRELESS_DRV_URL     = 
https://github.com/espressif/esp-wireless-drivers-3rdparty/archive

Review comment:
       > `esp32_wifi_adapter.c` is mainly contains of `OS adapter` fucntions, 
like `task, semaphore, mutex, message queue`, even including `libc`, `log`, 
`file system` and so on. So it mainly have no specific logic.
   
   It would be better to split this file then into different files, each with a 
specific function. It will be easier to review and maintain.
   
   But please try to add some general comment of what the code is doing, how 
this adapting layer works, etc.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to