Re: [PR] Implement ticket spinlock [nuttx]

2023-10-05 Thread via GitHub
TaiJuWu commented on code in PR #10605: URL: https://github.com/apache/nuttx/pull/10605#discussion_r1348266675 ## include/nuttx/spinlock.h: ## @@ -84,6 +107,10 @@ typedef uint8_t spinlock_t; # define __SP_UNLOCK_FUNCTION 1 #endif +#ifdef CONFIG_TICKET_SPINLOCK +# define __

[PR] max31865:RTD-to-Digital Converter [nuttx]

2023-10-05 Thread via GitHub
laoniaokkk opened a new pull request, #10864: URL: https://github.com/apache/nuttx/pull/10864 ## Summary A digital converter for rtd ## Impact NuttShell (NSH) NuttX-12.2.1 nsh> nsh> ls /dev /dev: console null ram0 temp0 ttyS0 ## Testing #define MAX

Re: [PR] Implement ticket spinlock [nuttx]

2023-10-05 Thread via GitHub
xiaoxiang781216 commented on code in PR #10605: URL: https://github.com/apache/nuttx/pull/10605#discussion_r1348216222 ## sched/semaphore/spinlock.c: ## @@ -137,32 +155,52 @@ void spin_lock_wo_note(FAR volatile spinlock_t *lock) *

Re: [PR] Implement ticket spinlock [nuttx]

2023-10-05 Thread via GitHub
xiaoxiang781216 commented on PR #10605: URL: https://github.com/apache/nuttx/pull/10605#issuecomment-1749949331 please run './tools/refresh.sh qemu-armv8a/nsh_smp' to fix the ci error. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to

Re: [PR] Implement ticket spinlock [nuttx]

2023-10-05 Thread via GitHub
xiaoxiang781216 commented on code in PR #10605: URL: https://github.com/apache/nuttx/pull/10605#discussion_r1348212690 ## include/nuttx/spinlock.h: ## @@ -39,6 +39,26 @@ typedef uint8_t spinlock_t; #else +#ifdef CONFIG_TICKET_SPINLOCK + +# define SP_UNLOCKED 0 /* The Un-lo

Re: [PR] Implement ticket spinlock [nuttx]

2023-10-05 Thread via GitHub
xiaoxiang781216 commented on code in PR #10605: URL: https://github.com/apache/nuttx/pull/10605#discussion_r1348211586 ## include/nuttx/spinlock.h: ## @@ -84,6 +107,10 @@ typedef uint8_t spinlock_t; # define __SP_UNLOCK_FUNCTION 1 #endif +#ifdef CONFIG_TICKET_SPINLOCK +# d

Re: [PR] spinlock: Add spin_lock_init and spin_is_locked macro [nuttx]

2023-10-05 Thread via GitHub
xiaoxiang781216 commented on code in PR #10861: URL: https://github.com/apache/nuttx/pull/10861#discussion_r1348211142 ## include/nuttx/spinlock.h: ## @@ -286,6 +304,7 @@ void spin_unlock_wo_note(FAR volatile spinlock_t *lock); /* bool spin_islocked(FAR spinlock_t lock); */

[nuttx-website] branch asf-site updated: Publishing web: 07abea83aab63736f2895f109c448ae631509f46 docs: 57bf9d44d2d93619616a4c87ce96b85986f96c65

2023-10-05 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 a378537a Publishing web: 07abea83

[nuttx] 02/02: Documentation: Fix search path for defconfig include list

2023-10-05 Thread acassis
This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git commit 57bf9d44d2d93619616a4c87ce96b85986f96c65 Author: Tiago Medicci Serrano AuthorDate: Thu Oct 5 18:00:09 2023 -0300 Do

[nuttx] branch master updated (7901ed0fe3 -> 57bf9d44d2)

2023-10-05 Thread acassis
This is an automated email from the ASF dual-hosted git repository. acassis pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git from 7901ed0fe3 riscv_addrenv_utils.c: Determine page table flags by type of vaddr new 997b3422a3 Documentation: Upda

[nuttx] 01/02: Documentation: Update the recommended toolchain for ESP32-C3/C6/H2

