[GitHub] [nuttx] masayuki2009 commented on pull request #9577: riscv/fpu: Implement correct lazy-FPU functionality (attempt #2)

2023-07-27 Thread via GitHub


masayuki2009 commented on PR #9577:
URL: https://github.com/apache/nuttx/pull/9577#issuecomment-1655050353

   > Could you @masayuki2009 verify with actual hardware that it works ? I 
think we should not merge before this is verified with HW.
   
   @pussuw 
   I confirmed that the latest PR works with the Sipeed Maix Bit (K210).
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] Donny9 opened a new pull request, #9939: fs/procfs: call the close of each component when procfs_close

2023-07-27 Thread via GitHub


Donny9 opened a new pull request, #9939:
URL: https://github.com/apache/nuttx/pull/9939

   ## Summary
   fs/procfs: call the close of each component when procfs_close
   ## Impact
   
   ## Testing
   daily test
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] Donny9 opened a new pull request, #9937: drivers/mmcsd_sdio: config timout to write one data block

2023-07-27 Thread via GitHub


Donny9 opened a new pull request, #9937:
URL: https://github.com/apache/nuttx/pull/9937

   
   
   ## Summary
   drivers/mmcsd_sdio: config timout to write one data block
   
   Some hardware needs to config this delay to write one data block, because 
   the hardware needs more time to wear leveling and bad block manage.
   ## Impact
   
   ## Testing
   local test
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] JianyuWang0623 opened a new pull request, #9936: Add txt partition table parser

2023-07-27 Thread via GitHub


JianyuWang0623 opened a new pull request, #9936:
URL: https://github.com/apache/nuttx/pull/9936

   ## Summary
   A text format partition table stored in last eraseblock.
   
   The 1st line must be "Magic+Version", current is "TXTABLE0".
   The 2nd (and belows) is/are partition entry/ies, in format: "%s %zx 
%zx"(means name, size and offset(byte)(in hex))
   Size or offset can be default zero(means zero(only for 1st entry) or 
caculate), and will be caculated ref to previous and next entries.
   The last eraseblock will be registered as pseudo partition named "txtable".
   
   To avoid problems of PTABLE: In case of multiple NuttX binary, partition 
table maybe out of sync.
   
   And is more eaiser:
   1. Text format with simple rules(name + size + offset).
   2. Size or offset can be default(caculated refs to previous and next 
entries).
   3. Support backup table(eg. /etc/txtable.txt in ROMFS)
   
   Size / Offset can be automatically calculated, case:
  1. The offset of the first entry is zero, and the offset of other entries 
is zero: automatic calculation;
  2. The size of the last entry is zero: fill to the end of the entire 
Flash (keep the last eraseblock); the size of other entries is zero: 
automatically calculated(next.offset - current.offset);
  3. Typical case 1: The size of all entries is zero (calculated 
automatically), and the offset is non-zero;
  4. Typical case 2: The size and offset of a certain entry are all zero, 
but the size and offset of two adjacent entries are all non-zero;
   
   ## Impact
   Disabled by default.
   
   ## Testing
   ### 1. Both size and offset are zero, and not reserve last eraseblock
   **txtable.txt**
   ```
   TXTABLE0
   partition1 0x6C000 0x4000 
   partition2 0x1 0x7 
   partition3 0x8 0x8 
   partition4 0x8 0x10 
   partition5 0x28 0x18 
   partition6 0x8 0 
   partition7 0x1 0x48 
   data 0xb0 0x50
   ```
   **Parsed**
   Reserved last eraseblock, and gap between partition7 and data is kept.
   (name + offset + size:)
   ```
> /dev/partition1, 0x4000, 0x6c000 
> /dev/partition2, 0x7, 0x1 
> /dev/partition3, 0x8, 0x8 
> /dev/partition4, 0x10, 0x8 
> /dev/partition5, 0x18, 0x28 
> /dev/partition6, 0x40, 0x8 
> /dev/partition7, 0x48, 0x1 
> /dev/data, 0x50, 0xaff000
   ```
   ### 2. More than one not set size or offset
   **txtable.txt**
   ```
   TXTABLE0
   partition1 0x6C000 0x4000 
   partition2 0 0x7 
   partition3 0 0x8 
   partition4 0 0x10 
   partition5 0x28 0x18 
   partition6 0x8 0 
   partition7 0x1 0x48 
   data 0 0x50
   ```
   **Parsed**
   Size of partition[2,3,4,6] and data are caculated, and gap between 
partition7 and data is kept.
   
   ```
> /dev/partition1, 0x4000, 0x6c000 
> /dev/partition2, 0x7, 0x1 
> /dev/partition3, 0x8, 0x8 
> /dev/partition4, 0x10, 0x8 
> /dev/partition5, 0x18, 0x28 
> /dev/partition6, 0x40, 0x8 
> /dev/partition7, 0x48, 0x1 
> /dev/data, 0x50, 0xaff000
   ```
   ### 3. Only one partition entry, and size not spec
   **txtable.txt**
   ```
   TXTABLE0
   partition1 0x0 0x4000 
   
   ```
   **Paresd**
   The last eraseblock was kept, and size is correct.
   ```
> /dev/partition1, 0x4000, 0xffb000 
   ```
   ### 4. Blank line && New line delim
   **txtable.txt**
   New line: CR + LF  /  LF
   ```
   TXTABLE0
   partition1 0x6C000 0x4000 
   partition2 0 0x7 
   partition3 0 0x8 
   partition4 0 0x10 
   partition5 0x28 0x18 
   partition6 0x8 0x40
   partition7 0x1 0x48 
   data 0 0x50
   
   
   
   
   ```
   **Parsed**
   Blank lines are ignored, and new line of both "LF" or "CRLF" are parsed.
   ```
> /dev/partition1, 0x4000, 0x6c000 
> /dev/partition2, 0x7, 0x1 
> /dev/partition3, 0x8, 0x8 
> /dev/partition4, 0x10, 0x8 
> /dev/partition5, 0x18, 0x28 
> /dev/partition6, 0x40, 0x8 
> /dev/partition7, 0x48, 0x1 
> /dev/data, 0x50, 0xaff000
   ```


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] Donny9 opened a new pull request, #9935: sim/hostfs: fix issue about access file with size more than 2GB

2023-07-27 Thread via GitHub


Donny9 opened a new pull request, #9935:
URL: https://github.com/apache/nuttx/pull/9935

   ## Summary
   sim/hostfs:  fix issue about access file with size more than 2GB
   ## Impact
   access file more than 2GB
   ## Testing
   local test
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] Donny9 opened a new pull request, #9934: nuttx/bits.h: support GENMASK and GENMASK_ULL

2023-07-27 Thread via GitHub


Donny9 opened a new pull request, #9934:
URL: https://github.com/apache/nuttx/pull/9934

   
   
   ## Summary
   do GENMASK and GENMASK_ULL marco.
   Ref to https://github.com/torvalds/linux/blob/master/include/linux/bits.h
   ## Impact
   add GENMASK and GENMASK_ULL marco.
   ## Testing
   local test
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] Donny9 opened a new pull request, #9933: mmap/tmpfs: support mmap for tmpfs

2023-07-27 Thread via GitHub


Donny9 opened a new pull request, #9933:
URL: https://github.com/apache/nuttx/pull/9933

   ## Summary
   mmap/tmpfs: support mmap for tmpfs
   ## Impact
   support mmap for tmpfs
   add sanity check for munmap
   ## Testing
   local test and ltp.
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] dabao-baba opened a new pull request, #9932: video driver support multiple instance

2023-07-27 Thread via GitHub


dabao-baba opened a new pull request, #9932:
URL: https://github.com/apache/nuttx/pull/9932

   ## Summary
   
   ## Impact
   
   ## Testing
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] Donny9 opened a new pull request, #9931: driver/mtd/ftl: support to skip bad block for earse/bread/bwrite

2023-07-27 Thread via GitHub


Donny9 opened a new pull request, #9931:
URL: https://github.com/apache/nuttx/pull/9931

   
   
   ## Summary
   driver/mtd/ftl: support to skip bad block for earse/bread/bwrite
   ## Impact
   1.support to use dd commond to burn romfs image to nand flash 
   2.support bare-write nand flash device without file system
   ## Testing
   daily test
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] Donny9 opened a new pull request, #9930: misc/rwbuffer: using unify lock function for lock and unlock

2023-07-27 Thread via GitHub


Donny9 opened a new pull request, #9930:
URL: https://github.com/apache/nuttx/pull/9930

   
   
   ## Summary
   misc/rwbuffer: using unify lock function for lock and unlock
   
   if disable CONFIG_DRVR_WRITEBUFFER, the lock and unlock will misc match.
   ## Impact
   lock/unlock using.
   ## Testing
   daily test
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] Donny9 opened a new pull request, #9929: fs/pseudo-file: support pseudo-file operation

2023-07-27 Thread via GitHub


Donny9 opened a new pull request, #9929:
URL: https://github.com/apache/nuttx/pull/9929

   ## Summary
   fs/pseudo-file: support pseudo-file operation
   ## Impact
   we can open/close/write/read/unlink pseudo file under rootfs when enable 
config PSEUDOFS_FILE.
   ## Testing
   local test
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] Donny9 opened a new pull request, #9928: net/rpmsg: get credentials between client and server

2023-07-27 Thread via GitHub


Donny9 opened a new pull request, #9928:
URL: https://github.com/apache/nuttx/pull/9928

   ## Summary
   net/rpmsg: get credentials between client and server
   ## Impact
   support to get credentials, like local socket.
   ## Testing
   local test
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] Donny9 opened a new pull request, #9927: vfs/dup: add nonblock flag to avoid happening block when dup

2023-07-27 Thread via GitHub


Donny9 opened a new pull request, #9927:
URL: https://github.com/apache/nuttx/pull/9927

   ## Summary
   vfs/dup: add nonblock flag to avoid happening block when dup
   ## Impact
   avoid dup block when child task creating.
   ## Testing
   daily test
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] yangyalei opened a new pull request, #9925: vfs: return OK when fsync dir

2023-07-27 Thread via GitHub


