[PR] rptun/rptun_initialize: add explicit initialization for variable [nuttx]

2024-02-12 Thread via GitHub


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

   ## Summary
   
   This patch add explicit initialization for variable `onceinit` before use.
   
   ## Impact
   
   RPTUN driver use cases, should be none as it is a minor improvement.
   
   ## Testing
   
   Checked with CanMV230
   


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



Re: [PR] rptun/debug: add debug configs and macros [nuttx]

2024-02-12 Thread via GitHub


yf13 commented on code in PR #11684:
URL: https://github.com/apache/nuttx/pull/11684#discussion_r1486988911


##
Kconfig:
##
@@ -2230,6 +2230,38 @@ config DEBUG_PCI_INFO
Enable PCI driver informational output to SYSLOG.
 
 endif # DEBUG_PCI
+
+config DEBUG_RPTUN

Review Comment:
   Will RPTUN and RPMSG co-exist in the future? if so we can add RPMSG related 
macros separately.



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



Re: [PR] rptun/debug: add debug configs and macros [nuttx]

2024-02-12 Thread via GitHub


yf13 commented on code in PR #11684:
URL: https://github.com/apache/nuttx/pull/11684#discussion_r1486988911


##
Kconfig:
##
@@ -2230,6 +2230,38 @@ config DEBUG_PCI_INFO
Enable PCI driver informational output to SYSLOG.
 
 endif # DEBUG_PCI
+
+config DEBUG_RPTUN

Review Comment:
   Will RPTUN and RPMSG co-exist in the future? if so we can add RPMSG related 
macros sepearately.



-- 
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: 84004c1f6038fbc126201fb37e0fd519312f2d68 docs: 72f9bd142f2f50bbd68548700c30be3b161462ff

2024-02-12 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 2e5b4d32 Publishing web: 84004c1f6038fbc126201fb37e0fd519312f2d68 
docs: 72f9bd142f2f50bbd68548700c30be3b161462ff
2e5b4d32 is described below

commit 2e5b4d322384aa86bfc6699257ed5259155916cf
Author: Tomasz 'CeDeROM' CEDRO 
AuthorDate: Tue Feb 13 00:15:32 2024 +

Publishing web: 84004c1f6038fbc126201fb37e0fd519312f2d68 docs: 
72f9bd142f2f50bbd68548700c30be3b161462ff
---
 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 +-
 .../12.2.1/platforms/xtensa/esp32/boards/esp32-audio-kit/index.html   | 2 +-
 .../12.2.1/platforms/xtensa/esp32/boards/esp32-devkitc/index.html | 2 +-
 content/docs/12.2.1/searchindex.js| 2 +-
 content/docs/12.3.0/index.html| 2 +-
 content/docs/12.3.0/searchindex.js| 2 +-
 content/docs/12.4.0/index.html| 2 +-
 content/docs/12.4.0/searchindex.js| 2 +-
 content/docs/latest/index.html| 2 +-
 content/docs/latest/searchindex.js| 2 +-
 content/feed.xml  | 4 ++--
 29 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/content/docs/10.0.0/index.html b/content/docs/10.0.0/index.html
index f59a7ff1..58be7dc9 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: 12 February 24 at 00:10
+Last Updated: 13 February 24 at 00:10
 
 Table of 
Contents
 
diff --git a/content/docs/10.0.0/searchindex.js 
b/content/docs/10.0.0/searchindex.js
index d0433379..a5847622 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", 

Re: [PR] openamp: Fix void pointer arithmetic in openamp to remove compilation… [nuttx]

2024-02-12 Thread via GitHub


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


-- 
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: openamp: Fix void pointer arithmetic in openamp to remove compilation warnings

2024-02-12 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 72f9bd142f openamp: Fix void pointer arithmetic in openamp to remove 
compilation warnings
72f9bd142f is described below

commit 72f9bd142f2f50bbd68548700c30be3b161462ff
Author: Jukka Laitinen 
AuthorDate: Mon Feb 12 13:30:30 2024 +0200

openamp: Fix void pointer arithmetic in openamp to remove compilation 
warnings

Signed-off-by: Jukka Laitinen 
---
 ...ttx-io.c-Fix-void-pointer-arithmetic-in-a.patch | 36 ++
 openamp/libmetal.defs  |  1 +
 2 files changed, 37 insertions(+)