2023-10-05 Thread acassis
This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git commit 997b3422a3180b463f94844ce480a6016494b989 Author: Tiago Medicci Serrano AuthorDate: Thu Oct 5 17:39:49 2023 -0300 Do

Re: [PR] Documentation: improve documentation for ESP32-C3/C6 and fix defconfig include list [nuttx]

2023-10-05 Thread via GitHub
acassis merged PR #10863: URL: https://github.com/apache/nuttx/pull/10863 -- 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.apac

[PR] Documentation: improve documentation for ESP32-C3/C6 and fix defconfig include list [nuttx]

2023-10-05 Thread via GitHub
tmedicci opened a new pull request, #10863: URL: https://github.com/apache/nuttx/pull/10863 ## Summary * Currently, this toolchain is being used for NuttX CI testing and provides. features that weren't available in the old toolchain based on GCC 10.2; * Fix search path for defconfi

Re: [PR] Implement ticket spinlock [nuttx]

2023-10-05 Thread via GitHub
TaiJuWu commented on code in PR #10605: URL: https://github.com/apache/nuttx/pull/10605#discussion_r1347825217 ## include/nuttx/spinlock.h: ## @@ -39,6 +39,26 @@ typedef uint8_t spinlock_t; #else +#ifdef CONFIG_TICKET_SPINLOCK + +# define SP_UNLOCKED 0 /* The Un-locked sta

Re: [PR] Implement ticket spinlock [nuttx]

2023-10-05 Thread via GitHub
TaiJuWu commented on code in PR #10605: URL: https://github.com/apache/nuttx/pull/10605#discussion_r1347865072 ## sched/semaphore/spinlock.c: ## @@ -137,32 +155,52 @@ void spin_lock_wo_note(FAR volatile spinlock_t *lock) *

Re: [PR] Implement ticket spinlock [nuttx]

2023-10-05 Thread via GitHub
TaiJuWu commented on code in PR #10605: URL: https://github.com/apache/nuttx/pull/10605#discussion_r1347862942 ## sched/semaphore/spinlock.c: ## @@ -137,32 +155,52 @@ void spin_lock_wo_note(FAR volatile spinlock_t *lock) *

Re: [PR] Implement ticket spinlock [nuttx]

2023-10-05 Thread via GitHub
TaiJuWu commented on code in PR #10605: URL: https://github.com/apache/nuttx/pull/10605#discussion_r1347850536 ## include/nuttx/spinlock.h: ## @@ -84,6 +107,10 @@ typedef uint8_t spinlock_t; # define __SP_UNLOCK_FUNCTION 1 #endif +#ifdef CONFIG_TICKET_SPINLOCK +# define __

Re: [PR] Implement ticket spinlock [nuttx]

2023-10-05 Thread via GitHub
TaiJuWu commented on code in PR #10605: URL: https://github.com/apache/nuttx/pull/10605#discussion_r1347850536 ## include/nuttx/spinlock.h: ## @@ -84,6 +107,10 @@ typedef uint8_t spinlock_t; # define __SP_UNLOCK_FUNCTION 1 #endif +#ifdef CONFIG_TICKET_SPINLOCK +# define __

Re: [PR] Implement ticket spinlock [nuttx]

2023-10-05 Thread via GitHub
TaiJuWu commented on code in PR #10605: URL: https://github.com/apache/nuttx/pull/10605#discussion_r1347825217 ## include/nuttx/spinlock.h: ## @@ -39,6 +39,26 @@ typedef uint8_t spinlock_t; #else +#ifdef CONFIG_TICKET_SPINLOCK + +# define SP_UNLOCKED 0 /* The Un-locked sta

Re: [PR] Implement ticket spinlock [nuttx]

2023-10-05 Thread via GitHub
TaiJuWu commented on code in PR #10605: URL: https://github.com/apache/nuttx/pull/10605#discussion_r1347825217 ## include/nuttx/spinlock.h: ## @@ -39,6 +39,26 @@ typedef uint8_t spinlock_t; #else +#ifdef CONFIG_TICKET_SPINLOCK + +# define SP_UNLOCKED 0 /* The Un-locked sta