yangyalei opened a new pull request, #9925:
URL: https://github.com/apache/nuttx/pull/9925

   vfs: return OK when fsync dir
   
   Signed-off-by: yangyalei 
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] yangjiao-xiaomi opened a new pull request, #9924: fs/semaphore: fix sem_open

2023-07-27 Thread via GitHub


yangjiao-xiaomi opened a new pull request, #9924:
URL: https://github.com/apache/nuttx/pull/9924

   ## Summary
   update the logic when the semaphore name length is greater than PATH_MAX or 
a component length is greater than NAME_MAX.
   
   Follow the POSIX specification in 
https://pubs.opengroup.org/onlinepubs/9699919799/functions/sem_open.html, 
update the logic for condition that the semaphore name length is greater than 
PATH_MAX or a component length is greater than NAME_MAX.
   
   ## Impact
   
   ## Testing
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx-apps] zzby0 commented on pull request #1857: ostest: sigprocmask testcase fix

2023-07-27 Thread via GitHub


zzby0 commented on PR #1857:
URL: https://github.com/apache/nuttx-apps/pull/1857#issuecomment-1654947848

   I change sched/signal/sig_procmask.c together, commit is here: 
https://github.com/apache/nuttx/pull/9923


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] zzby0 commented on pull request #9923: ltp: sigprocmask fix

2023-07-27 Thread via GitHub


zzby0 commented on PR #9923:
URL: https://github.com/apache/nuttx/pull/9923#issuecomment-1654946456

   ostest change commit is here: https://github.com/apache/nuttx-apps/pull/1857


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] zzby0 opened a new pull request, #9923: ltp: sigprocmask fix

2023-07-27 Thread via GitHub


zzby0 opened a new pull request, #9923:
URL: https://github.com/apache/nuttx/pull/9923

   ## Summary
   problem: SIGKILL and SIGSTOP should not be added in signal mask;
   solution: check before adding signal to signal mask
   
   ## Impact
   ostest: sigprocmask (under /apps/testing/ostest) will fail, so I change 
ostest: sigprocmask.c together
   ## Testing
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] Donny9 opened a new pull request, #9922: driver/adc: fill in missing parameters about adc driver

2023-07-27 Thread via GitHub


Donny9 opened a new pull request, #9922:
URL: https://github.com/apache/nuttx/pull/9922

   ## Summary
   driver/adc: fill in missing parameters about adc driver
   ## Impact
   call ADC_RXINT  correctly.
   ## Testing
   daily test
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx-apps] zzby0 opened a new pull request, #1857: ostest: sigprocmask testcase fix

2023-07-27 Thread via GitHub


zzby0 opened a new pull request, #1857:
URL: https://github.com/apache/nuttx-apps/pull/1857

   ## Summary
   fix ostest sigprocmask testcase
   problem: signal "SIGSTOP" and "SIGKILL" shouldn't be in sigprocmask
   
   ## Impact
   
   ## Testing
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] Donny9 opened a new pull request, #9921: driver/spi_slave: enhance spi_slave driver

2023-07-27 Thread via GitHub


Donny9 opened a new pull request, #9921:
URL: https://github.com/apache/nuttx/pull/9921

   ## Summary
   driver/spi_slave: Simplify rx/tx buffer logic
   
   1. send user data directly without memcpy
   2. add qpoll check before enqueue
   
   driver/spi_slave: support spi_slave asynchronous
   
   1. support spi slave device poll
   2. support read non-block/block mode
   
   ## Impact
   support asynchronous to access spi slave
   ## Testing
   local test
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx-apps] JianyuWang0623 opened a new pull request, #1856: Fix dependents of nsh_foreach_direntry

2023-07-27 Thread via GitHub


JianyuWang0623 opened a new pull request, #1856:
URL: https://github.com/apache/nuttx-apps/pull/1856

   Signed-off-by: wangjianyu3 
   
   ## Summary
   "rptun" and "pmconfig" depend on "NSH_HAVE_FOREACH_DIRENTRY"
   
   ## Impact
   
   ## Testing
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[nuttx] 01/03: espressif: update esp-hal-3rdparty

2023-07-27 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 8e343405a2cb6d64dc3eacd6e6f51b347ad9ae1f
Author: Tiago Medicci Serrano 
AuthorDate: Tue Jul 25 15:54:28 2023 -0300

espressif: update esp-hal-3rdparty

The esp-hal-3rdparty release include general bugfixes.
---
 arch/risc-v/src/espressif/Make.defs  | 2 +-
 arch/risc-v/src/espressif/hal_esp32c6.mk | 4 +++-
 arch/risc-v/src/espressif/hal_esp32h2.mk | 1 +
 arch/xtensa/src/esp32s3/Wireless.mk  | 2 +-
 4 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/arch/risc-v/src/espressif/Make.defs 
b/arch/risc-v/src/espressif/Make.defs
index 1a223985e9..34386782ed 100644
--- a/arch/risc-v/src/espressif/Make.defs
+++ b/arch/risc-v/src/espressif/Make.defs
@@ -84,7 +84,7 @@ endif
 
 ESP_HAL_3RDPARTY_REPO   = esp-hal-3rdparty
 ifndef ESP_HAL_3RDPARTY_VERSION
-   ESP_HAL_3RDPARTY_VERSION = 34267b5cc6f95ef35582a6bb3ea2476bf80b5cb1
+   ESP_HAL_3RDPARTY_VERSION = 56fd5fee26de81a321f46dfd930298c43dcec909
 endif
 
 ifndef ESP_HAL_3RDPARTY_URL
diff --git a/arch/risc-v/src/espressif/hal_esp32c6.mk 
b/arch/risc-v/src/espressif/hal_esp32c6.mk
index 406aad1096..2267222968 100644
--- a/arch/risc-v/src/espressif/hal_esp32c6.mk
+++ b/arch/risc-v/src/espressif/hal_esp32c6.mk
@@ -77,8 +77,10 @@ CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/esp_hw_support/regi2c_ctr
 CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/esp_hw_support/port/esp_clk_tree_common.c
 CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/esp_hw_support/port/$(CHIP_SERIES)/esp_clk_tree.c
 CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/esp_hw_support/port/$(CHIP_SERIES)/cpu_region_protect.c
+CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/esp_hw_support/port/$(CHIP_SERIES)/ocode_init.c
 CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/esp_hw_support/port/$(CHIP_SERIES)/pmu_init.c
 CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/esp_hw_support/port/$(CHIP_SERIES)/pmu_param.c
+CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/esp_hw_support/port/$(CHIP_SERIES)/pmu_sleep.c
 CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/esp_hw_support/port/$(CHIP_SERIES)/rtc_clk.c
 CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/esp_hw_support/port/$(CHIP_SERIES)/rtc_time.c
 CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/esp_hw_support/port/$(CHIP_SERIES)/sar_periph_ctrl.c
@@ -94,13 +96,13 @@ CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/efuse_hal.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/gpio_hal.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/ledc_hal.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/ledc_hal_iram.c
+CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/lp_timer_hal.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/timer_hal.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/timer_hal_iram.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/uart_hal.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/uart_hal_iram.c
 CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/$(CHIP_SERIES)/clk_tree_hal.c
 CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/$(CHIP_SERIES)/efuse_hal.c
-CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/$(CHIP_SERIES)/lp_timer_hal.c
 CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/$(CHIP_SERIES)/modem_clock_hal.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/log/log.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/log/log_noos.c
diff --git a/arch/risc-v/src/espressif/hal_esp32h2.mk 
b/arch/risc-v/src/espressif/hal_esp32h2.mk
index 098ea47759..ab085ac3b3 100644
--- a/arch/risc-v/src/espressif/hal_esp32h2.mk
+++ b/arch/risc-v/src/espressif/hal_esp32h2.mk
@@ -94,6 +94,7 @@ CHIP_CSRCS += 
chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/efuse_hal.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/gpio_hal.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/ledc_hal.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/ledc_hal_iram.c
+CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/lp_timer_hal.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/timer_hal.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/timer_hal_iram.c
 CHIP_CSRCS += chip/$(ESP_HAL_3RDPARTY_REPO)/components/hal/uart_hal.c
diff --git a/arch/xtensa/src/esp32s3/Wireless.mk 
b/arch/xtensa/src/esp32s3/Wireless.mk
index 2df1dc2858..5090bf6d4d 100644
--- a/arch/xtensa/src/esp32s3/Wireless.mk
+++ b/arch/xtensa/src/esp32s3/Wireless.mk
@@ -21,7 +21,7 @@
 ESP_HAL_3RDPARTY_REPO   = esp-hal-3rdparty
 ESP_HAL_3RDPARTY_PATH   = 
$(ARCH_SRCDIR)$(DELIM)chip$(DELIM)$(ESP_HAL_3RDPARTY_REPO)
 ifndef ESP_HAL_3RDPARTY_VERSION
-   ESP_HAL_3RDPARTY_VERSION = 

[nuttx] branch master updated (68187b68af -> 8673e659b4)

2023-07-27 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


from 68187b68af arch: move [enter|leave]_critical_section
 new 8e343405a2 espressif: update esp-hal-3rdparty
 new e38b4b2103 espressif: fix linker to include the reserved area of RTC 
memory
 new 8673e659b4 espressif: quiet git commands and improve build logging

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 arch/risc-v/src/espressif/Kconfig  |  7 +
 arch/risc-v/src/espressif/Make.defs|  9 +++---
 arch/risc-v/src/espressif/hal_esp32c6.mk   |  4 ++-
 arch/risc-v/src/espressif/hal_esp32h2.mk   |  1 +
 arch/xtensa/src/esp32s3/Wireless.mk| 16 +-
 .../risc-v/espressif/common/scripts/common.ld  | 30 +--
 .../common/scripts/esp32c3_flat_memory.ld  | 27 -
 .../common/scripts/esp32c3_legacy_sections.ld  | 35 +-
 .../common/scripts/esp32c6_flat_memory.ld  | 15 --
 .../common/scripts/esp32c6_legacy_sections.ld  | 30 ---
 .../common/scripts/esp32h2_flat_memory.ld  | 14 +++--
 .../common/scripts/esp32h2_legacy_sections.ld  | 30 +--
 12 files changed, 145 insertions(+), 73 deletions(-)
 copy arch/arm/src/a1x/hardware/a1x_piocfg.h => 
