forked from apache/nuttx-apps
-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge updates from downstream #75
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Allow disabling nslookup even when not using dnsclient.
…_LONG follow the kernel side change: apache/nuttx#6613 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
nsh_syscmds.c:352:40: error: passing argument 2 of 'boardctl' makes integer from pointer without a cast [-Werror=int-conversion] 352 | ret = boardctl(BOARDIOC_RESET_CAUSE, &cause); | ^~~~~~ | | | struct boardioc_reset_cause_s * Signed-off-by: anjiahao <anjiahao@xiaomi.com>
can use ouput string set a env to argv Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
refer to: https://docs.px4.io/v1.12/en/middleware/uorb.html - orb_open: do real work for advertise() and subscribe(), if thre is no user, register topic first, then save meta in driver; only first user can successfully set buffer number. - orb_exists: check topic state, if topic only has subscribers, return "not exists". Signed-off-by: jihandong <jihandong@xiaomi.com>
testcases: 1. test_single(): single instance, advertise then subscribe. 2. test_multi_inst10(): 10 instance, each 1 subscriber. 3. test_multi(): 2 instances, 2 advertisers, 2 subscribers. 4. test_multi_reversed(): same as test_multi(), but subsribe before advertise. 5. test_unadvertise(): unadvertise upper 4 advertisers. 6. test_multi2(): same as tset_multi(). but multi-thread. 7, test_queue(): topic queue_size = 16. Signed-off-by: jihandong <jihandong@xiaomi.com> Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Listener can scan device under ORB_SENSOR_PATH, subscribe them and cotinue printing messages by call their cb. '-T' can Continuously print updating objects, '-l' means only print once. Signed-off-by: jihandong <jihandong@xiaomi.com> Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
don't using subscriber to get state to avoid rpmsg access Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
…ce 0 1.orb_advertise, orb_advertise_queue for instance 0 2.orb_advertise_multi, orb_advertise__multi_queue for specified instance 3.If orb_advertise_multi_queue with instance is NULL, auto increase instance from existing base. Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Signed-off-by: jihandong <jihandong@xiaomi.com>
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
int func(int b) { int a; while (1) { ...; if (b != 0) a = 1000 / b; ...; } } if b == 0, then system crash in Xtensa arch, clang compiler Signed-off-by: ligd <liguiding1@xiaomi.com>
orb_advertise_multi_queue_persist Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
And remove dead code. Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Signed-off-by: jihandong <jihandong@xiaomi.com>
Signed-off-by: jihandong <jihandong@xiaomi.com> Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
apply kosma/minmea origin github repo in gpsutils Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Merge updates from master
Signed-off-by: ligd <liguiding1@xiaomi.com>
Summary: - This commit fixes to build with CONFIG_BUILD_KERNEL=y Impact: - None Testing: - Tested with sabre-6quad:knsh (not merged yet) Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Merge updates from upstream
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
We can't do sem_wait in sigaction hang backtrace: [<0x2c5a6958>] arm_switchcontext+0xc/0x10 [<0x2c579eba>] nxsem_wait+0x6e/0xa8 [<0x3c9a8cb5>] pb_field_iter_find+0xffde8cb/0xd3635c15 [<0x2c58d164>] uart_tcdrain.constprop.0+0x10/0xf8 [<0x2c58d5c6>] uart_close+0x10e/0x180 [<0x2c579f38>] nxsem_wait_uninterruptible+0x44/0xb8 [<0x2c95f87a>] file_close+0x12/0x44 [<0x2c95e5a8>] close+0x80/0xb4 [<0x2c5c6396>] sigint+0x1a/0x28 [<0x2c57b1b0>] nxsig_deliver+0x54/0xb8 [<0x2c5a549a>] arm_sigdeliver+0x1a/0x44 [<0x2c579eb6>] nxsem_wait+0x6a/0xa8 [<0x2c579eb6>] nxsem_wait+0x6a/0xa8 [<0x2c579eb6>] nxsem_wait+0x6a/0xa8 [<0x2c58aa1a>] pm_lock+0x1a/0x28 [<0x2c58a656>] pm_stay+0xa/0x60 [<0x2c58bb14>] rptun_notify+0x4c/0x58 [<0x2c97b8fc>] virtqueue_kick+0x54/0x7c [<0x2c97ac82>] rpmsg_virtio_send_offchannel_nocopy+0x9a/0xcc [<0x2c58df7c>] uart_rpmsg_dmasend+0x8c/0xe0 [<0x2c5771be>] leave_critical_section+0x2e/0x54 [<0x2c58d124>] uart_write+0x11c/0x14c [<0x2c9620c6>] write+0x32/0x50 [<0x2c5c665e>] cu_main+0x2ba/0x484 [<0x2c5957be>] nxtask_startup+0x12/0x24 [<0x2c57b9d2>] nxtask_start+0x46/0x60 Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
When dis-associtaion happens, the socket is destroyed. And all blocking sockets are released for that error handling can be performed.
Signed-off-by: liyi <liyi25@xiaomi.com>
NXStyle fixes Apply suggestions from code review Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> API fixes and NXStyle fixes Apply suggestions from code review Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Use thread-safe ntoa functions NXStyle fixes Apply suggestions from code review Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> API fixes and NXStyle fixes Apply suggestions from code review Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Device paths are now named `/dev/sensor/sensor_...`: https://github.com/apache/incubator-nuttx/blob/3fdd036ba6eee2ffd76cfba561ab1b044e3275e2/drivers/sensors/sensor.c#L49
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.