Re: [I] usb host: cdcacm: IN transition failure [nuttx]

2023-10-05 Thread via GitHub
acassis commented on issue #10802: URL: https://github.com/apache/nuttx/issues/10802#issuecomment-1749389825 @chenzhihong007 I think the second option is safer because modifying serial.c will impact in name drivers, but modify usbhost_rxint() only will affect the CDC/ACM. @xiaoxiang781216 @

Re: [PR] spinlock: Add spin_lock_init and spin_is_locked macro [nuttx]

2023-10-05 Thread via GitHub
acassis commented on code in PR #10861: URL: https://github.com/apache/nuttx/pull/10861#discussion_r1347774594 ## include/nuttx/spinlock.h: ## @@ -286,6 +304,7 @@ void spin_unlock_wo_note(FAR volatile spinlock_t *lock); /* bool spin_islocked(FAR spinlock_t lock); */ #define

Re: [PR] lib/memfd: shm_unlink or unlink anonymous file [nuttx]

2023-10-05 Thread via GitHub
acassis commented on PR #10862: URL: https://github.com/apache/nuttx/pull/10862#issuecomment-1749366671 @xiaoxiang781216 I read the link, but didn't see any comment about the the shm_unlink or unlink? Is it related with shared memory sealing. Please include more info in the Summary/Commit l

Re: [PR] Implement ticket spinlock [nuttx]

2023-10-05 Thread via GitHub
xiaoxiang781216 commented on code in PR #10605: URL: https://github.com/apache/nuttx/pull/10605#discussion_r1347658375 ## include/nuttx/spinlock.h: ## @@ -352,9 +383,11 @@ void spin_clrbit(FAR volatile cpu_set_t *set, unsigned int cpu,

Re: [PR] rw spinlock prototype [nuttx]

2023-10-05 Thread via GitHub
TaiJuWu commented on code in PR #10776: URL: https://github.com/apache/nuttx/pull/10776#discussion_r1347609262 ## sched/semaphore/spinlock.c: ## @@ -384,4 +388,138 @@ void spin_clrbit(FAR volatile cpu_set_t *set, unsigned int cpu, } #endif +#if defined(CONFIG_RW_SPINLOCK) +

Re: [PR] Implement ticket spinlock [nuttx]

2023-10-05 Thread via GitHub
TaiJuWu commented on code in PR #10605: URL: https://github.com/apache/nuttx/pull/10605#discussion_r1347583921 ## sched/semaphore/spinlock.c: ## @@ -187,16 +225,36 @@ spinlock_t spin_trylock(FAR volatile spinlock_t *lock) * ***

Re: [PR] sched/assert.c: Print process name in assert dump [nuttx]

2023-10-05 Thread via GitHub
pussuw commented on PR #10858: URL: https://github.com/apache/nuttx/pull/10858#issuecomment-1749083501 There is a build error, I think CONFIG_TASK_NAME_SIZE=0 fails. I will fix it next week -- This is an automated message from the Apache Git Service. To respond to the message, please log

Re: [PR] Add basic IEEE-1588 PTP server/client [nuttx-apps]

2023-10-05 Thread via GitHub
xiaoxiang781216 commented on code in PR #2101: URL: https://github.com/apache/nuttx-apps/pull/2101#discussion_r1347559512 ## netutils/ptpd/ptpd.c: ## @@ -0,0 +1,931 @@ +/ + * apps/netutils/ptpd/ptpd.c +

[PR] lib/memfd: shm_unlink or unlink anonymous file [nuttx]

2023-10-05 Thread via GitHub
xiaoxiang781216 opened a new pull request, #10862: URL: https://github.com/apache/nuttx/pull/10862 ## Summary as specified at: https://man7.org/linux/man-pages/man2/memfd_create.2.html ## Impact memfd ## Testing internal -- This is an automated message

Re: [PR] Add basic IEEE-1588 PTP server/client [nuttx-apps]