boards/risc-v/espressif/common/scripts/common.ld (64%)



[nuttx] 02/03: espressif: fix linker to include the reserved area of RTC memory

2023-07-27 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit e38b4b21031caf2f44d4ef51c8314cc04122240c
Author: Tiago Medicci Serrano 
AuthorDate: Wed Jul 26 13:42:28 2023 -0300

espressif: fix linker to include the reserved area of RTC memory

Basically, it reserves an area of the RTC memory to preserve the
RTC timer.

Please refer to:

https://github.com/espressif/esp-hal-3rdparty/commit/fa76c82a5b1575e41d697c6291b728bd612a7a4e

This commit also removes the rtc.dummy section because C3, C6 and
H2 don't need to skip it once the region is accessed by the same
address space using the instruction and data bus.
---
 arch/risc-v/src/espressif/Kconfig  |  7 +
 boards/risc-v/espressif/common/scripts/common.ld   | 35 ++
 .../common/scripts/esp32c3_flat_memory.ld  | 27 -
 .../common/scripts/esp32c3_legacy_sections.ld  | 35 +-
 .../common/scripts/esp32c6_flat_memory.ld  | 15 --
 .../common/scripts/esp32c6_legacy_sections.ld  | 30 ---
 .../common/scripts/esp32h2_flat_memory.ld  | 14 +++--
 .../common/scripts/esp32h2_legacy_sections.ld  | 30 +--
 8 files changed, 149 insertions(+), 44 deletions(-)

diff --git a/arch/risc-v/src/espressif/Kconfig 
b/arch/risc-v/src/espressif/Kconfig
index c71f553fa8..4d7aef146b 100644
--- a/arch/risc-v/src/espressif/Kconfig
+++ b/arch/risc-v/src/espressif/Kconfig
@@ -33,6 +33,7 @@ config ESPRESSIF_ESP32C3
select LIBC_ARCH_STRNCPY
select LIBC_ARCH_STRLEN
select LIBC_ARCH_STRNLEN
+   select ESPRESSIF_SOC_RTC_MEM_SUPPORTED
---help---
ESP32-C3 chip with a single RISC-V IMC core, no embedded Flash 
memory
 
@@ -60,6 +61,7 @@ config ESPRESSIF_ESP32C6
select LIBC_ARCH_STRNCPY
select LIBC_ARCH_STRLEN
select LIBC_ARCH_STRNLEN
+   select ESPRESSIF_SOC_RTC_MEM_SUPPORTED
---help---
Espressif ESP32-C6 (RV32IMAC).
 
@@ -88,6 +90,7 @@ config ESPRESSIF_ESP32H2
select LIBC_ARCH_STRLEN
select LIBC_ARCH_STRNLEN
select ESPRESSIF_ESPTOOLPY_NO_STUB
+   select ESPRESSIF_SOC_RTC_MEM_SUPPORTED
---help---
Espressif ESP32-H2 (RV32IMC).
 
@@ -204,6 +207,10 @@ config ESPRESSIF_HAL_ASSERTIONS
Enable the assertions implemented in the HAL. Otherwise, the 
assertions
are replaced by empty macros.
 
+config ESPRESSIF_SOC_RTC_MEM_SUPPORTED
+   bool
+   default n
+
 menu "Peripheral Support"
 
 config ESPRESSIF_UART
diff --git a/boards/risc-v/espressif/common/scripts/common.ld 
b/boards/risc-v/espressif/common/scripts/common.ld
new file mode 100644
index 00..2f93e1b795
--- /dev/null
+++ b/boards/risc-v/espressif/common/scripts/common.ld
@@ -0,0 +1,35 @@
+/
+ * boards/risc-v/espressif/common/scripts/common.ld
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.  The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ /
+#include 
+
+#if CONFIG_ESPRESSIF_SOC_RTC_MEM_SUPPORTED
+#  define ESP_BOOTLOADER_RESERVE_RTC 0
+
+   /* rtc timer data (s_rtc_timer_retain_mem, see esp_clk.c files).
+* For rtc_timer_data_in_rtc_mem section.
+*/
+#  define RTC_TIMER_RESERVE_RTC (24)
+
+#  ifdef CONFIG_ARCH_CHIP_ESP32
+#define RESERVE_RTC_MEM (RTC_TIMER_RESERVE_RTC)
+#  else
+#define RESERVE_RTC_MEM (ESP_BOOTLOADER_RESERVE_RTC + 
RTC_TIMER_RESERVE_RTC)
+#  endif /* CONFIG_ARCH_CHIP_ESP32 */
+#endif /* CONFIG_ESPRESSIF_SOC_RTC_MEM_SUPPORTED */
diff --git a/boards/risc-v/espressif/common/scripts/esp32c3_flat_memory.ld 
b/boards/risc-v/espressif/common/scripts/esp32c3_flat_memory.ld
index 843030c685..09cbc72813 100644
--- a/boards/risc-v/espressif/common/scripts/esp32c3_flat_memory.ld
+++ b/boards/risc-v/espressif/common/scripts/esp32c3_flat_memory.ld
@@ -29,7 +29,7 @@
  *
  /
 
-#include 

[nuttx] 03/03: espressif: quiet git commands and improve build logging

2023-07-27 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 8673e659b48484a523141dd7ca7cf3fa9419e69a
Author: Tiago Medicci Serrano 
AuthorDate: Thu Jul 27 13:35:59 2023 -0300

espressif: quiet git commands and improve build logging

Add `--quiet` to git commands to avoid unnecessary logging during
the operation and add summarized logs to show progress.
---
 arch/risc-v/src/espressif/Make.defs |  7 ---
 arch/xtensa/src/esp32s3/Wireless.mk | 14 +++---
 2 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/arch/risc-v/src/espressif/Make.defs 
b/arch/risc-v/src/espressif/Make.defs
index 34386782ed..d02108d006 100644
--- a/arch/risc-v/src/espressif/Make.defs
+++ b/arch/risc-v/src/espressif/Make.defs
@@ -92,9 +92,10 @@ ifndef ESP_HAL_3RDPARTY_URL
 endif
 
 chip/$(ESP_HAL_3RDPARTY_REPO):
-   $(Q) echo "Cloning: Espressif HAL for 3rd Party Platforms"
-   $(Q) git clone $(ESP_HAL_3RDPARTY_URL) chip/$(ESP_HAL_3RDPARTY_REPO)
-   $(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO) checkout 
$(ESP_HAL_3RDPARTY_VERSION)
+   $(Q) echo "Cloning Espressif HAL for 3rd Party Platforms"
+   $(Q) git clone --quiet $(ESP_HAL_3RDPARTY_URL) 
chip/$(ESP_HAL_3RDPARTY_REPO)
+   $(Q) echo "Espressif HAL for 3rd Party Platforms: 
${ESP_HAL_3RDPARTY_VERSION}"
+   $(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO) checkout --quiet 
$(ESP_HAL_3RDPARTY_VERSION)
 
 # Silent preprocessor warnings
 
diff --git a/arch/xtensa/src/esp32s3/Wireless.mk 
b/arch/xtensa/src/esp32s3/Wireless.mk
index 5090bf6d4d..7600e6cdc1 100644
--- a/arch/xtensa/src/esp32s3/Wireless.mk
+++ b/arch/xtensa/src/esp32s3/Wireless.mk
@@ -29,19 +29,19 @@ ifndef ESP_HAL_3RDPARTY_URL
 endif
 
 chip/$(ESP_HAL_3RDPARTY_REPO):
-   $(Q) echo "Cloning: ESP Wireless Drivers"
-   $(Q) git clone $(ESP_HAL_3RDPARTY_URL) chip/$(ESP_HAL_3RDPARTY_REPO)
-   $(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO) checkout 
$(ESP_HAL_3RDPARTY_VERSION)
+   $(Q) echo "Cloning Espressif HAL for 3rd Party Platforms"
+   $(Q) git clone --quiet $(ESP_HAL_3RDPARTY_URL) 
chip/$(ESP_HAL_3RDPARTY_REPO)
+   $(Q) echo "Espressif HAL for 3rd Party Platforms: checking out to 
${ESP_HAL_3RDPARTY_VERSION}"
+   $(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO) checkout --quiet 
$(ESP_HAL_3RDPARTY_VERSION)
 
 # Silent preprocessor warnings
 
 CFLAGS += -Wno-undef -Wno-unused-variable
 
 context:: chip/$(ESP_HAL_3RDPARTY_REPO)
-   $(Q) echo "ESP Wireless Drivers: ${ESP_HAL_3RDPARTY_VERSION}"
-   $(Q) echo "Initializing submodules.."
-   $(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO) submodule update --init 
--depth=1 components/mbedtls/mbedtls components/esp_phy/lib 
components/esp_wifi/lib
-   $(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO)/components/mbedtls/mbedtls 
reset --hard
+   $(Q) echo "Espressif HAL for 3rd Party Platforms: initializing 
submodules..."
+   $(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO) submodule --quiet update 
--init --depth=1 components/mbedtls/mbedtls components/esp_phy/lib 
components/esp_wifi/lib
+   $(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO)/components/mbedtls/mbedtls 
reset --quiet --hard
$(Q) echo "Applying patches..."
$(Q) cd chip/$(ESP_HAL_3RDPARTY_REPO)/components/mbedtls/mbedtls && git 
apply ../../../nuttx/patches/components/mbedtls/mbedtls/*.patch
 



[GitHub] [nuttx] xiaoxiang781216 merged pull request #9917: espressif: update esp-hal-3rdparty and related issues

2023-07-27 Thread via GitHub


xiaoxiang781216 merged PR #9917:
URL: https://github.com/apache/nuttx/pull/9917


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] leo11261 opened a new pull request, #9920: rpmsgclk: allow client to disable clk of server

2023-07-27 Thread via GitHub


leo11261 opened a new pull request, #9920:
URL: https://github.com/apache/nuttx/pull/9920

   ## Summary
   allow client to disable clk of server
   
   ## Impact
   rpmsgclk
   
   ## Testing
   internel testing
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] leo11261 opened a new pull request, #9919: Rpmsgblk: add support for mmc_ioc_cmd/mmc_multi_ioc_cmd ioctl

2023-07-27 Thread via GitHub


leo11261 opened a new pull request, #9919:
URL: https://github.com/apache/nuttx/pull/9919

   ## Summary
   add support for mmc_ioc_cmd/mmc_multi_ioc_cmd ioctl
   
   ## Impact
   rpsmgblk
   
   ## Testing
   internel testing
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #9916: drivers: Added support for BME680

2023-07-27 Thread via GitHub


xiaoxiang781216 commented on code in PR #9916:
URL: https://github.com/apache/nuttx/pull/9916#discussion_r1277004925


##
include/nuttx/sensors/sensor.h:
##
@@ -595,6 +603,15 @@ struct sensor_cap   /* Type: Capacitance */
   int32_t rawdata[4];   /* in SI units pF */
 };
 
