[GitHub] [incubator-nuttx] btashton opened a new pull request #3732: board: Add support for Adafruit Circuit Express
btashton opened a new pull request #3732: URL: https://github.com/apache/incubator-nuttx/pull/3732 ## Summary This adds initial support for the Adafruit Circuit Express. Only support for nsh over the USART has been implemented. Other hardware support will be added next. Note: This does not work with the included bootloader. To use this configuration you must program it via the SWD test points. ## Impact New board support. ## Testing ``` NuttShell (NSH) NuttX-10.1.0-RC1 nsh> ? help usage: help [-v] [] .cat echo help mkdirrm source unset [cp exec hexdump mkrd rmdirtest usleep ?cmp exit kill mountset true xd breakdd falsels mv sleepumount Builtin Apps: nsh sh nsh> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[incubator-nuttx-website] branch asf-site updated: Publishing web: 1a68dd3405cfbf4f87c58d8ba31efe69f551d462 docs: 73cc1f888477e39b62c6d42fe52c6f52d40074b2
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/incubator-nuttx-website.git The following commit(s) were added to refs/heads/asf-site by this push: new 69dcc10 Publishing web: 1a68dd3405cfbf4f87c58d8ba31efe69f551d462 docs: 73cc1f888477e39b62c6d42fe52c6f52d40074b2 69dcc10 is described below commit 69dcc10a4c20eba467bb83568594f307f6925359 Author: Brennan AuthorDate: Sun May 16 00:47:15 2021 + Publishing web: 1a68dd3405cfbf4f87c58d8ba31efe69f551d462 docs: 73cc1f888477e39b62c6d42fe52c6f52d40074b2 --- content/docs/10.0.0/index.html | 2 +- content/docs/10.0.1/index.html | 2 +- content/docs/latest/index.html | 2 +- content/feed.xml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/content/docs/10.0.0/index.html b/content/docs/10.0.0/index.html index 150d9a8..b65abeb 100644 --- a/content/docs/10.0.0/index.html +++ b/content/docs/10.0.0/index.html @@ -207,7 +207,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: 15 May 21 at 00:41 +Last Updated: 16 May 21 at 00:45 Table of Contents diff --git a/content/docs/10.0.1/index.html b/content/docs/10.0.1/index.html index dbb9f36..32e788f 100644 --- a/content/docs/10.0.1/index.html +++ b/content/docs/10.0.1/index.html @@ -211,7 +211,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: 15 May 21 at 00:41 +Last Updated: 16 May 21 at 00:45 Table of Contents diff --git a/content/docs/latest/index.html b/content/docs/latest/index.html index e99a310..fa7d4b6 100644 --- a/content/docs/latest/index.html +++ b/content/docs/latest/index.html @@ -212,7 +212,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 64-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: 15 May 21 at 00:42 +Last Updated: 16 May 21 at 00:45 Table of Contents diff --git a/content/feed.xml b/content/feed.xml index 431402e..7a65b4e 100644 --- a/content/feed.xml +++ b/content/feed.xml @@ -5,8 +5,8 @@ / -Sat, 15 May 2021 00:43:32 + -Sat, 15 May 2021 00:43:32 + +Sun, 16 May 2021 00:47:14 + +Sun, 16 May 2021 00:47:14 + Jekyll v3.8.5
[GitHub] [incubator-nuttx] antmerlino opened a new pull request #3731: stm32/stm32f7 tickless: Fix up_timer_getmask to be correct for the width of the timer.
antmerlino opened a new pull request #3731: URL: https://github.com/apache/incubator-nuttx/pull/3731 ## Summary stm32/stm32f7 tickless: Fix up_timer_getmask to be correct for the width of the timer. ## Impact Fix timekeeping with 16-bit tickless. ## 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] antmerlino opened a new pull request #3730: stm32h7 rcc: Sync h7x7xx and h7x3xx. Changes are relevant to both
antmerlino opened a new pull request #3730: URL: https://github.com/apache/incubator-nuttx/pull/3730 ## Summary stm32h7 rcc: Sync h7x7xx and h7x3xx. Each of the differences is relevant to it's counterpart. ## Impact Correct features supported on both platforms. ## 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] btashton commented on pull request #3716: tools: Add a bash completion script for the configure tool
btashton commented on pull request #3716: URL: https://github.com/apache/incubator-nuttx/pull/3716#issuecomment-841729515 Ah missed that, thanks! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] antmerlino opened a new pull request #3729: stm32 timers: Prefer GTIM macros and make this use more uniform.
antmerlino opened a new pull request #3729: URL: https://github.com/apache/incubator-nuttx/pull/3729 ## Summary stm32 timers: Prefer GTIM macros and make this use more uniform. Also, make a few register operations more readable. ## Impact This change should have no code effect. It just makes things more readable and consistent. ## 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] gustavonihei commented on pull request #3716: tools: Add a bash completion script for the configure tool
gustavonihei commented on pull request #3716: URL: https://github.com/apache/incubator-nuttx/pull/3716#issuecomment-841729413 > @gustavonihei looks like you deleted the branch? I think this is useful and we can merge it, I was just trying to understand what Greg was suggesting. @btashton It has already been merged some hours ago by @acassis. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] antmerlino opened a new pull request #3728: stm32f7: Remove references to BOARD_ENABLE_USBOTG_HSULPI.
antmerlino opened a new pull request #3728: URL: https://github.com/apache/incubator-nuttx/pull/3728 ## Summary stm32f7: Remove references to BOARD_ENABLE_USBOTG_HSULPI. Prefer Kconfig option instead. ## Impact BOARD_ENABLE_USBOTG_HSULPI no longer has an affect. Boards should remove this definition and ensure the ULPI setting is correct - which it probably is for things to be working. ## 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] btashton commented on pull request #3716: tools: Add a bash completion script for the configure tool
btashton commented on pull request #3716: URL: https://github.com/apache/incubator-nuttx/pull/3716#issuecomment-841728344 @gustavonihei looks like you deleted the branch? I think this is useful and we can merge it, I was just trying to understand what Greg was suggesting. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] acassis opened a new pull request #3727: Add basic support to MCP23017 I/O Expander
acassis opened a new pull request #3727: URL: https://github.com/apache/incubator-nuttx/pull/3727 ## Summary Add basic support for MCP23017, advanced features related to interrupt edge/level, polarity and work queue is not in place. ## Impact None ## Testing ESP32-Devkitc and STM32F4Discovery -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] acassis merged pull request #3726: rtc: add config RTC_RPMSG_SERVER, RTC_RPMSG_SERVER_NAME
acassis merged pull request #3726: URL: https://github.com/apache/incubator-nuttx/pull/3726 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[incubator-nuttx] branch master updated (018cf26 -> 73cc1f8)
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/incubator-nuttx.git. from 018cf26 lirc: fix bug about lirc_raw_event new f082893 driver/rtc: add config RTC_RPMSG_SERVER_NAME to new 73cc1f8 driver/rtc: add config CONFIG_RTC_RPMSG_SERVER to 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: arch/sim/src/sim/up_rptun.c | 4 ++-- arch/sim/src/sim/up_rtc.c | 2 +- boards/sim/sim/sim/configs/rpproxy/defconfig | 1 + boards/sim/sim/sim/configs/rpserver/defconfig | 1 + drivers/timers/Kconfig| 11 ++ drivers/timers/rpmsg_rtc.c| 31 +-- include/nuttx/timers/rpmsg_rtc.h | 9 7 files changed, 40 insertions(+), 19 deletions(-)
[incubator-nuttx] 02/02: driver/rtc: add config CONFIG_RTC_RPMSG_SERVER to
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/incubator-nuttx.git commit 73cc1f888477e39b62c6d42fe52c6f52d40074b2 Author: Jiuzhu Dong AuthorDate: Fri May 7 11:28:35 2021 +0800 driver/rtc: add config CONFIG_RTC_RPMSG_SERVER to N/A select rtc rpmsg role. Change-Id: I7f9053b070593573caa5d988c6a2e13593da6bc5 Signed-off-by: Jiuzhu Dong --- arch/sim/src/sim/up_rptun.c | 2 +- arch/sim/src/sim/up_rtc.c | 2 +- boards/sim/sim/sim/configs/rpserver/defconfig | 1 + drivers/timers/Kconfig| 4 drivers/timers/rpmsg_rtc.c| 19 +++ include/nuttx/timers/rpmsg_rtc.h | 6 +++--- 6 files changed, 25 insertions(+), 9 deletions(-) diff --git a/arch/sim/src/sim/up_rptun.c b/arch/sim/src/sim/up_rptun.c index d40070a..c32d963 100644 --- a/arch/sim/src/sim/up_rptun.c +++ b/arch/sim/src/sim/up_rptun.c @@ -239,7 +239,7 @@ int up_rptun_init(void) syslog_rpmsg_server_init(); #endif -#if CONFIG_SIM_RPTUN_MASTER == 0 +#ifndef CONFIG_RTC_RPMSG_SERVER up_rtc_set_lowerhalf(rpmsg_rtc_initialize(0)); #endif diff --git a/arch/sim/src/sim/up_rtc.c b/arch/sim/src/sim/up_rtc.c index efcb07c..628ae82 100644 --- a/arch/sim/src/sim/up_rtc.c +++ b/arch/sim/src/sim/up_rtc.c @@ -123,7 +123,7 @@ static bool sim_rtc_havesettime(FAR struct rtc_lowerhalf_s *lower) int up_rtc_initialize(void) { -#ifdef CONFIG_SIM_RPTUN_MASTER +#ifdef CONFIG_RTC_RPMSG_SERVER up_rtc_set_lowerhalf(rpmsg_rtc_server_initialize(_sim_rtc)); #else up_rtc_set_lowerhalf(_sim_rtc); diff --git a/boards/sim/sim/sim/configs/rpserver/defconfig b/boards/sim/sim/sim/configs/rpserver/defconfig index 61c9281..a903087 100644 --- a/boards/sim/sim/sim/configs/rpserver/defconfig +++ b/boards/sim/sim/sim/configs/rpserver/defconfig @@ -57,6 +57,7 @@ CONFIG_RTC=y CONFIG_RTC_ARCH=y CONFIG_RTC_DRIVER=y CONFIG_RTC_RPMSG=y +CONFIG_RTC_RPMSG_SERVER=y CONFIG_SCHED_CHILD_STATUS=y CONFIG_SCHED_HAVE_PARENT=y CONFIG_SCHED_HPWORK=y diff --git a/drivers/timers/Kconfig b/drivers/timers/Kconfig index fb1ddf2..fc8cb42 100644 --- a/drivers/timers/Kconfig +++ b/drivers/timers/Kconfig @@ -297,6 +297,10 @@ config RTC_RPMSG depends on OPENAMP select ARCH_HAVE_RTC_SUBSECONDS +config RTC_RPMSG_SERVER + bool "The RTC Rpmsg Role" + depends on OPENAMP + config RTC_RPMSG_SERVER_NAME string "The name of RTC Rpmsg Server" depends on RTC_RPMSG diff --git a/drivers/timers/rpmsg_rtc.c b/drivers/timers/rpmsg_rtc.c index bb38e10..f0b3542 100644 --- a/drivers/timers/rpmsg_rtc.c +++ b/drivers/timers/rpmsg_rtc.c @@ -84,6 +84,7 @@ begin_packed_struct struct rpmsg_rtc_alarm_cancel_s #define rpmsg_rtc_alarm_fire_s rpmsg_rtc_alarm_cancel_s +#ifndef CONFIG_RTC_RPMSG_SERVER struct rpmsg_rtc_cookie_s { FAR struct rpmsg_rtc_header_s *msg; @@ -113,7 +114,7 @@ struct rpmsg_rtc_lowerhalf_s struct lower_setalarm_salarminfo[CONFIG_RTC_NALARMS]; #endif }; - +#else struct rpmsg_rtc_server_s { FAR struct rtc_ops_s *ops; @@ -127,11 +128,13 @@ struct rpmsg_rtc_session_s struct list_node node; struct rpmsg_endpoint ept; }; +#endif / * Private Function Prototypes / +#ifndef CONFIG_RTC_RPMSG_SERVER static void rpmsg_rtc_device_created(FAR struct rpmsg_device *rdev, FAR void *priv); static void rpmsg_rtc_device_destroy(FAR struct rpmsg_device *rdev, @@ -159,7 +162,7 @@ static int rpmsg_rtc_cancelalarm(FAR struct rtc_lowerhalf_s *lower, static int rpmsg_rtc_rdalarm(FAR struct rtc_lowerhalf_s *lower_, FAR struct lower_rdalarm_s *alarminfo); #endif - +#else static int rpmsg_rtc_server_rdtime(FAR struct rtc_lowerhalf_s *lower, FAR struct rtc_time *rtctime); static int rpmsg_rtc_server_settime(FAR struct rtc_lowerhalf_s *lower, @@ -184,11 +187,13 @@ static int rpmsg_rtc_server_setperiodic(FAR struct rtc_lowerhalf_s *lower, static int rpmsg_rtc_server_cancelperiodic (FAR struct rtc_lowerhalf_s *lower, int alarmid); #endif +#endif / * Private Data / +#ifndef CONFIG_RTC_RPMSG_SERVER static const struct rtc_ops_s g_rpmsg_rtc_ops = { .rdtime = rpmsg_rtc_rdtime, @@ -201,7 +206,7 @@ static const struct rtc_ops_s g_rpmsg_rtc_ops = .rdalarm = rpmsg_rtc_rdalarm, #endif }; - +#else static struct rtc_ops_s g_rpmsg_rtc_server_ops = { .rdtime = rpmsg_rtc_server_rdtime, @@ -218,11 +223,13 @@ static struct rtc_ops_s g_rpmsg_rtc_server_ops = .cancelperiodic =
[incubator-nuttx] 01/02: driver/rtc: add config RTC_RPMSG_SERVER_NAME to
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/incubator-nuttx.git commit f082893b9a82670beb46064a4f72a51789c6429c Author: Jiuzhu Dong AuthorDate: Sat Apr 24 14:18:21 2021 +0800 driver/rtc: add config RTC_RPMSG_SERVER_NAME to specified the name of remote proc(rpmsg server) Change-Id: I0086bb43727a2bbb5e68f88907b5e4608182ef9c Signed-off-by: Jiuzhu Dong --- arch/sim/src/sim/up_rptun.c | 2 +- boards/sim/sim/sim/configs/rpproxy/defconfig | 1 + drivers/timers/Kconfig | 7 +++ drivers/timers/rpmsg_rtc.c | 12 +--- include/nuttx/timers/rpmsg_rtc.h | 3 +-- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/arch/sim/src/sim/up_rptun.c b/arch/sim/src/sim/up_rptun.c index d3f7882..d40070a 100644 --- a/arch/sim/src/sim/up_rptun.c +++ b/arch/sim/src/sim/up_rptun.c @@ -240,7 +240,7 @@ int up_rptun_init(void) #endif #if CONFIG_SIM_RPTUN_MASTER == 0 - up_rtc_set_lowerhalf(rpmsg_rtc_initialize("server", 0)); + up_rtc_set_lowerhalf(rpmsg_rtc_initialize(0)); #endif #ifdef CONFIG_FS_HOSTFS_RPMSG diff --git a/boards/sim/sim/sim/configs/rpproxy/defconfig b/boards/sim/sim/sim/configs/rpproxy/defconfig index cb151f9..42f3fac 100644 --- a/boards/sim/sim/sim/configs/rpproxy/defconfig +++ b/boards/sim/sim/sim/configs/rpproxy/defconfig @@ -50,6 +50,7 @@ CONFIG_RTC_ARCH=y CONFIG_RTC_DRIVER=y CONFIG_RTC_EXTERNAL=y CONFIG_RTC_RPMSG=y +CONFIG_RTC_RPMSG_SERVER_NAME="server" CONFIG_SCHED_CHILD_STATUS=y CONFIG_SCHED_HAVE_PARENT=y CONFIG_SCHED_HPWORK=y diff --git a/drivers/timers/Kconfig b/drivers/timers/Kconfig index 686143a..fb1ddf2 100644 --- a/drivers/timers/Kconfig +++ b/drivers/timers/Kconfig @@ -297,6 +297,13 @@ config RTC_RPMSG depends on OPENAMP select ARCH_HAVE_RTC_SUBSECONDS +config RTC_RPMSG_SERVER_NAME + string "The name of RTC Rpmsg Server" + depends on RTC_RPMSG + ---help--- + The proc name of rtc server. Client requests time from + specified name of remote proc. + endif # RTC menuconfig WATCHDOG diff --git a/drivers/timers/rpmsg_rtc.c b/drivers/timers/rpmsg_rtc.c index 2eef9b5..bb38e10 100644 --- a/drivers/timers/rpmsg_rtc.c +++ b/drivers/timers/rpmsg_rtc.c @@ -107,7 +107,6 @@ struct rpmsg_rtc_lowerhalf_s */ struct rpmsg_endpoint ept; - FAR const char *cpuname; struct work_s syncwork; #ifdef CONFIG_RTC_ALARM @@ -229,7 +228,8 @@ static void rpmsg_rtc_device_created(FAR struct rpmsg_device *rdev, { FAR struct rpmsg_rtc_lowerhalf_s *lower = priv; - if (strcmp(lower->cpuname, rpmsg_get_cpuname(rdev)) == 0) + if (strcmp(CONFIG_RTC_RPMSG_SERVER_NAME, + rpmsg_get_cpuname(rdev)) == 0) { lower->ept.priv = lower; @@ -244,7 +244,8 @@ static void rpmsg_rtc_device_destroy(FAR struct rpmsg_device *rdev, { FAR struct rpmsg_rtc_lowerhalf_s *lower = priv; - if (strcmp(lower->cpuname, rpmsg_get_cpuname(rdev)) == 0) + if (strcmp(CONFIG_RTC_RPMSG_SERVER_NAME, + rpmsg_get_cpuname(rdev)) == 0) { rpmsg_destroy_ept(>ept); } @@ -681,7 +682,6 @@ static void rpmsg_rtc_server_ns_bind(FAR struct rpmsg_device *rdev, * Take remote core RTC as external RTC hardware through rpmsg. * * Input Parameters: - * cpuname - current cpu name * minor - device minor number * * Returned Value: @@ -690,8 +690,7 @@ static void rpmsg_rtc_server_ns_bind(FAR struct rpmsg_device *rdev, * / -FAR struct rtc_lowerhalf_s *rpmsg_rtc_initialize(FAR const char *cpuname, - int minor) +FAR struct rtc_lowerhalf_s *rpmsg_rtc_initialize(int minor) { FAR struct rpmsg_rtc_lowerhalf_s *lower; @@ -699,7 +698,6 @@ FAR struct rtc_lowerhalf_s *rpmsg_rtc_initialize(FAR const char *cpuname, if (lower) { lower->ops = _rpmsg_rtc_ops; - lower->cpuname = cpuname; rpmsg_register_callback(lower, rpmsg_rtc_device_created, diff --git a/include/nuttx/timers/rpmsg_rtc.h b/include/nuttx/timers/rpmsg_rtc.h index b0b2928..764904f 100644 --- a/include/nuttx/timers/rpmsg_rtc.h +++ b/include/nuttx/timers/rpmsg_rtc.h @@ -42,8 +42,7 @@ extern "C" #ifdef CONFIG_RTC_RPMSG -FAR struct rtc_lowerhalf_s *rpmsg_rtc_initialize(FAR const char *cpu_name, - int minor); +FAR struct rtc_lowerhalf_s *rpmsg_rtc_initialize(int minor); FAR struct rtc_lowerhalf_s *rpmsg_rtc_server_initialize( FAR struct rtc_lowerhalf_s *lower);
[GitHub] [incubator-nuttx] btashton merged pull request #3722: lirc: fix bug about lirc_raw_event
btashton merged pull request #3722: URL: https://github.com/apache/incubator-nuttx/pull/3722 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[incubator-nuttx] branch master updated: lirc: fix bug about lirc_raw_event
This is an automated email from the ASF dual-hosted git repository. btashton pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git The following commit(s) were added to refs/heads/master by this push: new 018cf26 lirc: fix bug about lirc_raw_event 018cf26 is described below commit 018cf266059e30472b741d645c6250ac3a09dcb8 Author: Jiuzhu Dong AuthorDate: Fri Apr 9 11:23:15 2021 +0800 lirc: fix bug about lirc_raw_event N/A Change-Id: If00d0a7e4e4f9a0d9119b6a170cffd993f23f71a Signed-off-by: Jiuzhu Dong --- drivers/rc/lirc_dev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/rc/lirc_dev.c b/drivers/rc/lirc_dev.c index 9d169ed..a7ce5cf 100644 --- a/drivers/rc/lirc_dev.c +++ b/drivers/rc/lirc_dev.c @@ -944,9 +944,10 @@ void lirc_raw_event(FAR struct lirc_lowerhalf_s *lower, } } - leave_critical_section(flags); upper->gap = false; } + + leave_critical_section(flags); } sample = ev.pulse ? LIRC_PULSE(ev.duration) : LIRC_SPACE(ev.duration);
[GitHub] [incubator-nuttx] patacongo edited a comment on pull request #3716: tools: Add a bash completion script for the configure tool
patacongo edited a comment on pull request #3716: URL: https://github.com/apache/incubator-nuttx/pull/3716#issuecomment-841688765 Ignoring Bash, the functionality could be implemented in C as well (as NSH does). There is no magic here. But it certainly would be a bigger job. That is why I suggest it probably would not be worth the effort. Currently, configure.c gets its input via argv[] and parses that using getopt(). If one really wanted to implement this in configure.c, this would all have to be replaced with custom, interactive logic. It is not impossible, just not worth the effort. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] patacongo commented on pull request #3716: tools: Add a bash completion script for the configure tool
patacongo commented on pull request #3716: URL: https://github.com/apache/incubator-nuttx/pull/3716#issuecomment-841688765 Ignoring Bash, the functionality could be implemented in C as well (as NSH does). There is no magic here. But it certainly would be a bigger job. That is why I suggest it probably would not be worth the effort. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] btashton edited a comment on pull request #3716: tools: Add a bash completion script for the configure tool
btashton edited a comment on pull request #3716: URL: https://github.com/apache/incubator-nuttx/pull/3716#issuecomment-841688118 Sorry still not following, the change is not to the configuration tool, it is to enable bash to give suggestions when you press tab on the command line. To support another shell this would have to be implemented with whatever that shell uses for the auto complete. https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion.html -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] btashton commented on pull request #3716: tools: Add a bash completion script for the configure tool
btashton commented on pull request #3716: URL: https://github.com/apache/incubator-nuttx/pull/3716#issuecomment-841688118 Sorry still not following the change is not to the configuration tool, it is to enable bash to give suggestions when you press tab on the command line. To support another shell this would have to be implemented with whatever that shell uses for the auto complete. https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion.html -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] patacongo edited a comment on pull request #3716: tools: Add a bash completion script for the configure tool
patacongo edited a comment on pull request #3716: URL: https://github.com/apache/incubator-nuttx/pull/3716#issuecomment-841687414 This particular implementation would only work in a Bash shell, but the identical functionality could be implemented in C as well. The underlying functionality does not depend on Bash. I am not sure that it is really important to do that but, on the other hand, we do not want the functionality to drift apart either too far either. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] patacongo commented on pull request #3716: tools: Add a bash completion script for the configure tool
patacongo commented on pull request #3716: URL: https://github.com/apache/incubator-nuttx/pull/3716#issuecomment-841687414 This particular implementation would only work in a Bash shell, but the identical functionality could be implemented in C as well. The underlying functionality does not depend on Bash. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] btashton merged pull request #3717: include/termios: left shift of 1 by 31 places cannot be represented in type 'int'
btashton merged pull request #3717: URL: https://github.com/apache/incubator-nuttx/pull/3717 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[incubator-nuttx] branch master updated: include/termios: left shift of 1 by 31 places cannot be represented in type 'int'
This is an automated email from the ASF dual-hosted git repository. btashton pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git The following commit(s) were added to refs/heads/master by this push: new f2e268d include/termios: left shift of 1 by 31 places cannot be represented in type 'int' f2e268d is described below commit f2e268d1bcb8612eb3f00cb55b9624aa61dbc3bd Author: Jiuzhu Dong AuthorDate: Thu May 6 21:55:43 2021 +0800 include/termios: left shift of 1 by 31 places cannot be represented in type 'int' N/A cu_main.c:172:22: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' by asan Change-Id: I224345bddb11523db0c4a91c16617a3200fad034 Signed-off-by: Jiuzhu Dong --- include/termios.h | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/include/termios.h b/include/termios.h index cecfd2c..f2fb090 100644 --- a/include/termios.h +++ b/include/termios.h @@ -85,19 +85,19 @@ /* Control Modes (c_cflag in the termios structure) */ -#define CSIZE (3 << 4) /* Bits 4-5: Character size: */ -# define CS5 (0 << 4) /* 5 bits */ -# define CS6 (1 << 4) /* 6 bits */ -# define CS7 (2 << 4) /* 7 bits */ -# define CS8 (3 << 4) /* 8 bits */ -#define CSTOPB(1 << 6) /* Bit 6: Send two stop bits, else one */ -#define CREAD (1 << 7) /* Bit 7: Enable receiver */ -#define PARENB(1 << 8) /* Bit 8: Parity enable */ -#define PARODD(1 << 9) /* Bit 9: Odd parity, else even */ -#define HUPCL (1 << 10) /* Bit 10: Hang up on last close */ -#define CLOCAL(1 << 11) /* Bit 11: Ignore modem status lines */ -#define CCTS_OFLOW (1 << 29)/* Bit 29: CTS flow control of output */ -#define CRTS_IFLOW (1 << 31)/* Bit 31: RTS flow control of input */ +#define CSIZE (3 << 4)/* Bits 4-5: Character size: */ +# define CS5 (0 << 4)/* 5 bits */ +# define CS6 (1 << 4)/* 6 bits */ +# define CS7 (2 << 4)/* 7 bits */ +# define CS8 (3 << 4)/* 8 bits */ +#define CSTOPB(1 << 6)/* Bit 6: Send two stop bits, else one */ +#define CREAD (1 << 7)/* Bit 7: Enable receiver */ +#define PARENB(1 << 8)/* Bit 8: Parity enable */ +#define PARODD(1 << 9)/* Bit 9: Odd parity, else even */ +#define HUPCL (1 << 10) /* Bit 10: Hang up on last close */ +#define CLOCAL(1 << 11) /* Bit 11: Ignore modem status lines */ +#define CCTS_OFLOW (1 << 29) /* Bit 29: CTS flow control of output */ +#define CRTS_IFLOW (1u << 31) /* Bit 31: RTS flow control of input */ #define CRTSCTS (CCTS_OFLOW | CRTS_IFLOW) /* Local Modes (c_lflag in the termios structure) */
[GitHub] [incubator-nuttx] btashton commented on pull request #3718: sched/init: don't check remain stack for idle task
btashton commented on pull request #3718: URL: https://github.com/apache/incubator-nuttx/pull/3718#issuecomment-841686035 In what cases is it not colored? The only case I can think of is the sim since is dynamically grows. Seems like in the case the would be better driven by a config flag. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] btashton commented on pull request #3716: tools: Add a bash completion script for the configure tool
btashton commented on pull request #3716: URL: https://github.com/apache/incubator-nuttx/pull/3716#issuecomment-841685312 > This feature should be ported to tools/configure.c as well. configure.c is used on platforms that do not support bash scripting (or for which people may want slightly faster configurations). It is the default configuration tool for the Windows native build. This would only work for a bash shell as it is giving bash context on what the arguments can be for auto complete. I guess it could be updated to work on the compiled config tool, but you would still need to be in a bash shell. Is that what you were asking? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] patacongo commented on pull request #3716: tools: Add a bash completion script for the configure tool
patacongo commented on pull request #3716: URL: https://github.com/apache/incubator-nuttx/pull/3716#issuecomment-841659665 This feature should be ported to tools/configure.c as well. configure.c is used on platforms that do not support bash scripting (or for which people may want slightly faster configurations). It is the default configuration tool for the Windows native build. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 commented on pull request #3721: sim/rptun: support multi(>2) core interactive by share memory
Donny9 commented on pull request #3721: URL: https://github.com/apache/incubator-nuttx/pull/3721#issuecomment-841658519 > > > > This patch depends on #3726 3726 and #3720, please review and merge them firsty .Thank you! > > Hi @Donny9 I think you repeated #3726, it should be other PR. I modify this patch base #3726, #3726 is a modification of the original code. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[incubator-nuttx] branch master updated: driver/syslog: add config SYSLOG_RPMSG_SERVER_NAME to
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/incubator-nuttx.git The following commit(s) were added to refs/heads/master by this push: new ff56712 driver/syslog: add config SYSLOG_RPMSG_SERVER_NAME to ff56712 is described below commit ff567124d3c27774c55288fa206d0ee7ac0f516e Author: Jiuzhu Dong AuthorDate: Thu Apr 22 22:36:01 2021 +0800 driver/syslog: add config SYSLOG_RPMSG_SERVER_NAME to N/A specified the name of remote proc(rpmsg server) Change-Id: Ie270d651071e87a40a80ab489597ae18db9814f0 Signed-off-by: Jiuzhu Dong --- arch/sim/src/sim/up_head.c | 2 +- boards/sim/sim/sim/configs/rpproxy/defconfig | 1 + drivers/syslog/Kconfig | 7 +++ drivers/syslog/syslog_rpmsg.c| 11 +-- include/nuttx/syslog/syslog_rpmsg.h | 3 +-- 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/arch/sim/src/sim/up_head.c b/arch/sim/src/sim/up_head.c index 2b6faec..6868c9a 100644 --- a/arch/sim/src/sim/up_head.c +++ b/arch/sim/src/sim/up_head.c @@ -63,7 +63,7 @@ static char g_logbuffer[4096]; int main(int argc, char **argv, char **envp) { #ifdef CONFIG_SYSLOG_RPMSG - syslog_rpmsg_init_early("server", g_logbuffer, sizeof(g_logbuffer)); + syslog_rpmsg_init_early(g_logbuffer, sizeof(g_logbuffer)); #endif /* Start NuttX */ diff --git a/boards/sim/sim/sim/configs/rpproxy/defconfig b/boards/sim/sim/sim/configs/rpproxy/defconfig index ec2cae3..cb151f9 100644 --- a/boards/sim/sim/sim/configs/rpproxy/defconfig +++ b/boards/sim/sim/sim/configs/rpproxy/defconfig @@ -59,6 +59,7 @@ CONFIG_SIM_M32=y CONFIG_SYSLOG_PREFIX=y CONFIG_SYSLOG_PREFIX_STRING="proxy: " CONFIG_SYSLOG_RPMSG=y +CONFIG_SYSLOG_RPMSG_SERVER_NAME="server" CONFIG_SYSLOG_TIMESTAMP=y CONFIG_SYSTEM_CLE=y CONFIG_SYSTEM_NSH=y diff --git a/drivers/syslog/Kconfig b/drivers/syslog/Kconfig index 2d3d129..263e056 100644 --- a/drivers/syslog/Kconfig +++ b/drivers/syslog/Kconfig @@ -215,6 +215,13 @@ config SYSLOG_RPMSG ---help--- Use the rpmsg as a SYSLOG output device, send message to remote proc. +config SYSLOG_RPMSG_SERVER_NAME + string "The name of Syslog Rpmsg Server" + depends on SYSLOG_RPMSG + ---help--- + The proc name of rpmsg server. Client sends message to + specified name of remote proc. + config SYSLOG_DEFAULT bool "Default SYSLOG device" ---help--- diff --git a/drivers/syslog/syslog_rpmsg.c b/drivers/syslog/syslog_rpmsg.c index 4438e65..168ea1b 100644 --- a/drivers/syslog/syslog_rpmsg.c +++ b/drivers/syslog/syslog_rpmsg.c @@ -62,7 +62,6 @@ struct syslog_rpmsg_s struct work_s work; /* Used for deferred callback work */ struct rpmsg_endpoint ept; - FAR const char*cpuname; bool suspend; bool transfer; /* The transfer flag */ ssize_t trans_len;/* The data length when transfer */ @@ -210,7 +209,8 @@ static void syslog_rpmsg_device_created(FAR struct rpmsg_device *rdev, FAR struct syslog_rpmsg_s *priv = priv_; int ret; - if (priv->buffer && strcmp(priv->cpuname, rpmsg_get_cpuname(rdev)) == 0) + if (priv->buffer && strcmp(CONFIG_SYSLOG_RPMSG_SERVER_NAME, + rpmsg_get_cpuname(rdev)) == 0) { priv->ept.priv = priv; @@ -230,7 +230,8 @@ static void syslog_rpmsg_device_destroy(FAR struct rpmsg_device *rdev, { FAR struct syslog_rpmsg_s *priv = priv_; - if (priv->buffer && strcmp(priv->cpuname, rpmsg_get_cpuname(rdev)) == 0) + if (priv->buffer && strcmp(CONFIG_SYSLOG_RPMSG_SERVER_NAME, + rpmsg_get_cpuname(rdev)) == 0) { rpmsg_destroy_ept(>ept); } @@ -343,15 +344,13 @@ ssize_t syslog_rpmsg_write(FAR struct syslog_channel_s *channel, return buflen; } -void syslog_rpmsg_init_early(FAR const char *cpuname, FAR void *buffer, - size_t size) +void syslog_rpmsg_init_early(FAR void *buffer, size_t size) { FAR struct syslog_rpmsg_s *priv = _syslog_rpmsg; char prev, cur; size_t i; size_t j; - priv->cpuname = cpuname; priv->buffer = buffer; priv->size= size; diff --git a/include/nuttx/syslog/syslog_rpmsg.h b/include/nuttx/syslog/syslog_rpmsg.h index e39307c..ef16a74 100644 --- a/include/nuttx/syslog/syslog_rpmsg.h +++ b/include/nuttx/syslog/syslog_rpmsg.h @@ -40,8 +40,7 @@ extern "C" #endif #ifdef CONFIG_SYSLOG_RPMSG -void syslog_rpmsg_init_early(FAR const char *cpu_name, FAR void *buffer, - size_t size); +void syslog_rpmsg_init_early(FAR void *buffer, size_t size); int syslog_rpmsg_init(void); int syslog_rpmsg_putc(FAR struct syslog_channel_s *channel, int ch);
[GitHub] [incubator-nuttx] acassis commented on pull request #3720: driver/syslog: add CONFIG_SYSLOG_RPMSG_SERVER_NAME
acassis commented on pull request #3720: URL: https://github.com/apache/incubator-nuttx/pull/3720#issuecomment-841653230 Ok, I thinking moving the server name to Kconfig is a better approach! Thanks! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] acassis merged pull request #3720: driver/syslog: add CONFIG_SYSLOG_RPMSG_SERVER_NAME
acassis merged pull request #3720: URL: https://github.com/apache/incubator-nuttx/pull/3720 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] acassis commented on pull request #3721: sim/rptun: support multi(>2) core interactive by share memory
acassis commented on pull request #3721: URL: https://github.com/apache/incubator-nuttx/pull/3721#issuecomment-841652753 > This patch depends on #3726 3726 and #3720, please review and merge them firsty .Thank you! Hi @Donny9 I think you repeated #3726, it should be other 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 commented on pull request #3721: sim/rptun: support multi(>2) core interactive by share memory
Donny9 commented on pull request #3721: URL: https://github.com/apache/incubator-nuttx/pull/3721#issuecomment-841651730 This patch depends on #3726 3726 and #3720, please review and merge them firsty .Thank you! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] acassis merged pull request #3701: riscv/esp32c3: Add ESP32C3 LEDC(PWM) driver
acassis merged pull request #3701: URL: https://github.com/apache/incubator-nuttx/pull/3701 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[incubator-nuttx] branch master updated: riscv/esp32c3: Add ESP32-C3 LEDC(PWM) driver
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/incubator-nuttx.git The following commit(s) were added to refs/heads/master by this push: new beed26b6 riscv/esp32c3: Add ESP32-C3 LEDC(PWM) driver beed26b6 is described below commit beed26b6bf68f9f03913045537575f2943010022 Author: Dong Heng AuthorDate: Mon May 3 13:52:39 2021 +0800 riscv/esp32c3: Add ESP32-C3 LEDC(PWM) driver --- arch/risc-v/src/esp32c3/Kconfig| 70 + arch/risc-v/src/esp32c3/Make.defs |4 + arch/risc-v/src/esp32c3/esp32c3_ledc.c | 776 ++ arch/risc-v/src/esp32c3/esp32c3_ledc.h | 52 + arch/risc-v/src/esp32c3/hardware/esp32c3_ledc.h| 2742 .../esp32c3/esp32c3-devkit/configs/pwm/defconfig | 47 + boards/risc-v/esp32c3/esp32c3-devkit/src/Makefile |4 + .../esp32c3/esp32c3-devkit/src/esp32c3-devkit.h| 12 + .../esp32c3/esp32c3-devkit/src/esp32c3_bringup.c |8 + .../esp32c3/esp32c3-devkit/src/esp32c3_ledc.c | 116 + 10 files changed, 3831 insertions(+) diff --git a/arch/risc-v/src/esp32c3/Kconfig b/arch/risc-v/src/esp32c3/Kconfig index 8899081..bce1ec8 100644 --- a/arch/risc-v/src/esp32c3/Kconfig +++ b/arch/risc-v/src/esp32c3/Kconfig @@ -178,6 +178,11 @@ config ESP32C3_SPI bool default n +config ESP32C3_LEDC + bool "LEDC (PWM)" + default n + select PWM + config ESP32C3_GPIO_IRQ bool "GPIO pin interrupts" default n @@ -418,6 +423,71 @@ config ESP32C3_FREERUN endmenu # Timer/counter Configuration endif # ESP32C3_TIMER +menu "LEDC configuration" + depends on ESP32C3_LEDC + +menuconfig ESP32C3_LEDC_TIM0 + bool "Timer 0" + default n + +if ESP32C3_LEDC_TIM0 + +config ESP32C3_LEDC_TIM0_CHANNELS + int "Number of Timer 0 channels" + default 2 + +endif # ESP32C3_LEDC_TIM0 + +menuconfig ESP32C3_LEDC_TIM1 + bool "Timer 1" + default n + +if ESP32C3_LEDC_TIM1 + +config ESP32C3_LEDC_TIM1_CHANNELS + int "Number of Timer 1 channels" + default 2 + +endif # ESP32C3_LEDC_TIM1 + +menuconfig ESP32C3_LEDC_TIM2 + bool "Timer 2" + default n + +if ESP32C3_LEDC_TIM2 + +config ESP32C3_LEDC_TIM2_CHANNELS + int "Number of Timer 2 channels" + default 2 + +endif # ESP32C3_LEDC_TIM2 + +config ESP32C3_LEDC_CHANNEL0_PIN + int "Channel 0 pin" + default 2 + +config ESP32C3_LEDC_CHANNEL1_PIN + int "Channel 1 pin" + default 3 + +config ESP32C3_LEDC_CHANNEL2_PIN + int "Channel 2 pin" + default 4 + +config ESP32C3_LEDC_CHANNEL3_PIN + int "Channel 3 pin" + default 5 + +config ESP32C3_LEDC_CHANNEL4_PIN + int "Channel 4 pin" + default 6 + +config ESP32C3_LEDC_CHANNEL5_PIN + int "Channel 5 pin" + default 7 + +endmenu # LEDC configuration + menu "Wi-Fi configuration" depends on ESP32C3_WIRELESS diff --git a/arch/risc-v/src/esp32c3/Make.defs b/arch/risc-v/src/esp32c3/Make.defs index a65498b..049d85e 100644 --- a/arch/risc-v/src/esp32c3/Make.defs +++ b/arch/risc-v/src/esp32c3/Make.defs @@ -121,6 +121,10 @@ endif CHIP_CSRCS += esp32c3_rtc.c +ifeq ($(CONFIG_ESP32C3_LEDC),y) +CHIP_CSRCS += esp32c3_ledc.c +endif + ifeq ($(CONFIG_ESP32C3_WIRELESS),y) WIRELESS_DRV_UNPACK = esp-wireless-drivers-3rdparty WIRELESS_DRV_ID = 2b53111 diff --git a/arch/risc-v/src/esp32c3/esp32c3_ledc.c b/arch/risc-v/src/esp32c3/esp32c3_ledc.c new file mode 100644 index 000..c769d26 --- /dev/null +++ b/arch/risc-v/src/esp32c3/esp32c3_ledc.c @@ -0,0 +1,776 @@ +/ + * arch/risc-v/src/esp32c3/esp32c3_ledc.c + * + * 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. + * + / + +/ + * Included Files + / + +#include +#include +#include +#include +#include +#include +#include + +#include "esp32c3.h"
[GitHub] [incubator-nuttx] acassis merged pull request #3716: tools: Add a bash completion script for the configure tool
acassis merged pull request #3716: URL: https://github.com/apache/incubator-nuttx/pull/3716 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[incubator-nuttx] branch master updated: tools: Add a bash completion script for the configure tool
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/incubator-nuttx.git The following commit(s) were added to refs/heads/master by this push: new b5ee9b6 tools: Add a bash completion script for the configure tool b5ee9b6 is described below commit b5ee9b673cc543dc2105b2de033377ccaf584571 Author: Gustavo Henrique Nihei AuthorDate: Tue Mar 30 14:56:41 2021 -0300 tools: Add a bash completion script for the configure tool --- tools/configure_completion.bash | 82 + 1 file changed, 82 insertions(+) diff --git a/tools/configure_completion.bash b/tools/configure_completion.bash new file mode 100644 index 000..f28b1bf --- /dev/null +++ b/tools/configure_completion.bash @@ -0,0 +1,82 @@ +#!/usr/bin/env bash +# tools/configure_completion.bash +# +# 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. +# + +function _nuttx_configure_completion +{ + local colon_idx=2 + local num_options=0 + + # Skip ./tools/configure.sh script options. + while [[ "${#COMP_WORDS[@]}" != "${colon_idx}" ]] && [[ "${COMP_WORDS[$((colon_idx - 1))]}" == '-'* ]] + do +# If "-a" is among the provided arguments, consider the apps directory. +if [ "${COMP_WORDS[$((colon_idx - 1))]}" == "-a" ]; then + colon_idx=$((colon_idx + 2)) + num_options=$((num_options + 2)) +else + colon_idx=$((colon_idx + 1)) + num_options=$((num_options + 1)) +fi + done + + # When the command line is complete, COMP_WORDS array will have 5 elements + # plus the options. + # The script may return when this state is reached. + if [ "${#COMP_WORDS[@]}" == $((5 + num_options)) ]; then +return + fi + + # If the last provided argument is "-a", do not execute autocompletion + # algorithm. + if [ "${COMP_WORDS[-2]}" == "-a" ]; then +return + fi + + local search_dir="" + local search_pattern="" + local reply_suffix="" + + if [ "${COMP_WORDS[${colon_idx}]}" == ':' ]; then +local board_name=${COMP_WORDS[$((colon_idx - 1))]} +local config_name=${COMP_WORDS[$((colon_idx + 1))]} + +search_dir="boards/*/*/${board_name}/configs/" +search_pattern="${config_name}" +reply_suffix=" " + else +search_dir="boards/*/*/" +search_pattern="${COMP_WORDS[$((1 + num_options))]}" +reply_suffix=":" + fi + + local wordlist + local suggestions + wordlist=$(find ${search_dir} -maxdepth 1 -mindepth 1 -type d -exec basename {} \;) 2>/dev/null + suggestions=($(compgen -W "${wordlist}" -- "${search_pattern}")) + + if [ "${#suggestions[@]}" == "1" ]; then +# If there's only one match, complete with the appropriate reply suffix. +COMPREPLY=("${suggestions[0]}${reply_suffix}") + else +# More than one suggestion resolved, respond with the suggestions intact. +COMPREPLY=("${suggestions[@]}") + fi +} + +complete -o bashdefault -o default -o nospace -F _nuttx_configure_completion ./tools/configure.sh \ No newline at end of file
[GitHub] [incubator-nuttx] Donny9 removed a comment on pull request #3719: group/group_signal: cancel dispatch signal when child process doesn't exist
Donny9 removed a comment on pull request #3719: URL: https://github.com/apache/incubator-nuttx/pull/3719#issuecomment-841619538 ``` + mkdir -p /Users/runner/work/incubator-nuttx/incubator-nuttx/sources/prebuilt/homebrew + export HOMEBREW_CACHE=/Users/runner/work/incubator-nuttx/incubator-nuttx/sources/prebuilt/homebrew + HOMEBREW_CACHE=/Users/runner/work/incubator-nuttx/incubator-nuttx/sources/prebuilt/homebrew + rm -rf /usr/local/bin/2to3 + brew update --quiet Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed! Updated 4 taps (homebrew/cask, homebrew/bundle, homebrew/services and aws/tap). ``` Trigger again? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 opened a new pull request #3726: rtc: add config RTC_RPMSG_SERVER, RTC_RPMSG_SERVER_NAME
Donny9 opened a new pull request #3726: URL: https://github.com/apache/incubator-nuttx/pull/3726 ## Summary Add CONFIG_RTC_RPMSG_SERVER_NAME specified the name of remote proc(rtc server). We will call API: rpmsg_rtc_initialize without server name in arch code. And use config RTC_RPMSG_SERVER to describe the role. Signed-off-by: Jiuzhu Dong dongjiuz...@xiaomi.com ## Impact It allows for better reuse of arch code for different board. ## 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 opened a new pull request #3725: cmd/free: add nused/nfree field in command free
Donny9 opened a new pull request #3725: URL: https://github.com/apache/incubator-nuttx/pull/3725 ## Summary cmd/free: add nused/nfree field in command free. nused describes the number of allocated chunks. nfree describes the number of free chunks Change-Id: I74aa4b1e7394a17c3b117322a4cc24aa52aac3b8 Signed-off-by: Jiuzhu Dong ## Impact Using cmd:free to show more memory information. ## 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 opened a new pull request #3724: fs/hostfs: fix bug about getting error file size by fstat
Donny9 opened a new pull request #3724: URL: https://github.com/apache/incubator-nuttx/pull/3724 ## Summary Fix bug about client gets error file size by fstat from server. Change-Id: I10a0d52da649e4c3138e5a2301bcb6525e2e3350 Signed-off-by: Jiuzhu Dong ## Impact Use fstat 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 opened a new pull request #3723: net: Forward socket option only when the socket type is usrsock
Donny9 opened a new pull request #3723: URL: https://github.com/apache/incubator-nuttx/pull/3723 ## Summary net: Forward socket option only when the socket type is usrsock Signed-off-by: Jiuzhu Dong Change-Id: I5e102c4c648936f96834120e2c508f7072436246 ## 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 opened a new pull request #3722: lirc: fix bug about lirc_raw_event
Donny9 opened a new pull request #3722: URL: https://github.com/apache/incubator-nuttx/pull/3722 ## Summary Leave critical_section correctly when using lirc_raw_event Change-Id: If00d0a7e4e4f9a0d9119b6a170cffd993f23f71a Signed-off-by: Jiuzhu Dong ## 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 opened a new pull request #3721: sim/rptun: support multi(>2) core interactive by share memory
Donny9 opened a new pull request #3721: URL: https://github.com/apache/incubator-nuttx/pull/3721 ## Summary Support multi >2 core interactive by share memory in simulation. Example of relationships between the three processes: AP->BP AP->CP BP->CP ## Impact Support multi-core heterogeneous simulation. ## 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 edited a comment on pull request #3719: group/group_signal: cancel dispatch signal when child process doesn't exist
Donny9 edited a comment on pull request #3719: URL: https://github.com/apache/incubator-nuttx/pull/3719#issuecomment-841619538 ``` + mkdir -p /Users/runner/work/incubator-nuttx/incubator-nuttx/sources/prebuilt/homebrew + export HOMEBREW_CACHE=/Users/runner/work/incubator-nuttx/incubator-nuttx/sources/prebuilt/homebrew + HOMEBREW_CACHE=/Users/runner/work/incubator-nuttx/incubator-nuttx/sources/prebuilt/homebrew + rm -rf /usr/local/bin/2to3 + brew update --quiet Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed! Updated 4 taps (homebrew/cask, homebrew/bundle, homebrew/services and aws/tap). ``` Trigger again? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 commented on pull request #3719: group/group_signal: cancel dispatch signal when child process doesn't exist
Donny9 commented on pull request #3719: URL: https://github.com/apache/incubator-nuttx/pull/3719#issuecomment-841619538 `+ mkdir -p /Users/runner/work/incubator-nuttx/incubator-nuttx/sources/prebuilt/homebrew + export HOMEBREW_CACHE=/Users/runner/work/incubator-nuttx/incubator-nuttx/sources/prebuilt/homebrew + HOMEBREW_CACHE=/Users/runner/work/incubator-nuttx/incubator-nuttx/sources/prebuilt/homebrew + rm -rf /usr/local/bin/2to3 + brew update --quiet Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed! Updated 4 taps (homebrew/cask, homebrew/bundle, homebrew/services and aws/tap).` Trigger again? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 opened a new pull request #3720: driver/syslog: add CONFIG_SYSLOG_RPMSG_SERVER_NAME
Donny9 opened a new pull request #3720: URL: https://github.com/apache/incubator-nuttx/pull/3720 ## Summary Add CONFIG_SYSLOG_RPMSG_SERVER_NAME specified the name of remote proc(rpmsg server). We will call API: syslog_rpmsg_init_early(FAR void *buffer, size_t size) without server name in arch code. Change-Id: Ie270d651071e87a40a80ab489597ae18db9814f0 Signed-off-by: Jiuzhu Dong ## Impact It allows for better reuse of arch code for different board. ## 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 opened a new pull request #3719: group/group_signal: cancel dispatch signal when child process doesn't exist
Donny9 opened a new pull request #3719: URL: https://github.com/apache/incubator-nuttx/pull/3719 ## Summary Cancel dispatch signal when the number of members in the group is zero of members in the group is zero. Repetition step: If using waitpid() to wait a task has exited, the waitpid will use nxsing_kill with signal number 0 to determine if that task is still alive, and will call group_signal to dispatch signal for each member of the group and perform signal handing checks, it will assert at sched/group/group_signal.c:261. Change-Id: I75ef015a261101277436d742897ce68fed44b5da Signed-off-by: Jiuzhu Dong ## Impact Don't assert when dispatch a signal to process doesn't exist. ## 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 opened a new pull request #3718: sched/init: don't check remain stack for idle task
Donny9 opened a new pull request #3718: URL: https://github.com/apache/incubator-nuttx/pull/3718 ## Summary We shouldn't check the remain stack for idle task because tt may not have been colored. Change-Id: I0bd5808efabd395157d2530f2423b18f0c1eeabd Signed-off-by: Jiuzhu Dong ## Impact no ## 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 opened a new pull request #3717: include/termios: left shift of 1 by 31 places cannot be represented in type 'int'
Donny9 opened a new pull request #3717: URL: https://github.com/apache/incubator-nuttx/pull/3717 ## Summary Reslove runtime error reported by ASAN. cu_main.c:172:22: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' by asan Change-Id: I224345bddb11523db0c4a91c16617a3200fad034 Signed-off-by: Jiuzhu Dong ## Impact fix runtime error. ## 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org