Masayuki Ishikawa
bbe2fd3b80
boards: Fix the CI build errors for telnetd
...
Summary:
- This commit fixes the CI build errors regressed by
https://github.com/apache/incubator-nuttx/pull/7351
Impact:
- None
Testing:
- Build only
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-11-07 16:06:00 +01:00
Xiang Xiao
4e43fef5cd
boards: Update telnetd related config after apps/nshlib change
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-07 15:24:29 +09:00
raiden00pl
f43f046983
boards/arm: remove -funwind-tables from boards Make.defs
2022-11-05 20:36:35 +08:00
Xiang Xiao
28947517ca
sched/spawn: Rename task_spawnattr_[get|set]stack[size|addr] to posix_spawnattr_[get|set]stack[size|addr]
...
since they can be not only used in task_spawn but also in posix_spawn
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-01 09:51:18 +09:00
Xiang Xiao
e9f630ecb5
Fix clang compiler warning in boards/arm/stm32/
...
Error: board/stm32_ssd1289.c:290:33: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
putreg32(FSMC_BTR_ADDSET(5) | FSMC_BTR_ADDHLD(0) |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/github/workspace/sources/nuttx/arch/arm/src/chip/hardware/stm32_fsmc.h:164:42: note: expanded from macro 'FSMC_BTR_ADDHLD'
^
/github/workspace/sources/nuttx/arch/arm/src/common/arm_internal.h:135:54: note: expanded from macro 'putreg32'
^
Error: board/stm32_ssd1289.c:291:33: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
FSMC_BTR_DATAST(9) | FSMC_BTR_BUSTURN(0) |
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/github/workspace/sources/nuttx/arch/arm/src/chip/hardware/stm32_fsmc.h:172:42: note: expanded from macro 'FSMC_BTR_BUSTURN'
^
/github/workspace/sources/nuttx/arch/arm/src/common/arm_internal.h:135:54: note: expanded from macro 'putreg32'
^
Error: board/stm32_ssd1289.c:292:12: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
FSMC_BTR_CLKDIV(0) | FSMC_BTR_DATLAT(0) |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/github/workspace/sources/nuttx/arch/arm/src/chip/hardware/stm32_fsmc.h:176:42: note: expanded from macro 'FSMC_BTR_CLKDIV'
^
/github/workspace/sources/nuttx/arch/arm/src/common/arm_internal.h:135:54: note: expanded from macro 'putreg32'
^
Error: board/stm32_ssd1289.c:292:33: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
FSMC_BTR_CLKDIV(0) | FSMC_BTR_DATLAT(0) |
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/github/workspace/sources/nuttx/arch/arm/src/chip/hardware/stm32_fsmc.h:180:42: note: expanded from macro 'FSMC_BTR_DATLAT'
^
/github/workspace/sources/nuttx/arch/arm/src/common/arm_internal.h:135:54: note: expanded from macro 'putreg32'
^
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 16:03:35 +01:00
Xiang Xiao
edd68d8ae9
board: Change CONFIG_SYSTEM_NSH_SYMTAB to CONFIG_NSH_SYMTAB
...
follow the apps side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 22:18:51 +02:00
Xiang Xiao
6b31918b42
Remove the unnecessary cast for main_t, NULL and argv
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 08:51:45 +02:00
Xiang Xiao
7923ea3bef
boards: Refresh defconfig after the default value of FS_PROCFS_EXCLUDE_xxx
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 15:10:26 +09:00
anjiahao
d1d46335df
Replace nxsem API when used as a lock with nxmutex API
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-17 15:59:46 +09:00
Xiang Xiao
78f6a02bc8
boards: Remove the duplicated prototype of CONFIG_INIT_ENTRYPOINT
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 19:02:44 +02:00
raiden00pl
2c722883bc
nucleo-f446re: add romfs support
2022-10-06 00:44:58 +08:00
Xiang Xiao
92f156c969
boards: Change the linker generated symbols from uint32_t to uint8_t array
...
since the symbol generated by linker is always used as an address not a value.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-05 14:24:47 +02:00
Xiang Xiao
2a574427c6
boards: Remove CONFIG_NETDEVICES=y from board defconfig
...
since it's enabled by default now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-01 19:12:15 +02:00
Xiang Xiao
bdeaea3742
Remove the unnessary empty line after label
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-30 17:54:56 +02:00
wangbowen6
344c8be049
poll: add poll_notify() api and call it in all drivers
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-09-26 12:06:32 +08:00
Nathan Hartman
d129c95fd2
boards/b-g474e-dpow1: Add note about udev/sudo regarding openocd
...
* boards/arm/stm32/b-g474e-dpow1/README.txt:
(Debugging): OpenOCD requires permissions for certain operations. The
preferred thing to do is to properly configure udev rules. The
expedient thing to do is to run it as root with 'sudo', but we do not
want to encourage that, as discussed earlier on this PR [1]. This
revised text offers a compromise where we mention both options, but
we talk about udev rules first and explicitly say that using 'sudo'
is not encouraged. We leave it up to developers to decide what is
best in their particular situation.
References:
[1] https://github.com/apache/incubator-nuttx/pull/7177
2022-09-25 08:13:01 -07:00
Xiang Xiao
70290b6e38
arch: Change the linker generated symbols from uint32_t to uint8_t *
...
and remove the duplicated declaration
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-24 21:26:56 +02:00
Nathan Hartman
a1bc1e89b0
boards/arm/stm32: Add b-g474e-dpow1:ostest configuration.
...
* boards/arm/stm32/b-g474e-dpow1/configs/ostest/defconfig:
New file. Compared to b-g474e-dpow1:nsh, it adds the following
configs:
+CONFIG_BUILTIN=y
+CONFIG_NSH_BUILTIN_APPS=y
+CONFIG_TESTING_OSTEST=y
and, because ostest currently fails when priority inheritance is
enabled, it removes the following configs:
-CONFIG_PRIORITY_INHERITANCE=y
-CONFIG_PTHREAD_MUTEX_DEFAULT_PRIO_INHERIT=y
2022-09-24 00:44:27 +08:00
Xiang Xiao
af12a552fe
sched/Kconfig: let PREALLOC_TIMERS depends on !DISABLE_POSIX_TIMERS
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-19 11:39:22 -03:00
chao an
f23a736c80
nxstyle: correct the file path
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-18 01:35:21 +08:00
Xiang Xiao
a7b3217c37
boards/arch: Remove FAR from 32bit/64bit arch
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-16 10:22:12 +02:00
chao an
54aa91f02b
arch/arm: unify compile flags to common/Toolchain.defs
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-16 14:47:27 +08:00
chao an
0f0a94186f
arch/arm/toolchain: migrate the toolchain define to arch/arm/Kconfig
...
migrate the toolchain define to arch/arm/Kconfig to simplify new toolchain registration
Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-16 14:47:27 +08:00
Alan Carvalho de Assis
f69251151e
stm32f4discovery: Add W5500 board config example
2022-09-15 01:55:47 +08:00
Alan Carvalho de Assis
5322f909ef
stm32f4discovery: Add support to WIZnet W5500
2022-09-15 01:55:47 +08:00
Xiang Xiao
ef246c0869
mtd/config: Remove MTD_CONFIG_ERASEDVALUE
...
since we can query this value by MTDIOC_ERASESTATE after:
commit 30cb497fe1
Author: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
Date: Tue Jul 13 19:33:12 2021 -0300
mtd: Add MTDIOC_ERASESTATE command for retrieving erase state value
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-10 10:41:42 +02:00
Huang Qi
e4e3208180
Replace all strncpy with strlcpy for safety
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-25 13:38:36 +08:00
Alan Carvalho de Assis
8939350af1
stm32f4discover: Add Shift Game board example with gesture (APDS9960) support
2022-08-15 00:32:42 +08:00
Alan Carvalho de Assis
483e152c93
stm32f4discovery: Add support to APA102
2022-08-15 00:32:42 +08:00
Alan Carvalho de Assis
1b79032cbd
stm32f4discovery: Add support to 5-Way discrete joystick
2022-08-15 00:32:42 +08:00
Alan Carvalho de Assis
9a08b04d3f
stm32f4discovery: Add support to APDS9960
2022-08-15 00:32:42 +08:00
Nathan Hartman
dd718e78f7
Fix typos
2022-08-07 23:33:19 +08:00
Nathan Hartman
20bdd44e7b
Remove executable permission from source and build files.
2022-08-04 12:48:18 -03:00
Xiang Xiao
8582a12388
drivers: Reorganize the power related code layout
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-04 10:28:28 +03:00
Peter van der Perk
0e9c32ff29
Change libcanard to libcanardv0
2022-08-02 17:01:23 +08:00
simbit18
666c2d255a
Update stm32_ina219.c
...
Fix mistakes in syslog
2022-07-29 16:09:25 +03:00
simbit18
7a9b434ae6
Update stm32_max31855.c
...
Fix mistakes in comments
2022-07-29 16:09:25 +03:00
simbit18
9851d4483b
Update stm32_max6675.c
...
Fix mistakes in comments
2022-07-29 16:09:25 +03:00
simbit18
07c0b2844a
Update stm32_mlx90614.c
...
Fix mistakes in comments and snerr
2022-07-29 16:09:25 +03:00
zhuyanlin
031c89db89
power: add PM_IDLE_DOMAIN to pm.h and remove definations
...
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2022-07-29 11:15:40 +08:00
simbit18
3b3147ad75
Update stm32_bh1750.h
2022-07-26 08:43:36 -04:00
simbit18
62e4f8ee79
Update stm32_bh1750.c
...
Fix mistakes in comments and snerr
2022-07-26 19:27:59 +08:00
Xiang Xiao
1d43b4a4eb
libc/stdio: Enable LIBC_FLOATINGPOINT by default if ARCH_FPU is enabled
...
and DEFAULT_SMALL is false
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-21 09:53:09 -04:00
Xiang Xiao
f9e3ef3464
Revert "libc/stdio: enable long long formating by CONFIG_HAVE_LONG_LONG"
...
This reverts commit b1c72c023c
.
2022-07-20 18:06:29 +03:00
raiden00pl
1ca8bf2cdb
boards: remove references to STM32xx_SPI_DMA, which is now a hidden option
2022-07-16 11:10:01 +03:00
Gustavo Henrique Nihei
83442aa70c
boards: Convert DEBUGASSERT(false) into more intuitive DEBUGPANIC()
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-07-14 12:08:45 +08:00
Xiang Xiao
b1c72c023c
libc/stdio: enable long long formating by CONFIG_HAVE_LONG_LONG
...
and remove CONFIG_LIBC_LONG_LONG option to simplify the usage.
note: the size will increase 668
before change:
text data bss dec hex filename
168440 348 4480 173268 2a4d4 nuttx
after change:
text data bss dec hex filename
169108 348 4480 173936 2a770 nuttx
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-13 09:50:38 -03:00
Masayuki Ishikawa
7307b8b6d5
boards: stm32f4discovery: Add iperf to rndis/defconfig
...
- NOTE: This commit also removes CONFIG_HOST_WINDOWS=y
nsh> iperf -c 10.0.2.15
IP: 10.0.2.20
mode=tcp-client sip=10.0.2.20:5001,dip=10.0.2.15:5001, interval=3, time=30
Interval Transfer Bandwidth
0.00- 3.01 sec 2211840 Bytes 5.88 Mbits/sec
3.01- 6.02 sec 4423680 Bytes 5.88 Mbits/sec
6.02- 9.03 sec 6651904 Bytes 5.92 Mbits/sec
9.03- 12.04 sec 8863744 Bytes 5.88 Mbits/sec
12.04- 15.05 sec 11091968 Bytes 5.92 Mbits/sec
15.05- 18.06 sec 13303808 Bytes 5.88 Mbits/sec
18.06- 21.07 sec 15532032 Bytes 5.92 Mbits/sec
21.07- 24.08 sec 17743872 Bytes 5.88 Mbits/sec
24.08- 27.09 sec 19972096 Bytes 5.92 Mbits/sec
27.09- 30.10 sec 22183936 Bytes 5.88 Mbits/sec
0.00- 30.10 sec 22183936 Bytes 5.90 Mbits/sec
nsh> iperf -s
IP: 10.0.2.20
mode=tcp-server sip=10.0.2.20:5001,dip=0.0.0.0:5001, interval=3, time=0
accept: 10.0.2.15,59072
Interval Transfer Bandwidth
0.00- 3.01 sec 1780056 Bytes 4.73 Mbits/sec
3.01- 6.02 sec 3566544 Bytes 4.75 Mbits/sec
6.02- 9.03 sec 5350888 Bytes 4.74 Mbits/sec
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-07-07 11:40:33 +03:00
zouboan
00e8e4fa28
boards/stm32f4discovery: add setup of pwm capture device
...
drivers/timers/capture.c: add support of pwm capture driver
2022-06-28 10:35:43 +08:00
Michael Jung
9140693567
Add lcd_dev_s pointer to lcd_planeinfo_s
...
In order to support multiple LCD instances per board, add a pointer from
lcd_planeinfo_s to the lcd_dev_s which it belongs to. Also enhance the
putrun, getrun, putarea and getarea methods to pass through the
lcd_dev_s pointer to the respective device driver.
Port all LCD device drivers to this lcd_planeinfo_s extension.
Enhance SSD1306 driver to support multiple LCDs.
Signed-off-by: Michael Jung <michael.jung@secore.ly>
2022-06-21 21:33:23 +08:00