+struct sensor_gas   /* Type: Gas */
+{
+  uint64_t timestamp;   /* Units is microseconds */
+  float temperature;/* Temperature in degrees Celsius */
+  float pressure;   /* Pressure in millibar or hPa */
+  float humidity;   /* Relative humidity in rH */

Review Comment:
   > I did not know how to do that.
   
   you can expose multiple topics from one sensor driver. For example, 
https://github.com/apache/nuttx/blob/master/drivers/sensors/wtgahrs2.c 
registers 5 topics.
   
   > I thought there has to be a struct associated with the type of sensor, as 
declared in the g_sensor_info array.
   
   Yes, but it's better to make one topic just contain one physical 
measurement. For example, IMU should expose three topics(gyro, accel and mag), 
instead one topic with all value.
   
   > Also, using 2 structs wouldn t mean having the timestamp twice?
   
   Not necessary, you can get timestamp once, and reuse it for all push_event.
   
   > I would appreciate it if you could give me a hint as to how i could reuse 
sensor_baro and sensor_humi.
   
   From 
https://www.bosch-sensortec.com/products/environmental-sensors/gas-sensors/bme680/,
 BME680 can measure.gas, humidity and pressure individually, so it's better to 
let driver report three topic(gas, humidity and pressure). Temperature is a 
special one, since many measurement requires temperature to calibrate the 
result, so it's contained in many sensor topic.



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #9916: drivers: Added support for BME680

2023-07-27 Thread via GitHub


xiaoxiang781216 commented on code in PR #9916:
URL: https://github.com/apache/nuttx/pull/9916#discussion_r1276998485


##
include/nuttx/sensors/sensor.h:
##
@@ -595,6 +603,15 @@ struct sensor_cap   /* Type: Capacitance */
   int32_t rawdata[4];   /* in SI units pF */
 };
 
+struct sensor_gas   /* Type: Gas */
+{
+  uint64_t timestamp;   /* Units is microseconds */
+  float temperature;/* Temperature in degrees Celsius */
+  float pressure;   /* Pressure in millibar or hPa */
+  float humidity;   /* Relative humidity in rH */

Review Comment:
   @simonatoaca already use the new sensor subsystem.



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] xucheng5 opened a new pull request, #9918: Net can

2023-07-27 Thread via GitHub


xucheng5 opened a new pull request, #9918:
URL: https://github.com/apache/nuttx/pull/9918

   ## Summary
   
   ## Impact
   
   ## Testing
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[nuttx-website] branch asf-site updated: Publishing web: 07abea83aab63736f2895f109c448ae631509f46 docs: 68187b68afbc209a794cb1d686dc8c14d895468c

2023-07-27 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/nuttx-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
 new 6838ed58 Publishing web: 07abea83aab63736f2895f109c448ae631509f46 
docs: 68187b68afbc209a794cb1d686dc8c14d895468c
6838ed58 is described below

commit 6838ed589a73ade0f0ea9cc8e181caa877d40f2b
Author: Alin Jerpelea 
AuthorDate: Fri Jul 28 00:12:53 2023 +

Publishing web: 07abea83aab63736f2895f109c448ae631509f46 docs: 
68187b68afbc209a794cb1d686dc8c14d895468c
---
 content/docs/10.0.0/index.html | 2 +-
 content/docs/10.0.0/searchindex.js | 2 +-
 content/docs/10.0.1/index.html | 2 +-
 content/docs/10.0.1/searchindex.js | 2 +-
 content/docs/10.1.0/index.html | 2 +-
 content/docs/10.1.0/searchindex.js | 2 +-
 content/docs/10.2.0/index.html | 2 +-
 content/docs/10.2.0/searchindex.js | 2 +-
 content/docs/10.3.0/index.html | 2 +-
 content/docs/10.3.0/searchindex.js | 2 +-
 content/docs/11.0.0/index.html | 2 +-
 content/docs/11.0.0/searchindex.js | 2 +-
 content/docs/12.0.0/index.html | 2 +-
 content/docs/12.0.0/searchindex.js | 2 +-
 content/docs/12.1.0/index.html | 2 +-
 content/docs/12.1.0/searchindex.js | 2 +-
 content/docs/12.2.0/index.html | 2 +-
 content/docs/12.2.0/searchindex.js | 2 +-
 content/docs/12.2.1/index.html | 2 +-
 content/docs/12.2.1/searchindex.js | 2 +-
 content/docs/latest/index.html | 2 +-
 content/docs/latest/searchindex.js | 2 +-
 content/feed.xml   | 4 ++--
 23 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/content/docs/10.0.0/index.html b/content/docs/10.0.0/index.html
index 9ff59a2f..a2421857 100644
--- a/content/docs/10.0.0/index.html
+++ b/content/docs/10.0.0/index.html
@@ -131,7 +131,7 @@ by following these 
 NuttX Documentation
 NuttX is a real-time operating system (RTOS) with an emphasis on standards 
compliance and small footprint. Scalable from 8-bit to 32-bit microcontroller 
environments, the primary governing standards in NuttX are Posix and ANSI 
standards. Additional standard APIs from Unix and other common RTOS’s (such as 
VxWorks) are adopted for functionality not available under these standards, or 
for functionality that is not appropriate for deeply-embedded environments 
(such as fork()).
-Last Updated: 27 July 23 at 00:09
+Last Updated: 28 July 23 at 00:09
 
 Table of 
Contents
 
diff --git a/content/docs/10.0.0/searchindex.js 
b/content/docs/10.0.0/searchindex.js
index 31fc0b8a..3e4ea75c 100644
--- a/content/docs/10.0.0/searchindex.js
+++ b/content/docs/10.0.0/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["applications/index", "boards/index", 
"components/binfmt", "components/drivers/block/index", 
"components/drivers/character/analog", "components/drivers/character/can", 
"components/drivers/character/index", "components/drivers/character/keypad", 
"components/drivers/character/pwm", "components/drivers/character/quadrature", 
"components/drivers/character/rtc", "components/drivers/character/serial", 
"components/drivers/character/timer", "components/drivers/chara [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["applications/index", "boards/index", 
"components/binfmt", "components/drivers/block/index", 
"components/drivers/character/analog", "components/drivers/character/can", 
"components/drivers/character/index", "components/drivers/character/keypad", 
"components/drivers/character/pwm", "components/drivers/character/quadrature", 
"components/drivers/character/rtc", "components/drivers/character/serial", 
"components/drivers/character/timer", "components/drivers/chara [...]
\ No newline at end of file
diff --git a/content/docs/10.0.1/index.html b/content/docs/10.0.1/index.html
index f0f27b3a..b6512e12 100644
--- a/content/docs/10.0.1/index.html
+++ b/content/docs/10.0.1/index.html
@@ -151,7 +151,7 @@ by following these 
 NuttX Documentation
 NuttX is a real-time operating system (RTOS) with an emphasis on standards 
compliance and small footprint. Scalable from 8-bit to 32-bit microcontroller 
environments, the primary governing standards in NuttX are Posix and ANSI 
standards. Additional standard APIs from Unix and other common RTOS’s (such as 
VxWorks) are adopted for functionality not available under these standards, or 
for functionality that is not appropriate for deeply-embedded environments 
(such as fork()).
-Last Updated: 27 July 23 at 00:09
+Last Updated: 28 July 23 at 00:09
 
 Table of 
Contents
 
diff --git a/content/docs/10.0.1/searchindex.js 
b/content/docs/10.0.1/searchindex.js
index f2825ce5..05aed8b7 100644
--- a/content/docs/10.0.1/searchindex.js
+++ b/content/docs/10.0.1/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["applications/index", "boards/index", 
"components/binfmt", "components/drivers/block/index", 
"components/drivers/character/analog", 

[GitHub] [nuttx] simonatoaca commented on pull request #9916: drivers: Added support for BME680

2023-07-27 Thread via GitHub


simonatoaca commented on PR #9916:
URL: https://github.com/apache/nuttx/pull/9916#issuecomment-1654210382

   Thank you for the fix!


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] simonatoaca commented on a diff in pull request #9916: drivers: Added support for BME680

2023-07-27 Thread via GitHub


simonatoaca commented on code in PR #9916:
URL: https://github.com/apache/nuttx/pull/9916#discussion_r1276660878


##
include/nuttx/sensors/sensor.h:
##
@@ -595,6 +603,15 @@ struct sensor_cap   /* Type: Capacitance */
   int32_t rawdata[4];   /* in SI units pF */
 };
 
+struct sensor_gas   /* Type: Gas */
+{
+  uint64_t timestamp;   /* Units is microseconds */
+  float temperature;/* Temperature in degrees Celsius */
+  float pressure;   /* Pressure in millibar or hPa */
+  float humidity;   /* Relative humidity in rH */

Review Comment:
   I did not know how to do that. I thought there has to be a struct associated 
with the type of sensor, as declared in the g_sensor_info array. Also, using 2 
structs wouldn t mean having the timestamp twice? I would appreciate it if you 
could give me a hint as to how i could reuse sensor_baro and sensor_humi.



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] xiaoxiang781216 commented on pull request #9916: drivers: Added support for BME680

2023-07-27 Thread via GitHub


xiaoxiang781216 commented on PR #9916:
URL: https://github.com/apache/nuttx/pull/9916#issuecomment-1654154015

   @simonatoaca please fix the ci 
