Simon Piriou
3eb3b0da4d
arch: stm32: fix otghs logic to support interface requests
2020-10-26 08:17:25 -03:00
Masayuki Ishikawa
72b182d3d3
boards: sim: Update smp/defconfig
...
Summary:
- Add CONFIG_DRIVER_NOTE=y
- Add CONFIG_NSH_READLINE=y
- Add CONFIG_READLINE_CMD_HISTORY=y
- Add CONFIG_SCHED_INSTRUMENTATION=y
Impact:
- Affects sim:smp only
Testing:
- Tested with uname/ps/free/hello/smp/ostest
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-26 03:06:46 -07:00
Masayuki Ishikawa
df952074eb
drivers: wireless: Add support for ioctl(fd, SIOCGIFADDR, ...) to gs2200m.c
...
Summary:
- This commit adds support for ioctl(fd, SIOCGIFADDR, ...) to gs2200m.c
Impact:
- Only affects ioctl(fd, SIOCGIFADDR, ...) with gs2200m
- Need to update apps/wireless/gs2200m as well
Testing:
- Tested with spresense:wifi
- Tested with dhcpc
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-26 10:53:34 +01:00
Masayuki Ishikawa
f12d49076c
drivers: wireless: Fix to handle address info in accept() in gs2200m.c
...
Summary:
- This commit fixes to handle address info in accept() in gs2200m.c
Impact:
- All use cases which use accept() with gs2200m
- Need to update apps/wireless/gs2200m as well
Testing:
- Tested with spresene:wifi
- Tested with telnet daemon
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>>
2020-10-26 10:53:34 +01:00
Masayuki Ishikawa
02b08590a1
drivers: wireless: Fix to handle UDP connect() with bind() in gs2200m.c
...
Summary:
- This commit fixes to handle UDP connect() with bind() to a local port.
Impact:
- All UDP cases which use connect() with gs2200m
- Need to update apps/wireless/gs2200m as well
Testing:
- Tested with spresense:wifi
- Create a UDP socket and bind() to a local port.
- Then connect() to remote address with port and send()
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-26 10:53:34 +01:00
YAMAMOTO Takashi
6a2bd9a75b
Change the default value of SIGPIPE
...
To avoid the conflicting default with SIGQUIT.
2020-10-25 20:35:41 -07:00
YAMAMOTO Takashi
ad5c168b30
signalh.h: Use the right config for SIGPIPE
2020-10-25 20:35:41 -07:00
YAMAMOTO Takashi
d8bee6769a
esp32_flash.ld: Avoid having too many sections
...
Fixes an issue I saw when trying libcxx.
esptool.py has a limit of 16 sections.
It complains like:
A fatal error occurred: Invalid segment count 23 (max 16).
Usually this indicates a linker script problem.
2020-10-25 19:42:21 -07:00
Matias N
5386f972fa
bluetooth: Add support for HCI RAW channel; make host layer optional
2020-10-25 17:04:25 -07:00
Brennan Ashton
1080d3f411
Bluetooth: Start implementing BTPROTO_HCI socket support
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-10-25 17:04:25 -07:00
Masayuki Ishikawa
3098b61776
Revert "arch/sim: Make the SIGUSR1 host signal to use the NuttX irq logic"
...
This reverts commit d6210fcd84
.
2020-10-26 08:42:52 +09:00
Abdelatif Guettouche
9b98f20969
arch/xtensa: Fix the naming of the internal heap functions. They should
...
be prefixed by xtensa_ instead of up_.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
34ad33c8b2
arch/xtensa/Kconfig: Add help for the seperate internal heap.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
5ac5655fa4
arch/xtensa/src/esp32/esp32_spi&spiflash: Free the correct buffer.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
0182e6e8bb
arch/xtensa/src/commin/xtensa_usestack&createstack.c: Set the alignment
...
to be 4 bytes.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
172896728f
arch/xtensa/src/esp32/esp32_spi.c: Instead of returning with no error
...
code, assert the return of the imm_malloc function.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
2fa5d65355
arch/xtensa/src/common: Refactor the mm_ macros into a separate file.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
c91db9eb40
baords/xtensa/esp32/esp32-core: Refresh all the defconfigs
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
f0ae1dd54a
arch/xtensa/src/esp32: Fix PR #1958 nxstyle issues.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
7db8b920ff
arch/xtensa/src/esp32/hardware: PIN_CTRL was defined twice.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
0ba0a3a092
arch/xtensa/src/esp32/hardware/esp32_soc.h: Lowercase hex value
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
b6429a50d7
arch/xtensa/src/esp32/esp32_allocateheap.c: Delete a preprocessor
...
warning that's not relevant anymore.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
430e2d766d
boards/xtensa/esp32/esp32-core/configs: When there is no PSRAM, only one
...
memory region is available.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
1b12d20225
arch/xtensa/src/esp32/esp32_spiflash.c&esp32_spi.c: Allocate a buffer from DRAM
...
when the given buffer is from PSRAM.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
7ac5f7a35b
arch/xtensa/src/esp32: Add a PROCFS entry for the internal memory
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
a1318926b4
arch/xtensa/esp32: Allow internal drivers and tasks' stack to be
...
allocated in an internal heap.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
dongjiuzhu
bcf3381d06
epoll_create: mofidy return value for epoll_create1
...
Change-Id: I422d7640c37105e1120db18b29d56547f447846f
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-10-25 11:06:37 -07:00
Matias N
d087d912ee
bt_hcicore.c: Fix wrong order of bt_send() and setting last command sent
2020-10-25 09:13:20 -07:00
Matias N
04e8207e20
Add $(OBJS) and $(BIN) to CLEAN macro to clean objects also in subdirectories
2020-10-25 08:28:33 -07:00
Matias N
aabb30a103
documentation: change non-working URL
2020-10-25 12:25:34 -03:00
Matias N
4286d588f7
bt_netdev: remove invalid assert breaking build when debugging is enabled
2020-10-25 07:31:44 -07:00
YAMAMOTO Takashi
df812d09a2
math: Make this friendly with libcxx
...
- Turn some macros into functions
- Implement some type-agnostic functions.
(Just use __builtin_xxx)
- Add some missing function prototypes
(Just prototypes, not actually implemented in this commit)
2020-10-25 07:30:14 -07:00
Yoshinori Sugino
7b3cb0a23b
libs/libc/string/lib_strsignal.c: Fix a comment
2020-10-25 08:49:44 -03:00
Juha Niskanen
0cea0f5cd4
board: LCD: fix wrong number of parameters to lcderr() macro
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-10-24 16:55:05 -03:00
Juha Niskanen
59faf8d8f4
stm32: common: fix SSD1306 initialization when LED is in SPI bus
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-10-24 16:55:05 -03:00
Yoshinori Sugino
fabfc9ab10
sched/signal/sig_procmask.c: Remove an unnecessary variable
2020-10-24 14:10:20 +01:00
Yoshinori Sugino
edf035ccc1
Fix nxstyle warnings
2020-10-24 09:38:21 +01:00
Yoshinori Sugino
3ac90fca79
Remove tabs and spaces at the end of lines
2020-10-24 09:38:21 +01:00
Yoshinori Sugino
ea5ec14995
sched/signal/sig_procmask.c: Fix a typo
2020-10-24 09:36:46 +01:00
Bhindhiya
b86de683e0
RX65N ipv6 defconfig modified
2020-10-23 22:05:46 +08:00
Philippe Coval
bc11d14d08
freedom-k64f/demo: Support DHCP renew tool
...
Usage:
nsh> ifconfig
eth0 Link encap:Ethernet HWaddr 52:13:FF:FF:FF:FF at UP
inet addr:10.0.0.2 DRaddr:10.0.0.1 Mask:255.255.255.0
nsh> renew eth0 && ifconfig
eth0 Link encap:Ethernet HWaddr 52:13:FF:FF:FF:FF at UP
inet addr:192.168.1.42 DRaddr:192.168.1.254 Mask:255.255.255.0
CONFIG_NETDB_DNSCLIENT is needed for
apps/netutils/netinit/netinit.c:659: \
undefined reference to `netlib_set_ipv4dnsaddr'
Change-Id: I54b8495637baf0f3f28abf67d4d4ce861ef49ced
Bug: https://github.com/apache/incubator-nuttx/issues/1988
Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-23 10:34:57 +08:00
Nathan Hartman
f9a6988ca8
tiva/cc13x2_cc26x2: Fix nxstyle errors
...
arch/arm/src/tiva/hardware/cc13x2_cc26x2/cc13x2_cc26x2_ccfg.h,
arch/arm/src/tiva/hardware/cc13x2_cc26x2/cc13x2_cc26x2_vims.h:
* Fix nxstyle errors.
2020-10-23 01:32:17 +08:00
Philippe Coval
e2274a4194
freedom-k64f/demo: Support Ethernet
...
It was tested using:
nsh> ifconfig
eth0 Link encap:Ethernet HWaddr 52:13:FF:FF:FF:FF at DOWN
inet addr:10.0.0.2 DRaddr:10.0.0.1 Mask:255.255.255.0
All flags are needed to prevent build failures like:
chip/kinetis_enet.c:181:4:\
error: #error "Unrecognized or missing PHY selection"
netlib_setifstatus.c: In function 'netlib_ifup':
netlib_setifstatus.c:83:27: \
error: 'NETLIB_SOCK_TYPE' undeclared (first use in this function);
Change-Id: I9496528ae09f6244d73ab77dbcd307ced95f46fd
Bug: https://github.com/apache/incubator-nuttx/pull/1988
Forwarded: https://github.com/apache/incubator-nuttx/pull/2066
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-23 00:34:17 +08:00
Philippe Coval
c39e380102
freedom-k64f/demo: Enable EXAMPLES_FXOS8700CQ
...
Depends on other flags that will be enabled automatically by kconfig:
CONFIG_SENSORS=y
CONFIG_SENSORS_FXOS8700CQ=y
Change-Id: Ic9bfbd02cca9f2fd4b1f1fb538100865a1c497ff
Bug: https://github.com/apache/incubator-nuttx/pull/1999
Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-22 22:33:35 +08:00
liuhaitao
f2d9f5c43a
configure.sh: update custom board config build
...
If Make.defs not found under boardconfig dir, then try
scripts/Make.defs.
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-10-22 11:12:10 -03:00
Brennan Ashton
23cd1e030e
Docs: Fix broken links and references in docs
...
Also add to the CI a problem matcher to better report issues
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-10-22 10:22:11 -03:00
Brennan Ashton
c412021904
Docs: Bump version of pygments to get new GAS lexer
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-10-22 10:22:11 -03:00
dongjiuzhu
8bd163325b
sensor: add wtgahrs2 init and enable config
...
Change-Id: I0521098d6157c59d4e0d463e43a2d202797577b6
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-10-22 10:17:36 -03:00
dongjiuzhu
a3f978da02
sensor/driver: wtgahrs2 by serial interface follow sensor.c/sensor.h
...
Wtgahrs2 integrates multiple sensor: accel, gyro, mag, baro and gps.
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-10-22 10:17:36 -03:00
dongjiuzhu
fa09c6a8bc
driver/sensor: add unified management for sensor
...
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-10-22 10:17:36 -03:00