Xiang Xiao
c252ec1481
Add printflike to all printf like functions
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-18 14:09:10 +03:00
chao.an
61250d5516
wireless/wapi: add get country code support
...
Country command with no args to get the ccode:
Get country code:
cp> wapi country wlan0
CN
Set country code:
cp> wapi country wlan0 JP
Get country code:
cp> wapi country wlan0
JP
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-23 23:40:20 +08:00
YAMAMOTO Takashi
d435858c53
webclient: Export a few ops on webclient_conn_s
...
* Make webclient_conn_s self-contained so that it can be
used without webclient_context.
* Add missing FAR.
2022-06-20 13:56:53 +08:00
YAMAMOTO Takashi
fca5b186b1
webclient: Make webclient_get_tunnel returns void
...
As it does never fail.
2022-06-20 13:56:53 +08:00
YAMAMOTO Takashi
5cfc5cd4f2
webclient.h: Update the state diagram after the tunnelling stuff
2022-06-20 13:56:53 +08:00
YAMAMOTO Takashi
2be66e83a4
webclient_conn_s: Add a missing FAR
2022-06-20 13:56:53 +08:00
YAMAMOTO Takashi
159ca00752
webclient: Allow users to specify extra headers for proxy
...
My primary motivation at this point is to use it for basic proxy auth.
(specify "Proxy-Authorization" header)
But there can be other use cases for proxy-specific extra headers.
If/when we want to support other non-trivial auth methods, probably
a callback-based mechanism will be necessary. But at this point,
this serves my purpose well.
2022-06-15 20:40:53 +08:00
Norman Rasmussen
ce7c9ae65b
wireless/wapi: fix wapi wpa_wconfig_s sta_mode data type error
2022-06-13 21:01:13 +08:00
YAMAMOTO Takashi
5e3a3dae10
webclient.h: Avoid relying on indirect inclusion
...
Include stdint.h for uint16_t explicitly.
This was necessary when I was trying to build this natively
on Ubuntu. It seems some other headers happen to pull
the uint16_t definition by luck on NuttX and macOS.
2022-06-03 17:28:05 +03:00
YAMAMOTO Takashi
c116f8b673
webclient: Add https proxy (https over http) support
...
Use a separate webclient_context for tunnel establishment.
I chose this way (instead of having tunnelling steps in
the state machine of a single webclient_context) because
I want to allow tunnelling of non-HTTP protocols sooner or later.
2022-06-02 12:45:41 +08:00
YAMAMOTO Takashi
a95dd30f0e
webclient: Add tunneling support
...
Add a primitive API for tunnel establishment.
(WEBCLIENT_FLAG_TUNNEL and webclient_get_tunnel)
I plan to use this to implement https proxy support.
That is, the primary user will be webclient itself.
2022-06-02 12:45:41 +08:00
zouboan
30dbdf71ff
industry/foc foc_ident: adding flux linkage identification
2022-06-01 01:06:26 +08:00
Ville Juven
871c59dc31
nxwm: Fix warning about on_exit() dependency
2022-05-25 21:52:22 +08:00
YAMAMOTO Takashi
41aee40a2c
webclient: Add proxy setting in webclient_context
2022-05-24 22:42:54 +08:00
Takayoshi Koizumi
5040719911
audioutils/mml_parser: Add mml_parser library
...
Add Music Macro Language parser library in audioutils.
audioutils is also created for several audio utilities
not only mml_parser.
2022-05-07 13:56:53 +08:00
Alin Jerpelea
d60fb1168d
nxstyle fixes
...
fixes for nxstyle errors reported by CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
7c46bbc34d
include: netutils: pppd.h: update license to Apache
...
Brennan Ashton has signed the ICLA. As a result we can migrate the
license to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
zrrong
d17c9509f6
wireless/wapi: fix wapi wpa_wconfig_s alg data type error
...
Signed-off-by: zrrong <zrrong@bouffalolab.com>
2022-04-14 18:24:33 +03:00
ligd
9730eaad9e
nsh: sh_main also support isctty = true
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-03-30 22:47:37 +03:00
songlinzhang
f85388578c
Add dhcp6c module
...
Signed-off-by: songlinzhang <songlinzhang@xiaomi.com>
2022-03-19 23:25:50 +08:00
xuewenliang
c69ec94d13
Modifying the ping command
...
1、Round trip times in the ping command range from millisecond to subtle
2、Add statistics on RTT related min/avg/Max/mdev in ping program
3、The ping command supports ctrl+c interruption operations
Signed-off-by: xuewenliang <xuewenliang@xiaomi.com>
2022-03-18 09:54:01 +08:00
zhanghongyu
e0e41c5d7f
feature: wapi add encode parse when scan
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-03-15 18:01:04 +08:00
YAMAMOTO Takashi
44e80ac972
webclient: Implement chunked transfer (receiving side)
...
This is a requirement for HTTP 1.1.
Tested against:
* http://httpbin.org/stream/10
* Docker API
2022-03-08 09:39:55 +08:00
YAMAMOTO Takashi
3759da3d00
webclient: Add a parameter to specifiy protocol version
2022-03-08 09:39:55 +08:00
Alin Jerpelea
73258b3b39
apps: wireless: ieee802154: nxstyle fixes
...
fix for errors reported by the nxstyle tool
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 01:44:49 +08:00
Alin Jerpelea
c7c556ebae
apps: wireless: ieee802154: update licenses to Apache
...
Gregory Nutt has submitted the SGA
Verge Inc has submitted the SGA
Sebastien Lorquet has submitted the ICLA
as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 01:44:49 +08:00
raiden00pl
fbb09ff128
foclib/fixed16: add support for observers
2022-02-20 21:55:14 +08:00
zouboan
34e4da2304
industry/foc: add support for angle from sensorless observer
2022-02-19 15:37:35 +01:00
raiden00pl
5ef9d3630b
industry/foc/float: add velocity observers support
2022-02-16 23:49:12 +08:00
Petro Karashchenko
9480c0ec12
include: fix double include pre-processor guards
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-16 17:36:21 +08:00
Fotis Panagiotopoulos
bc5d8034f1
Typo fixes.
2022-01-06 10:30:41 +08:00
Xiang Xiao
66dbaa4539
Replace self defined macros with NET_SOCK_[FAMILY|TYPE|PROTOCOL]
...
NET_SOCK_* is defined by nuttx/net/netconfig.h and then can be shared
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-20 16:04:29 -03:00
Xiang Xiao
58586f86e3
system/cle: Make it work without CONFIG_FILE_STREAM
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-30 22:06:03 -06:00
Xiang Xiao
c8439368ac
system/readline: Make it work without CONFIG_FILE_STREAM
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-30 22:06:03 -06:00
songlinzhang
e0fc53b23c
netutils/dhcpc: add non-blocking interface
...
Signed-off-by: songlinzhang <songlinzhang@xiaomi.com>
2021-11-29 02:04:49 -06:00
raiden00pl
54c0b9a9d8
industry/foc/foc_align: add support for sensor index search
2021-11-07 03:46:17 -06:00
Gustavo Henrique Nihei
fbdfb0ef96
crypto/mbedtls: Bump Mbed TLS to version 3.0.0
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-04 23:19:58 -05:00
Brennan Ashton
c2057d77b2
crypto: Initial support for mbedtls
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2021-11-04 15:20:14 -03:00
raiden00pl
4001d27571
industry/foc: add support for Hall sensor
2021-10-30 10:17:07 -05:00
raiden00pl
5b52247625
industry/foc: add support for qenco
2021-10-30 10:17:07 -05:00
raiden00pl
515a25fbb8
industry/foc/*/foc_velocity.c: add methods to set the zero velocity and direction of the velocity
2021-10-30 10:17:07 -05:00
raiden00pl
6cafdae44a
industry/foc/*/foc_angle.c: add methods to set the zero angle and direction of the angle
2021-10-30 10:17:07 -05:00
raiden00pl
2e61b3e310
industry/foc/*/foc_velocity.c: run method should return int
2021-10-30 10:17:07 -05:00
raiden00pl
cb78f6d0df
industry/foc/*/foc_angle.c: run method should return int
2021-10-30 10:17:07 -05:00
raiden00pl
27c282a58a
include/industry/foc/*/foc_angle.h: add a field with angle type
2021-10-30 10:17:07 -05:00
raiden00pl
9362fe760d
include/industry/foc/*/foc_handler.h: remove useless FAR
2021-10-30 01:19:43 -05:00
raiden00pl
f009d68a91
industry/foc: add motor identification routine
2021-10-30 01:18:12 -05:00
raiden00pl
f2fc2af8e3
industry/foc: add sensor alignment routine
2021-10-30 01:18:12 -05:00
raiden00pl
084cfa4e5e
industry/foc: add general FOC routine handler
2021-10-30 01:18:12 -05:00
Jiuzhu Dong
5c1626c764
netutils: add NETLIB_SOCK_TYPE for AF_RPMSG
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-09-12 11:37:53 +08:00