error(https://github.com/apache/nuttx/actions/runs/5682394519/job/15400845118?pr=9916):
   ```
   

   Configuration/Tool: esp32-sparrow-kit/nsh
   

 Cleaning...
 Configuring...
 Building NuttX...
 Normalize esp32-sparrow-kit/nsh
   24a25
   > CONFIG_BME680_ENABLE_IIR_FILTER=y
   80,83d80
   < CONFIG_BME680_I2C_FREQUENCY=40
   < CONFIG_BME680_ENABLE_IIR_FILTER=y
   < CONFIG_SENSORS_BME680_POLL_INTERVAL=300
   < CONFIG_SENSORS_BME680_THREAD_STACKSIZE=1024
   Saving the new configuration file
   HEAD detached at pull/9916/merge
   Changes not staged for commit:
 (use "git add ..." to update what will be committed)
 (use "git restore ..." to discard changes in working directory)
modified:   boards/xtensa/esp32/esp32-sparrow-kit/configs/nsh/defconfig
   ```
   you can run "./tools/refresh.sh --silent esp32-sparrow-kit/nsh".
   BTW, do you forget CONFIG_SENSORS=y.


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #9916: drivers: Added support for BME680

2023-07-27 Thread via GitHub


xiaoxiang781216 commented on code in PR #9916:
URL: https://github.com/apache/nuttx/pull/9916#discussion_r1276651429


##
include/nuttx/sensors/sensor.h:
##
@@ -595,6 +603,15 @@ struct sensor_cap   /* Type: Capacitance */
   int32_t rawdata[4];   /* in SI units pF */
 };
 
+struct sensor_gas   /* Type: Gas */
+{
+  uint64_t timestamp;   /* Units is microseconds */
+  float temperature;/* Temperature in degrees Celsius */
+  float pressure;   /* Pressure in millibar or hPa */
+  float humidity;   /* Relative humidity in rH */

Review Comment:
   why not reuse sensor_baro and sensor_humi?



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] tmedicci commented on a diff in pull request #9917: espressif: update esp-hal-3rdparty and related issues

2023-07-27 Thread via GitHub


tmedicci commented on code in PR #9917:
URL: https://github.com/apache/nuttx/pull/9917#discussion_r1276563186


##
boards/risc-v/espressif/common/scripts/common.ld:
##
@@ -0,0 +1,33 @@
+/
+ * boards/risc-v/espressif/common/scripts/common.ld
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.  The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ /
+#include 
+
+#if CONFIG_ESPRESSIF_SOC_RTC_MEM_SUPPORTED
+#define ESP_BOOTLOADER_RESERVE_RTC 0

Review Comment:
   Formatted according to 
https://nuttx.apache.org/docs/latest/contributing/coding_style.html#c-pre-processor-macros



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[nuttx-apps] 02/02: netutils: add Eclipse Wakaama support

2023-07-27 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 7b066ed0d8e61fb74181c2d3bea68f5ab586c21f
Author: raiden00pl 
AuthorDate: Wed Jul 26 13:53:06 2023 +0200

netutils: add Eclipse Wakaama support
---
 LICENSE | 32 ++
 netutils/wakaama/.gitignore |  2 +
 netutils/wakaama/CMakeLists.txt | 98 +
 netutils/wakaama/Kconfig| 83 ++
 netutils/wakaama/examples.cmake | 96 
 5 files changed, 311 insertions(+)

diff --git a/LICENSE b/LICENSE
index 3ad839e0f..6e5f3c382 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1822,3 +1822,35 @@ apps/crypto/tinydtls
   *Olaf Bergmann  - initial API and implementation
   *Hauke Mehrtens - memory optimization, ECC integration
   
