chao an
7cfcb49213
cmake/apps: add more applications into cmake support
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-13 19:00:18 +02:00
raiden00pl
d8ea8e3d1f
nimble: improve integration with NuttX
...
1. add Makefile.nimble that helps integrate NimBLE with custom applications
To enable NimBLE for an custom application, user needs to include Makefile.nimble in the app's Makefile:
include $(APPDIR)/wireless/bluetooth/nimble/Makefile.nimble
2. add NuttX specific syscfg.h
- file based on nimble/porting/examples/nuttx/include/syscfg/syscfg.h
- all unnecessary definitions was removed
- definitions are configurable from Kconfig
3. add NuttX specific logcfg.h
- bind NimBLE logging with debug.h macros
2023-06-27 22:28:32 +03:00
raiden00pl
93c8cb29ea
nimble: make nimble porting example optional
...
Enabled by default for the moment to avoid CI errors
2023-06-27 22:28:32 +03:00
raiden00pl
caed582ea9
bluetooth/btsak: add dependency on WIRELESS_BLUETOOTH_HOST=y
2023-06-22 11:57:33 +08:00
Petro Karashchenko
f4d3e549b6
wireless/bluetooth/btsak: fix help messages
...
Currently the help messages use "private" string while code
expects "random".
Remove not needed (CODE void *) cast.
Use 'nitems' macro to calculate number of elements in array
Align output in `btsak_cmd_scanget` command.
Fix style issues
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-06-11 14:09:18 +08:00
raiden00pl
832b160cb1
bluetooth/nimble: update to bc7828341226d860429c63994065f8f1b8b8d7b0
...
which fix https://github.com/apache/mynewt-nimble/pull/1472
2023-03-02 22:21:37 +08:00
lilei19
41f60bd669
change strcpy to strlcpy
...
Change-Id: I8b9429a3c225a82842fce136bdb14b8b135066d3
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2023-02-22 23:09:55 +08:00
Xiang Xiao
6a686ba93d
bluetooth/nimble: Update to 17a8e61fdec48d579df3bc5af59a9cff5edee674
...
which contain the fix:
https://github.com/apache/mynewt-nimble/pull/1462
https://github.com/apache/mynewt-nimble/pull/1459
https://github.com/apache/mynewt-nimble/pull/1457
https://github.com/apache/mynewt-nimble/pull/1161
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-21 23:39:51 +02:00
Nathan Hartman
8e77b79f78
Kconfig: Make indent consistent with TABS
2023-02-10 14:11:48 +08:00
chao an
8ad4ae5508
net: fix compiler warning
...
sixlowpan_assocresp.c: In function ‘sixlowpan_assoc_resp’:
sixlowpan_assocresp.c:48:3: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
48 | strncpy(arg.ifr_name, ifname, IFNAMSIZ);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-08 00:35:39 +08:00
Xiang Xiao
a29d9ea9da
fsutils/examples: Include unistd.h explicitly
...
to get the prototypes or macros are defined in it
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-05 08:46:59 +02:00
Xiang Xiao
893387b2c5
Fix the minor style issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 19:07:16 +02:00
Huang Qi
2e2630e838
Don't download tarballs if a local git repo found
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-28 17:20:47 +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
raiden00pl
2db90a8be5
wireless/bluetooth/nimble: make stacksize configurable
2021-12-18 20:24:02 -06:00
Alan C. Assis
1028d5abbe
apps/btask: Fix line feed when there is not advertised data
...
Note the item "4." doesn't appear at right place:
nsh> bt bnep0 scan start
nsh> bt bnep0 scan stop
nsh> bt bnep0 scan get
Scan result:
1. addr: 5a:ae:bd:0b:88:b9 type: 1
rssi: -96
response type: 3
advertiser data: 1e ff 06 00 01 09 20 02 72 36 18 d5 2c 3f 38 e5
fd a5 49 f8 3c e8 a9 f8 15 a8 0e 20 ea 51 02
2. addr: f3:d5:9a:7f:79:54 type: 1
rssi: -61
response type: 0
advertiser data: 02 01 06 05 03 0a 18 e7 fe 0b ff 34 12 fe e7 f3
d5 9a 7f 79 54 05 09 44 4b 30 38
3. addr: f3:d5:9a:7f:79:54 type: 1
rssi: -61
response type: 4
advertiser data: 4. addr: e8:b4:9f:83:66:fd type: 1
rssi: -96
response type: 0
advertiser data: 02 01 1e 0a ff 75 00 01 00 02 00 01 03 02 03 19
c0 00
5. addr: 38:6d:34:58:86:6d type: 1
rssi: -92
response type: 3
advertiser data: 1e ff 06 00 01 09 20 02 e7 45 ff 96 96 eb 1a e8
aa 18 cf 37 04 d3 f9 00 28 98 67 97 8a ce 84
nsh>
2021-10-21 23:31:41 -05:00
Alin Jerpelea
c726646010
wireless: nxstyle fixes
...
fixes for the style errors reported by nxstyle
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-09 22:08:10 -05:00
Alin Jerpelea
ab60df94a2
wireless: bluetooth: btsak: update licenses to Apache
...
Gregory Nutt is 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>
2021-06-09 22:08:10 -05:00
Alin Jerpelea
59c607c8dc
Makefile: Sebastien Lorquet: update licenses to Apache
...
Gregory Nutt is 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>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
ec339bc49a
Makefiles: Gregory Nutt: update licenses to Apache
...
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Xiang Xiao
34a042aa49
nimble: Update version to cd8ab38c3da91b71dd428979153a408f38d3b02e
...
which contain the following fix:
commit cd8ab38c3da91b71dd428979153a408f38d3b02e
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date: Thu May 20 15:43:50 2021 +0800
nuttx: fix error: use of undeclared identifier 'ENOMEM'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Idd832450d98306750ece8307ec7eef5c0c367a48
2021-05-22 12:02:58 -03:00
Brennan Ashton
75690bc31e
Pin Nible release to working commit until stable tag is ready
2021-02-16 09:08:37 +00:00
Huang Qi
3040c59ae9
Replace all wget with curl
...
wget is missing from some system (like macOS and Windows native),
it's better to use curl to simplify build environment.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-12-21 22:45:46 -06:00
Matias N
ca64cefc91
nimble: fix wrong git ref name to use
2020-12-18 08:56:27 -06:00
Matias N
b97395dee1
nimble: point to upstream, improve Makefile
2020-12-17 20:42:48 -06:00
chao.an
fe915679b1
style/Document: remove unnecessary trailing whitespace
...
N/A
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-28 12:20:10 +01:00
chao.an
b5692d8034
style/code: remove unnecessary trailing whitespace
...
N/A
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-28 12:20:10 +01:00
YAMAMOTO Takashi
75758c17b4
wireless/bluetooth/btsak/btsak_gatt.c: Fix a printf format warning
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
e18fe2050f
wireless/bluetooth/btsak/btsak_gatt.c: Appease nxstyle
2020-11-13 05:51:23 -08:00
Matias N
fcc485cc7a
nimBLE integration application/library
2020-10-31 13:04:57 -07:00
Brennan Ashton
d38351cfd0
nxstyle: Fixup existing long lines
2020-08-29 14:04:44 -06:00
Brennan Ashton
14c6d976fc
Bluetooth: Use the new l2cap socket address type
2020-08-29 14:04:44 -06:00
Maciej Wójcik
21049ece6e
Rewritten READMEs to Markdown
2020-07-25 01:01:51 -07:00
Maciej Wójcik
51e6645f71
Rename README and README.txt to README.md
2020-07-25 01:01:51 -07:00
Xiang Xiao
deaa6c5b7b
build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs
...
and move NUTTXLIB defintion to the common place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 15:17:37 -03:00
Xiang Xiao
69f013e74e
build: Remve the unnecessary .gitignore
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-23 15:56:35 +01:00
Xiang Xiao
ead498a788
build: Remove the workaround for the inexistence of .config/Make.defs
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Gregory Nutt
fcc688e771
wireless/bluetooth/btsak/btsak_security.c: Fix long lines for nxstyle.
2020-04-29 17:50:24 +01:00
Gregory Nutt
9e5d57f492
wireless/bluetooth/btsak/btsak_security.c: Fix newline character
...
Inspired by Abdelatif's find, here are other cases where /n was used when \n ws intended
2020-04-29 17:50:24 +01:00
YAMAMOTO Takashi
e7156be066
Change the defaults of stack size configs to DEFAULT_TASK_STACKSIZE
...
This commit changes only ones with the default 2048 and
leaves the others.
E.g. this leaves SYSTEM_RAMTEST_STACKSIZE, whose default is 1024.
I guess those need to be inspected one-by-one.
2020-03-27 02:43:11 -05:00
Xiang Xiao
1511403fdf
Revert "Don't generate .depend anymore"
...
This reverts commit cc5ad09caa
.
2020-03-22 23:09:40 -05:00
Xiang Xiao
cc5ad09caa
Don't generate .depend anymore
2020-03-22 18:15:21 +00:00
chao.an
f28eca9dbc
Make.defs: Use complete include path
2020-02-19 12:56:10 -06:00
Xiang Xiao
e0dcfa0c55
Remove extra whitespace from files ( #43 )
...
* Remove multiple newlines at the end of file
* Remove the white space from the end of line
2020-01-31 08:29:24 -06:00
Xiang Xiao
7808eb62d2
apps/: In all Make.def files, append to CONFIGURED_APPS patch with the absolute path.
2019-10-17 11:33:59 -06:00
Gregory Nutt
3a23523147
Makefiles: This reverts part of commit cf0365ea9
. It restores 'conditional' inclusion of TOPDIR/Make.defs. Otherwise all make targets fail if the board has not been configured. That is okay most of the time, but not for things like clean and distclean which should not depend on being configured.
2019-10-15 09:25:48 +08:00
Xiang Xiao
e806097c70
Application.mk and main.c files: Change builtin's entry point from main to xxx_main by macro expansion. This change make the entry point fully compliant with POSIX/ANSI standard.
2019-10-06 06:14:56 -06:00
Xiang Xiao
cf0365ea92
Clean up Makefile under apps folder no functional changes.
2019-10-04 08:35:46 -06:00
Xiang Xiao
f7229b24fe
apps/wireless Makefiles: Utilize Directory.mk for consistency.
2019-10-01 11:56:42 -06:00
Xiang Xiao
9a27d4a697
Makefiles: Remove .PRECIOUS if Makefile doesn't touch libapps.
2019-10-01 11:48:55 -06:00