2023-10-05 Thread via GitHub
PetteriAimonen commented on code in PR #2101: URL: https://github.com/apache/nuttx-apps/pull/2101#discussion_r1347438060 ## netutils/ptpd/Makefile: ## @@ -0,0 +1,29 @@ + +# apps/netutils/ptpd/Makefile +#

[I] Clean up Makefile/Kconfig dependency checks [nuttx-apps]

2023-10-05 Thread via GitHub
PetteriAimonen opened a new issue, #2106: URL: https://github.com/apache/nuttx-apps/issues/2106 Some of the application Makefiles have configuration checks that overlap dependencies given in Kconfig and Make.defs. Ideally each check should be done at only one place, and dependencies shoul

[nuttx-apps] 03/03: examples/foc: support svm3 state with nxscope

2023-10-05 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 b88057fffd12994e8b32ecc35ca5c8e1d5059898 Author: raiden00pl AuthorDate: Wed Oct 4 11:50:02 2023 +0200 exampl

[nuttx-apps] 02/03: industrial/foc: add an interface that returns the modulation state

2023-10-05 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 a56f0922c52a494afb742cabe741261260fbe5c4 Author: raiden00pl AuthorDate: Wed Oct 4 11:40:55 2023 +0200 indust

[nuttx-apps] branch master updated (719d03a8c -> b88057fff)

2023-10-05 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 719d03a8c lte/alt1250: Change error code from ENOTSUP to EAFNOSUPPORT new 97e2be003 logging/nxscope/nxscop

[nuttx-apps] 01/03: logging/nxscope/nxscope.c: fix indentation

2023-10-05 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 97e2be0033e895b871d6eb2e38eb4af73f5dabfd Author: raiden00pl AuthorDate: Wed Oct 4 11:36:30 2023 +0200 loggin

Re: [PR] examples/foc: add support for streaming modulation state [nuttx-apps]

2023-10-05 Thread via GitHub
xiaoxiang781216 merged PR #2104: URL: https://github.com/apache/nuttx-apps/pull/2104 -- 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...

Re: [PR] riscv_addrenv_utils.c: Determine page table flags by type of vaddr [nuttx]

2023-10-05 Thread via GitHub
xiaoxiang781216 merged PR #10856: URL: https://github.com/apache/nuttx/pull/10856 -- 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...@nu

[nuttx] branch master updated: riscv_addrenv_utils.c: Determine page table flags by type of vaddr

2023-10-05 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 7901ed0fe3 riscv_addrenv_utils.c: Determine pa

Re: [I] imxrt/lpi2c multibyte read broken following DMA addition [nuttx]

2023-10-05 Thread via GitHub
davids5 commented on issue #10853: URL: https://github.com/apache/nuttx/issues/10853#issuecomment-1748500532 @acassis I will when I can get to it It will be a while. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use

Re: [PR] riscv_addrenv_utils.c: Determine page table flags by type of vaddr [nuttx]

2023-10-05 Thread via GitHub
pussuw commented on code in PR #10856: URL: https://github.com/apache/nuttx/pull/10856#discussion_r1347061693 ## arch/risc-v/src/common/riscv_addrenv.c: ## @@ -421,6 +422,12 @@ int up_addrenv_create(size_t textsize, size_t datasize, size_t heapsize, heapsize = heapsize + M

Re: [PR] rw spinlock prototype [nuttx]

2023-10-05 Thread via GitHub
TaiJuWu commented on code in PR #10776: URL: https://github.com/apache/nuttx/pull/10776#discussion_r1347041225 ## include/nuttx/spinlock.h: ## @@ -285,7 +290,7 @@ void spin_unlock_wo_note(FAR volatile spinlock_t *lock); *

Re: [PR] optimize note performance [nuttx]

2023-10-05 Thread via GitHub
xiaoxiang781216 commented on code in PR #10840: URL: https://github.com/apache/nuttx/pull/10840#discussion_r1346895989 ## include/nuttx/sched_note.h: ## @@ -119,6 +119,11 @@ memset((s), 0, sizeof(struct note_filter_tag_s)); #endif +#define NOTE_BEGINEX_EVENT 0 +#define NOT