***/
+
+apps/netutils/wakaama
+=
+ *Eclipse Distribution License - v 1.0*
+
+ Copyright (c) 2007, Eclipse Foundation, Inc. and its licensors.
+
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+   * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+   * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+   * Neither the name of the Eclipse Foundation, Inc. nor the names of
+ its contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
+ OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/netutils/wakaama/.gitignore b/netutils/wakaama/.gitignore
new file mode 100644
index 0..d13456482
--- /dev/null
+++ b/netutils/wakaama/.gitignore
@@ -0,0 +1,2 @@
+/wakaama
+/*.tar.gz
diff --git a/netutils/wakaama/CMakeLists.txt b/netutils/wakaama/CMakeLists.txt
new file mode 100644
index 0..4f56ebb13
--- /dev/null
+++ b/netutils/wakaama/CMakeLists.txt
@@ -0,0 +1,98 @@
+# 
##
+# apps/netutils/wakaama/CMakeLists.txt
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# 
##
+
+if(CONFIG_NETUTILS_WAKAAMA)
+
+  if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/wakaama)
+FetchContent_Declare(
+  wakaama
+  DOWNLOAD_NAME "${CONFIG_WAKAAMA_VERSION}.tar.gz"
+  DOWNLOAD_DIR ${CMAKE_CURRENT_LIST_DIR}
+  URL 
"https://github.com/eclipse/wakaama/archive/${CONFIG_WAKAAMA_VERSION}.tar.gz;
+  SOURCE_DIR
+  ${CMAKE_CURRENT_LIST_DIR}/wakaama
+  BINARY_DIR
+  ${CMAKE_BINARY_DIR}/apps/netutils/wakaama/wakaama
+  CONFIGURE_COMMAND
+  ""
+  BUILD_COMMAND
+  ""
+  INSTALL_COMMAND
+  ""
+  TEST_COMMAND
+  ""
+  DOWNLOAD_NO_PROGRESS true
+  TIMEOUT 30)
+
+FetchContent_GetProperties(wakaama)
+
+if(NOT wakaama_POPULATED)
+  FetchContent_Populate(wakaama)
+endif()
+  endif()
+
+  include(wakaama/wakaama.cmake)
+
+  

[nuttx-apps] branch master updated (7f3246cfd -> 7b066ed0d)

2023-07-27 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


from 7f3246cfd cmake:migrate apps CMakeLists for [audioutils benchmarks]
 new 81f9fb5e0 crypto: add Eclipse tinydtls support
 new 7b066ed0d netutils: add Eclipse Wakaama support

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 LICENSE   | 47 +
 {boot/mcuboot => crypto/tinydtls}/.gitignore  |  2 +-
 crypto/tinydtls/CMakeLists.txt| 92 +
 crypto/tinydtls/Kconfig   | 19 ++
 {boot/mcuboot => netutils/wakaama}/.gitignore |  2 +-
 netutils/wakaama/CMakeLists.txt   | 98 +++
 netutils/wakaama/Kconfig  | 83 +++
 netutils/wakaama/examples.cmake   | 96 ++
 8 files changed, 437 insertions(+), 2 deletions(-)
 copy {boot/mcuboot => crypto/tinydtls}/.gitignore (50%)
 create mode 100644 crypto/tinydtls/CMakeLists.txt
 create mode 100644 crypto/tinydtls/Kconfig
 copy {boot/mcuboot => netutils/wakaama}/.gitignore (52%)
 create mode 100644 netutils/wakaama/CMakeLists.txt
 create mode 100644 netutils/wakaama/Kconfig
 create mode 100644 netutils/wakaama/examples.cmake



[nuttx-apps] 01/02: crypto: add Eclipse tinydtls support

2023-07-27 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 81f9fb5e08e686c0fe7b70c3a283f2ec41be25be
Author: raiden00pl 
AuthorDate: Wed Jul 26 13:52:41 2023 +0200

crypto: add Eclipse tinydtls support
---
 LICENSE| 15 +++
 crypto/tinydtls/.gitignore |  2 +
 crypto/tinydtls/CMakeLists.txt | 92 ++
 crypto/tinydtls/Kconfig| 19 +
 4 files changed, 128 insertions(+)

diff --git a/LICENSE b/LICENSE
index d024e6793..3ad839e0f 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1807,3 +1807,18 @@ apps/testing/crypto/hmac.c
  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+apps/crypto/tinydtls
+==
+ 
/***
+  * Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016 Olaf Bergmann (TZI) and 
others.
+  * All rights reserved. This program and the accompanying materials
+  * are made available under the terms of the Eclipse Public License v1.0
+  * and Eclipse Distribution License v. 1.0 which accompanies this 
distribution.
+  * The Eclipse Public License is available at 
http://www.eclipse.org/legal/epl-v10.html
+  * and the Eclipse Distribution License is available at
+  * http://www.eclipse.org/org/documents/edl-v10.php.
+  * Contributors:
+  *Olaf Bergmann  - initial API and implementation
+  *Hauke Mehrtens - memory optimization, ECC integration
+  
***/
diff --git a/crypto/tinydtls/.gitignore b/crypto/tinydtls/.gitignore
new file mode 100644
index 0..bc1a4e3d2
--- /dev/null
+++ b/crypto/tinydtls/.gitignore
@@ -0,0 +1,2 @@
+/tinydtls
+/*.tar.gz
diff --git a/crypto/tinydtls/CMakeLists.txt b/crypto/tinydtls/CMakeLists.txt
new file mode 100644
index 0..129f3750f
--- /dev/null
+++ b/crypto/tinydtls/CMakeLists.txt
@@ -0,0 +1,92 @@
+# 
##
+# apps/crypto/tinydtls/CMakeLists.txt
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# 
##
+
+if(CONFIG_CRYPTO_TINYDTLS)
+
+  if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/tinydtls)
+FetchContent_Declare(
+  tinydtls
+  DOWNLOAD_NAME "${CONFIG_TINYDTLS_VERSION}.tar.gz"
+  DOWNLOAD_DIR ${CMAKE_CURRENT_LIST_DIR}
+  URL 
"https://github.com/eclipse/tinydtls/archive/${CONFIG_TINYDTLS_VERSION}.tar.gz;
+  SOURCE_DIR
+  ${CMAKE_CURRENT_LIST_DIR}/tinydtls
+  BINARY_DIR
+  ${CMAKE_BINARY_DIR}/apps/crypto/tinydtls/tinydtls
+  CONFIGURE_COMMAND
+  ""
+  BUILD_COMMAND
+  ""
+  INSTALL_COMMAND
+  ""
+  TEST_COMMAND
+  ""
+  DOWNLOAD_NO_PROGRESS true
+  TIMEOUT 30)
+
+FetchContent_GetProperties(tinydtls)
+
+if(NOT tinydtls_POPULATED)
+  FetchContent_Populate(tinydtls)
+endif()
+  endif()
+
+  add_subdirectory(tinydtls)
+
+  target_compile_definitions(
+tinydtls
+PRIVATE HAVE_ARPA_INET_H
+HAVE_ASSERT_H
+HAVE_FCNTL_H
+HAVE_GETRANDOM
+HAVE_INTTYPES_H
+HAVE_MEMSET
+HAVE_NETDB_H
+HAVE_NETINET_IN_H
+HAVE_RANDOM
+HAVE_SELECT
+HAVE_SOCKET
+HAVE_STDDEF_H
+HAVE_STDINT_H
+HAVE_STDLIB_H
+HAVE_STRDUP
+HAVE_STRERROR
+HAVE_STRINGS_H
+HAVE_STRING_H
+HAVE_STRNLEN
+HAVE_SYS_SOCKET_H
+HAVE_SYS_STAT_H
+HAVE_SYS_TIME_H
+HAVE_SYS_TYPES_H
+HAVE_TIME_H
+HAVE_UNISTD_H
+HAVE_VPRINTF
+HAVE_SNPRINTF)
+
+  target_compile_options(tinydtls PRIVATE -Wno-unused -Wno-inline)
+
+  # TODO: this should be function in 

[GitHub] [nuttx-apps] xiaoxiang781216 merged pull request #1855: add support for tinydtls and wakaama

2023-07-27 Thread via GitHub


xiaoxiang781216 merged PR #1855:
URL: https://github.com/apache/nuttx-apps/pull/1855


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] tmedicci commented on pull request #9896: espressif: get esp-hal-3rdparty sources based on its version

2023-07-27 Thread via GitHub


tmedicci commented on PR #9896:
URL: https://github.com/apache/nuttx/pull/9896#issuecomment-1653952565

   > @tmedicci could you remove the following log from ci:
   > 
   > ```
   > 

   > Configuration/Tool: esp32c3-generic/tickless
   > 

   >   Cleaning...
   >   Configuring...
   >   Building NuttX...
   > Cloning into 'chip/esp-hal-3rdparty'...
   > Note: switching to '34267b5cc6f95ef35582a6bb3ea2476bf80b5cb1'.
   > 
   > You are in 'detached HEAD' state. You can look around, make experimental
   > changes and commit them, and you can discard any commits you make in this
   > state without impacting any branches by switching back to a branch.
   > 
   > If you want to create a new branch to retain commits you create, you may
   > do so (now or later) by using -c with the switch command. Example:
   > 
   >   git switch -c 
   > 
   > Or undo this operation with:
   > 
   >   git switch -
   > 
   > Turn off this advice by setting config variable advice.detachedHead to 
false
   > 
   > HEAD is now at 34267b5cc nuttx: Add clk_ctrl_os.c port
   >   Normalize esp32c3-generic/tickless
   > ```
   
   Thanks for reporting. I'll try to make it quiet and update it on 
https://github.com/apache/nuttx/pull/9917


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] tmedicci opened a new pull request, #9917: Fix/feature/esp hal 3rdparty updated by merge

2023-07-27 Thread via GitHub


tmedicci opened a new pull request, #9917:
URL: https://github.com/apache/nuttx/pull/9917

   ## Summary
   
   * espressif: fix linker to include the reserved area of RTC memory
   
   Basically, it reserves an area of the RTC memory to preserve the RTC timer.
   
   Please refer to:
   
https://github.com/espressif/esp-hal-3rdparty/commit/fa76c82a5b1575e41d697c6291b728bd612a7a4e
   
   This commit also removes the `rtc.dummy` section because C3, C6 and H2 don't 
need to skip it once the region is accessed by the same address space using the 
instruction and data bus.
   
   * espressif: update esp-hal-3rdparty
   
   The esp-hal-3rdparty release includes general bugfixes.
   
   ## Impact
   
   Fixes internal bugs.
   
   ## Testing
   
   Internal CI testing + NuttX CI.


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] tmedicci commented on issue #9845: xtensa/risc-v issue with module app (after PR #7202 and #9737)

2023-07-27 Thread via GitHub


tmedicci commented on issue #9845:
URL: https://github.com/apache/nuttx/issues/9845#issuecomment-1653873723

   Yes, it has been fixed properly. Checked with internal CI ;)


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] tmedicci closed issue #9845: xtensa/risc-v issue with module app (after PR #7202 and #9737)

2023-07-27 Thread via GitHub


tmedicci closed issue #9845: xtensa/risc-v issue with module app (after PR 
#7202 and #9737)
URL: https://github.com/apache/nuttx/issues/9845


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] simonatoaca commented on pull request #9916: drivers: Added support for BME680

2023-07-27 Thread via GitHub


simonatoaca commented on PR #9916:
URL: https://github.com/apache/nuttx/pull/9916#issuecomment-1653816916

   I am not sure which change you are referring to. I just squashed the commits 
as you suggested. I apologize for misunderstanding, I do not have much 
experience with pull requests.


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] jerpelea commented on pull request #9916: drivers: Added support for BME680

2023-07-27 Thread via GitHub


jerpelea commented on PR #9916:
URL: https://github.com/apache/nuttx/pull/9916#issuecomment-1653786449

   @simonatoaca please add a commit message documenting the change 


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] simonatoaca opened a new pull request, #9916: drivers: Added support for BME680

2023-07-27 Thread via GitHub


simonatoaca opened a new pull request, #9916:
URL: https://github.com/apache/nuttx/pull/9916

   ## Summary
   Added support for the BME680 temperature, pressure, humidity and gas sensor. 
(Over I2C)
   The pressure, humidity and gas measurements can be disabled from the menu 
(temperature is mandatory).
   
   ## Testing
   The code was tested on a custom board (ESP32 Sparrow).
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[nuttx-apps] branch master updated: cmake:migrate apps CMakeLists for [audioutils benchmarks]

2023-07-27 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
 new 7f3246cfd cmake:migrate apps CMakeLists for [audioutils benchmarks]
7f3246cfd is described below

commit 7f3246cfdf5cf4bce1ad81a1453d74d744196e0e
Author: xuxin19 
AuthorDate: Tue Jul 25 16:11:31 2023 +0800

cmake:migrate apps CMakeLists for [audioutils benchmarks]

 audioutils
  ├── fmsynth
  ├── mml_parser
  └── nxaudio
 benchmarks
  └── coremark

Signed-off-by: xuxin19 
---
 audioutils/CMakeLists.txt  |   2 +
 audioutils/{ => fmsynth}/CMakeLists.txt|   6 +-
 audioutils/{ => mml_parser}/CMakeLists.txt |   7 +-
 audioutils/{ => nxaudio}/CMakeLists.txt|   6 +-
 benchmarks/coremark/CMakeLists.txt | 101 +
 5 files changed, 115 insertions(+), 7 deletions(-)

diff --git a/audioutils/CMakeLists.txt b/audioutils/CMakeLists.txt
index 5491e5a19..2342e7220 100644
--- a/audioutils/CMakeLists.txt
+++ b/audioutils/CMakeLists.txt
@@ -18,4 +18,6 @@
 #
 # 
##
 
+nuttx_add_subdirectory()
+
 nuttx_generate_kconfig(MENUDESC "Audio Utility libraries")
diff --git a/audioutils/CMakeLists.txt b/audioutils/fmsynth/CMakeLists.txt
similarity index 86%
copy from audioutils/CMakeLists.txt
copy to audioutils/fmsynth/CMakeLists.txt
index 5491e5a19..968a001ca 100644
--- a/audioutils/CMakeLists.txt
+++ b/audioutils/fmsynth/CMakeLists.txt
@@ -1,5 +1,5 @@
 # 
##
-# apps/audioutils/CMakeLists.txt
+# apps/audioutils/fmsynth/CMakeLists.txt
 #
 # Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
 # license agreements.  See the NOTICE file distributed with this work for
@@ -18,4 +18,6 @@
 #
 # 
##
 
-nuttx_generate_kconfig(MENUDESC "Audio Utility libraries")
+if(CONFIG_AUDIOUTILS_MMLPARSER_LIB)
+  target_sources(apps PRIVATE fmsynth.c fmsynth_eg.c fmsynth_op.c)
+endif()
diff --git a/audioutils/CMakeLists.txt b/audioutils/mml_parser/CMakeLists.txt
similarity index 87%
copy from audioutils/CMakeLists.txt
copy to audioutils/mml_parser/CMakeLists.txt
index 5491e5a19..36c083a36 100644
--- a/audioutils/CMakeLists.txt
+++ b/audioutils/mml_parser/CMakeLists.txt
@@ -1,5 +1,5 @@
 # 
##
-# apps/audioutils/CMakeLists.txt
+# apps/audioutils/mml_parser/CMakeLists.txt
 #
 # Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
 # license agreements.  See the NOTICE file distributed with this work for
@@ -17,5 +17,6 @@
 # the License.
 #
 # 
##
-
-nuttx_generate_kconfig(MENUDESC "Audio Utility libraries")
+if(CONFIG_AUDIOUTILS_MMLPARSER_LIB)
+  target_sources(apps PRIVATE mml_parser.c)
+endif()
diff --git a/audioutils/CMakeLists.txt b/audioutils/nxaudio/CMakeLists.txt
similarity index 88%
copy from audioutils/CMakeLists.txt
copy to audioutils/nxaudio/CMakeLists.txt
index 5491e5a19..f6c35241b 100644
--- a/audioutils/CMakeLists.txt
+++ b/audioutils/nxaudio/CMakeLists.txt
@@ -1,5 +1,5 @@
 # 
##
-# apps/audioutils/CMakeLists.txt
+# apps/audioutils/nxaudio/CMakeLists.txt
 #
 # Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
 # license agreements.  See the NOTICE file distributed with this work for
@@ -18,4 +18,6 @@
 #
 # 
##
 
-nuttx_generate_kconfig(MENUDESC "Audio Utility libraries")
+if(CONFIG_AUDIOUTILS_NXAUDIO_LIB)
+  target_sources(apps PRIVATE nxaudio.c)
+endif()
diff --git a/benchmarks/coremark/CMakeLists.txt 
b/benchmarks/coremark/CMakeLists.txt
new file mode 100644
index 0..fcce20702
--- /dev/null
+++ b/benchmarks/coremark/CMakeLists.txt
@@ -0,0 +1,101 @@
+# 
##
+# apps/benchmarks/coremark/CMakeLists.txt
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, 

[GitHub] [nuttx-apps] xiaoxiang781216 merged pull request #1854: cmake:migrate apps CMakeLists for [audioutils benchmarks]

2023-07-27 Thread via GitHub


xiaoxiang781216 merged PR #1854:
URL: https://github.com/apache/nuttx-apps/pull/1854


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] simonatoaca closed pull request #9915: drivers: Added support for the BME680 sensor

2023-07-27 Thread via GitHub


simonatoaca closed pull request #9915: drivers: Added support for the BME680 
sensor
URL: https://github.com/apache/nuttx/pull/9915


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] simonatoaca opened a new pull request, #9915: drivers: Added support for the BME680 sensor

2023-07-27 Thread via GitHub


simonatoaca opened a new pull request, #9915:
URL: https://github.com/apache/nuttx/pull/9915

   ## Summary
   Added support for the BME680 temperature, pressure, humidity and gas sensor 
(using I2C). 
   The pressure, humidity and gas measurements can be disabled from the menu, 
the temperature measurement being mandatory. 
   
   ## Testing
   Testing was done on a custom board (ESP32 Sparrow), on which the BME680 is 
connected over I2C, so I did not add SPI support.
   
   Please let me know what improvements can be made.
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx-apps] raiden00pl commented on a diff in pull request #1855: add support for tinydtls and wakaama

2023-07-27 Thread via GitHub


raiden00pl commented on code in PR #1855:
URL: https://github.com/apache/nuttx-apps/pull/1855#discussion_r1276287058


##
netutils/tinydtls/CMakeLists.txt:
##
@@ -0,0 +1,92 @@
+# 
##
+# apps/netutils/tinydtls/CMakeLists.txt

Review Comment:
   done



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx-apps] raiden00pl commented on a diff in pull request #1855: add support for tinydtls and wakaama

2023-07-27 Thread via GitHub


raiden00pl commented on code in PR #1855:
URL: https://github.com/apache/nuttx-apps/pull/1855#discussion_r1276282490


##
netutils/tinydtls/CMakeLists.txt:
##
@@ -0,0 +1,92 @@
+# 
##
+# apps/netutils/tinydtls/CMakeLists.txt

Review Comment:
   true, it fits better in crypto along with mbedtls and wolfssl



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx-apps] xiaoxiang781216 commented on a diff in pull request #1855: add support for tinydtls and wakaama

2023-07-27 Thread via GitHub


xiaoxiang781216 commented on code in PR #1855:
URL: https://github.com/apache/nuttx-apps/pull/1855#discussion_r1276271253


##
netutils/tinydtls/CMakeLists.txt:
##
@@ -0,0 +1,92 @@
+# 
##
+# apps/netutils/tinydtls/CMakeLists.txt

Review Comment:
   should we move tinydtls to crypto folder?



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx-apps] raiden00pl commented on pull request #1855: add support for tinydtls and wakaama

2023-07-27 Thread via GitHub


raiden00pl commented on PR #1855:
URL: https://github.com/apache/nuttx-apps/pull/1855#issuecomment-1653429689

   the correct handling of commands for Wakaama examples depends on 
https://github.com/eclipse/wakaama/pull/723


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx-apps] raiden00pl opened a new pull request, #1855: add support for tinydtls and wakaama

2023-07-27 Thread via GitHub


raiden00pl opened a new pull request, #1855:
URL: https://github.com/apache/nuttx-apps/pull/1855

   ## Summary
   
   - netutils: add Eclipse tinydtls support
   - netutils: add Eclipse Wakaama support
   
   ## Impact
   
   ## Testing
   sim and nrf9160-dk
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx-apps] xuxin930 opened a new pull request, #1854: cmake:migrate apps CMakeLists for [audioutils benchmarks]

2023-07-27 Thread via GitHub


xuxin930 opened a new pull request, #1854:
URL: https://github.com/apache/nuttx-apps/pull/1854

   ## Summary
 cmake: add support for audioutils and coremark.
   
   ## Impact
   
   ## Testing
   coremark has passed verification with stm32/nucleo-g431rb
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] pussuw commented on pull request #9577: riscv/fpu: Implement correct lazy-FPU functionality (attempt #2)

2023-07-27 Thread via GitHub


pussuw commented on PR #9577:
URL: https://github.com/apache/nuttx/pull/9577#issuecomment-1653288414

   Now qemu-rv smp64 is rock solid. The trick was up_cpu_paused, I did not 
realize the full CPU context (integer + FPU regs) need to be saved there.
   
   Could you @masayuki2009 verify with actual hardware that it works ? I think 
we should not merge before this is verified with HW.


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[nuttx] branch master updated: arch: move [enter|leave]_critical_section

2023-07-27 Thread jerpelea
This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
 new 68187b68af arch: move [enter|leave]_critical_section
68187b68af is described below

commit 68187b68afbc209a794cb1d686dc8c14d895468c
Author: hujun5 
AuthorDate: Thu May 25 09:00:30 2023 +0800

arch: move [enter|leave]_critical_section

move [enter|leave]_critical_section to the same place for easy to understand
and call matching

Signed-off-by: hujun5 
---
 arch/arm/src/armv6-m/arm_schedulesigaction.c | 14 --
 arch/arm/src/armv6-m/arm_sigdeliver.c|  6 ++
 arch/arm/src/armv7-a/arm_schedulesigaction.c | 14 --
 arch/arm/src/armv7-a/arm_sigdeliver.c|  6 ++
 arch/arm/src/armv7-m/arm_schedulesigaction.c | 14 --
 arch/arm/src/armv7-m/arm_sigdeliver.c| 10 ++
 arch/arm/src/armv7-r/arm_schedulesigaction.c | 14 --
 arch/arm/src/armv7-r/arm_sigdeliver.c|  6 ++
 arch/arm/src/armv8-m/arm_schedulesigaction.c | 14 --
 arch/arm/src/armv8-m/arm_sigdeliver.c| 10 ++
 arch/arm64/src/common/arm64_schedulesigaction.c  | 14 --
 arch/arm64/src/common/arm64_sigdeliver.c |  5 +
 arch/risc-v/src/common/riscv_schedulesigaction.c | 14 --
 arch/risc-v/src/common/riscv_sigdeliver.c|  6 ++
 arch/sparc/src/sparc_v8/sparc_v8_schedulesigaction.c | 14 --
 arch/sparc/src/sparc_v8/sparc_v8_sigdeliver.c|  6 ++
 arch/xtensa/src/common/xtensa_schedsigaction.c   | 14 --
 arch/xtensa/src/common/xtensa_sigdeliver.c   |  6 ++
 18 files changed, 61 insertions(+), 126 deletions(-)

diff --git a/arch/arm/src/armv6-m/arm_schedulesigaction.c 
b/arch/arm/src/armv6-m/arm_schedulesigaction.c
index 3cc3339484..a9c25d883d 100644
--- a/arch/arm/src/armv6-m/arm_schedulesigaction.c
+++ b/arch/arm/src/armv6-m/arm_schedulesigaction.c
@@ -351,13 +351,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, 
sig_deliver_t sigdeliver)
 #endif
 }
 
-  /* Increment the IRQ lock count so that when the task is
-   * restarted, it will hold the IRQ spinlock.
-   */
-
-  DEBUGASSERT(tcb->irqcount < INT16_MAX);
-  tcb->irqcount++;
-
   /* NOTE: If the task runs on another CPU(cpu), adjusting
* global IRQ controls will be done in the pause handler
* on the CPU(cpu) by taking a critical section.
@@ -403,13 +396,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, 
sig_deliver_t sigdeliver)
   tcb->xcp.regs[REG_SP]  = (uint32_t)tcb->xcp.regs +
  XCPTCONTEXT_SIZE;
 
-  /* Increment the IRQ lock count so that when the task is restarted,
-   * it will hold the IRQ spinlock.
-   */
-
-  DEBUGASSERT(tcb->irqcount < INT16_MAX);
-  tcb->irqcount++;
-
   /* Then set up to vector to the trampoline with interrupts
* disabled.  We must already be in privileged thread mode to be
* here.
diff --git a/arch/arm/src/armv6-m/arm_sigdeliver.c 
b/arch/arm/src/armv6-m/arm_sigdeliver.c
index 5150c86f2b..ee01587014 100644
--- a/arch/arm/src/armv6-m/arm_sigdeliver.c
+++ b/arch/arm/src/armv6-m/arm_sigdeliver.c
@@ -63,6 +63,8 @@ void arm_sigdeliver(void)
*/
 
   int16_t saved_irqcount;