diff --git 
a/openamp/0003-libmetal-nuttx-io.c-Fix-void-pointer-arithmetic-in-a.patch 
b/openamp/0003-libmetal-nuttx-io.c-Fix-void-pointer-arithmetic-in-a.patch
new file mode 100644
index 00..88ce403c93
--- /dev/null
+++ b/openamp/0003-libmetal-nuttx-io.c-Fix-void-pointer-arithmetic-in-a.patch
@@ -0,0 +1,36 @@
+From 59e2764f9d0598ad0135286d4a0ee1ac95893bba Mon Sep 17 00:00:00 2001
+From: Jukka Laitinen 
+Date: Mon, 12 Feb 2024 13:27:13 +0200
+Subject: [PATCH] libmetal/nuttx/io.c: Fix void pointer arithmetic in access
+ alignment
+
+Signed-off-by: Jukka Laitinen 
+---
+ libmetal/lib/system/nuttx/io.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lib/system/nuttx/io.c libmetal/lib/system/nuttx/io.c
+index 3ce9cbe..ab9bc6a 100644
+--- a/lib/system/nuttx/io.c
 libmetal/lib/system/nuttx/io.c
+@@ -45,7 +45,7 @@ static int metal_io_block_read_(struct metal_io_region *io,
+   *(uint32_t *)dst = *(uint32_t *)va;
+   else if (len == 8) {
+   *(uint32_t *)dst = *(uint32_t *)va;
+-  *(uint32_t *)(dst + 4) = *(uint32_t *)(va + 4);
++  *((uint32_t *)dst + 1) = *((uint32_t *)va + 1);
+   } else
+   memcpy(dst, va, len);
+ 
+@@ -68,7 +68,7 @@ static int metal_io_block_write_(struct metal_io_region *io,
+   *(uint32_t *)va = *(uint32_t *)src;
+   else if (len == 8) {
+   *(uint32_t *)va = *(uint32_t *)src;
+-  *(uint32_t *)(va + 4) = *(uint32_t *)(src + 4);
++  *((uint32_t *)va + 1) = *((uint32_t *)src + 1);
+   } else
+   memcpy(va, src, len);
+ 
+-- 
+2.34.1
+
diff --git a/openamp/libmetal.defs b/openamp/libmetal.defs
index b3369496ab..90e8a690be 100644
--- a/openamp/libmetal.defs
+++ b/openamp/libmetal.defs
@@ -79,6 +79,7 @@ libmetal.zip:
$(Q) mv libmetal-$(VERSION) libmetal
$(Q) patch -p0 < 
0001-libmetal-add-metal_list_for_each_safe-support.patch
$(Q) patch -p0 < 
0002-libmetal-nuttx-io.c-align-access-when-read-write-siz.patch
+   $(Q) patch -p0 < 
0003-libmetal-nuttx-io.c-Fix-void-pointer-arithmetic-in-a.patch
 
 .libmetal_headers: libmetal.zip
 else



Re: [PR] rptun/debug: add debug configs and macros [nuttx]

2024-02-12 Thread via GitHub


CV-Bowen commented on code in PR #11684:
URL: https://github.com/apache/nuttx/pull/11684#discussion_r1486109550


##
Kconfig:
##
@@ -2230,6 +2230,38 @@ config DEBUG_PCI_INFO
Enable PCI driver informational output to SYSLOG.
 
 endif # DEBUG_PCI
+
+config DEBUG_RPTUN

Review Comment:
   How about change `DEBUG_RPTUN` to `DEBUG_RPMSG` and also `rptunxxx()` --> 
`rpmsgxxx()`, I think all the rpmsg transport will use this debug option in the 
future.



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



Re: [PR] rptun/debug: add debug configs and macros [nuttx]

2024-02-12 Thread via GitHub


CV-Bowen commented on code in PR #11684:
URL: https://github.com/apache/nuttx/pull/11684#discussion_r1486109550


##
Kconfig:
##
@@ -2230,6 +2230,38 @@ config DEBUG_PCI_INFO
Enable PCI driver informational output to SYSLOG.
 
 endif # DEBUG_PCI
+
+config DEBUG_RPTUN

Review Comment:
   How about change `DEBUG_RPTUN` to `DEBUG_RPMSG` and also `rptunxxx()` --> 
`rpmsgxxx()`, I think all the rpmsg transport need used this debug option in 
the future.



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



[PR] openamp: Fix void pointer arithmetic in openamp to remove compilation… [nuttx]

2024-02-12 Thread via GitHub


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

   … warnings
   
   This fixes compilation errors caused by void * arithmetics added by a patch 
to openamp libmetal
   
   


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



[PR] xtensa/esp32s2: Fix esp32s2 wdt interrupt bug [nuttx]

2024-02-12 Thread via GitHub


eren-terzioglu opened a new pull request, #11685:
URL: https://github.com/apache/nuttx/pull/11685

   ## Summary
   ESP32S2 MWDT interrrupt trigger bugfix
   
   ## Impact
   
   Only ESP32S2
   
   ## Testing
   
   `esp32s2-saola-1:watchdog` config with customized irq handler added wdog 
example. 
   


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