+
+  enter_critical_section();
 #endif
 
   board_autoled_on(LED_SIGNAL);
@@ -154,6 +156,10 @@ retry:
 
   board_autoled_off(LED_SIGNAL);
 #ifdef CONFIG_SMP
+  /* We need to keep the IRQ lock until task switching */
+
+  rtcb->irqcount++;
+  leave_critical_section((uint16_t)regs[REG_PRIMASK]);
   rtcb->irqcount--;
 #endif
   arm_fullcontextrestore(regs);
diff --git a/arch/arm/src/armv7-a/arm_schedulesigaction.c 
b/arch/arm/src/armv7-a/arm_schedulesigaction.c
index 95a13e1caa..2535d53625 100644
--- a/arch/arm/src/armv7-a/arm_schedulesigaction.c
+++ b/arch/arm/src/armv7-a/arm_schedulesigaction.c
@@ -349,13 +349,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, 
sig_deliver_t sigdeliver)
 #endif
 }
 
-  /* Increment the IRQ lock count so that when the task is
-   * restarted, it will hold the IRQ spinlock.
-   */
-
-  DEBUGASSERT(tcb->irqcount < INT16_MAX);
-  tcb->irqcount++;
-
   /* NOTE: If the task runs on another CPU(cpu), adjusting
* global IRQ controls will be done in the pause handler
* on the CPU(cpu) by taking a critical section.
@@ -401,13 +394,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, 
sig_deliver_t sigdeliver)
   tcb->xcp.regs[REG_SP]= 

[GitHub] [nuttx] jerpelea merged pull request #9906: arch: move [enter|leave]_critical_section

2023-07-27 Thread via GitHub


jerpelea merged PR #9906:
URL: https://github.com/apache/nuttx/pull/9906


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] xiaoxiang781216 merged pull request #9914: cmake: format docstrings

2023-07-27 Thread via GitHub


xiaoxiang781216 merged PR #9914:
URL: https://github.com/apache/nuttx/pull/9914


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[nuttx] branch master updated: cmake: format docstrings

2023-07-27 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
 new 5c9c518f7f cmake: format docstrings
5c9c518f7f is described below

commit 5c9c518f7f83c2d6db53bd2a26959ec4425f5c25
Author: raiden00pl 
AuthorDate: Thu Jul 27 08:50:57 2023 +0200

cmake: format docstrings
---
 cmake/nuttx_add_application.cmake |  2 +-
 cmake/nuttx_add_library.cmake |  5 ++---
 cmake/nuttx_add_romfs.cmake   | 19 ++--
 cmake/nuttx_add_symtab.cmake  | 18 ++-
 cmake/nuttx_parse_function_args.cmake | 42 +--
 5 files changed, 52 insertions(+), 34 deletions(-)

diff --git a/cmake/nuttx_add_application.cmake 
b/cmake/nuttx_add_application.cmake
index 2635352dc5..3cdda5f0ad 100644
--- a/cmake/nuttx_add_application.cmake
+++ b/cmake/nuttx_add_application.cmake
@@ -43,7 +43,7 @@ define_property(
 #
 # Parameters:
 #   NAME: unique name of application
-#   PRIORITY:  priority
+#   PRIORITY: priority
 #   STACKSIZE   : stack size
 #   COMPILE_FLAGS   : compile flags
 #   INCLUDE_DIRECTORIES : include directories
diff --git a/cmake/nuttx_add_library.cmake b/cmake/nuttx_add_library.cmake
index 0c51c9ab61..d80e8be67a 100644
--- a/cmake/nuttx_add_library.cmake
+++ b/cmake/nuttx_add_library.cmake
@@ -180,7 +180,6 @@ endfunction()
 #
 function(nuttx_library_import library_name library_path)
   add_library(${library_name} STATIC IMPORTED GLOBAL)
-  set_target_properties(${library_name}
-PROPERTIES IMPORTED_LOCATION
-${library_path})
+  set_target_properties(${library_name} PROPERTIES IMPORTED_LOCATION
+   ${library_path})
 endfunction()
diff --git a/cmake/nuttx_add_romfs.cmake b/cmake/nuttx_add_romfs.cmake
index 3c168c4dfe..e844357a1b 100644
--- a/cmake/nuttx_add_romfs.cmake
+++ b/cmake/nuttx_add_romfs.cmake
@@ -18,14 +18,19 @@
 #
 # 
##
 
-# nuttx_add_romfs Generates a ROMFS image in a C array, which is built to an
-# OBJECT library.
+# ~~~
+# nuttx_add_romfs
+#
+# Description:
+#   Generates a ROMFS image in a C array, which is built to an OBJECT library.
 #
-# Parameters: - NAME: determines the romfs label and name of target
-# (romfs_${NAME}) - HEADER: option to indicate that a .h file is to be 
generated
-# instead of a .c - PREFIX: optional prefix to add to image name (as
-# romfs_${PREFIX}.img) - NONCONST: option to indicate the array should be
-# non-const - DEPENDS: list of targets that should be depended on
+# Parameters:
+#   NAME: determines the romfs label and name of target (romfs_${NAME})
+#   HEADER  : option to indicate that a .h file is to be generated instead of 
a .c
+#   PREFIX  : optional prefix to add to image name (as romfs_${PREFIX}.img)
+#   NONCONST: option to indicate the array should be non-const
+#   DEPENDS : list of targets that should be depended on
+# ~~~
 
 function(nuttx_add_romfs)
   nuttx_parse_function_args(
diff --git a/cmake/nuttx_add_symtab.cmake b/cmake/nuttx_add_symtab.cmake
index e3f1d42404..bd32a644b8 100644
--- a/cmake/nuttx_add_symtab.cmake
+++ b/cmake/nuttx_add_symtab.cmake
@@ -18,13 +18,19 @@
 #
 # 
##
 
-# nuttx_add_symtab Generates a symbol table of undefined symbols from a set of
-# binaries
+# ~~~
+# nuttx_add_symtab
 #
-# Parameters: - NAME: name of symtab (output will be symtab_${NAME}.c) -
-# BINARIES: list of binary target names to process (dependencies will be added
-# to these targets) - PREFIX: optional prefix to add to symtab variable name -
-# EXCLUDE: optional list of symbols to exclude (ie: assume they are defined)
+# Description:
+#   Generates a symbol table of undefined symbols from a set of binaries
+#
+# Parameters:
+#   NAME: name of symtab (output will be symtab_${NAME}.c)
+#   BINARIES: list of binary target names to process (dependencies will be 
added
+# to these targets)
+#   PREFIX  : optional prefix to add to symtab variable name
+#   EXCLUDE : optional list of symbols to exclude (ie: assume they are defined)
+# ~~~
 
 function(nuttx_add_symtab)
   nuttx_parse_function_args(
diff --git a/cmake/nuttx_parse_function_args.cmake 
b/cmake/nuttx_parse_function_args.cmake
index bcebeda9d9..48018b3d7c 100644
--- a/cmake/nuttx_parse_function_args.cmake
+++ b/cmake/nuttx_parse_function_args.cmake
@@ -29,32 +29,40 @@
 
 include(CMakeParseArguments)
 
-# =
-#
+# ~~~
 # nuttx_parse_function_args
 #
 # This function simplifies usage of the cmake_parse_arguments module. It is
 # intended to be called by other functions.
 #
-# Usage: nuttx_parse_function_args( FUNC 

[nuttx] branch master updated: drivers: usbhost: fix usbhost_hidkbd some errors

2023-07-27 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
 new 8e85e52708 drivers: usbhost: fix usbhost_hidkbd some errors
8e85e52708 is described below

commit 8e85e52708c54d1ce6f82074fa33c3bbaf611071
Author: Zhihong Chen 
AuthorDate: Thu Jul 27 11:27:06 2023 +0800

drivers: usbhost: fix usbhost_hidkbd some errors

- usbhost_send_request(): data should using DRVR_ALLOC buffer
- fix usbhost_cralloc() assert variable

Signed-off-by: Zhihong Chen 
---
 drivers/usbhost/usbhost_hidkbd.c | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/usbhost/usbhost_hidkbd.c b/drivers/usbhost/usbhost_hidkbd.c
index bf622d2b1c..4306ad8e03 100644
--- a/drivers/usbhost/usbhost_hidkbd.c
+++ b/drivers/usbhost/usbhost_hidkbd.c
@@ -1420,13 +1420,14 @@ static int usbhost_kbdpoll(int argc, char *argv[])
   priv->caps_lock = usbhost_get_capslock();
 
   leds = usbhost_get_capslock() ? USBHID_KBDOUT_CAPSLOCK : 0x00;
+  *priv->tbuffer = leds;
 
   /* Send a report request to change the LED */
 
   usbhost_send_request(priv, USB_REQ_DIR_OUT,
USBHID_REQUEST_SETREPORT,
USBHID_REPORTTYPE_OUTPUT << 8, 0, 1,
-   );
+   priv->tbuffer);
 
 #ifdef CONFIG_HIDKBD_NOGETREPORT
   /* Setup to receive the next report */
@@ -1915,9 +1916,10 @@ static inline int usbhost_devinit(FAR struct 
usbhost_state_s *priv)
   priv->caps_lock = usbhost_get_capslock();
 
   leds = usbhost_get_capslock() ? USBHID_KBDOUT_CAPSLOCK : 0x00;
+  *priv->tbuffer = leds;
   usbhost_send_request(priv, USB_REQ_DIR_OUT, USBHID_REQUEST_SETREPORT,
USBHID_REPORTTYPE_OUTPUT << 8, 0, 1,
-   );
+   priv->tbuffer);
 
 #ifdef CONFIG_HIDKBD_NOGETREPORT
 
@@ -2137,7 +2139,7 @@ static int usbhost_cralloc(FAR struct usbhost_state_s 
*priv)
   FAR struct usbhost_hubport_s *hport;
 
   DEBUGASSERT(priv != NULL && priv->usbclass.hport != NULL &&
-  priv->tbuffer == NULL);
+  priv->ctrlreq == NULL);
   hport = priv->usbclass.hport;
 
   return DRVR_ALLOC(hport->drvr, >ctrlreq, >ctrllen);



[GitHub] [nuttx] xiaoxiang781216 merged pull request #9913: drivers: usbhost: fix usbhost_hidkbd some errors

2023-07-27 Thread via GitHub


xiaoxiang781216 merged PR #9913:
URL: https://github.com/apache/nuttx/pull/9913


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] tobiasjaster commented on issue #9679: stm32 GPIO driver

2023-07-27 Thread via GitHub


tobiasjaster commented on issue #9679:
URL: https://github.com/apache/nuttx/issues/9679#issuecomment-1653039510

   Thank you for asking. I don't remember exactly what I did, but I tried it 
again on my Nucleo-l767 with the original nsh-config and it worked. Then I 
ported it again to the Nucleo-l496 and now it works. Must have been somewhere 
on my side. So the issue can be closed by me.
   
   PS: My setup is a stm32-L496 with two MCP-GPIO expanders. To decouple all 
GPIOs cleanly from the device drivers via /dev/gpio, I have now written an 
expander for stm32l4. Is there a reason why something like this doesn't exist 
yet, or does it make sense to revert this as a PR?


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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



[GitHub] [nuttx] raiden00pl opened a new pull request, #9914: cmake: format docstrings

2023-07-27 Thread via GitHub


raiden00pl opened a new pull request, #9914:
URL: https://github.com/apache/nuttx/pull/9914

   ## Summary
   cmake: format docstrings
   ## Impact
   none
   ## Testing
   CI
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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