YAMAMOTO Takashi
e96a870485
iob_tryalloc: Remove a wrong assertion
2021-08-02 11:25:55 -07:00
Xiang Xiao
98de773081
libc: Support message catalog function
...
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/nl_types.h.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-02 08:24:59 -03:00
Xiang Xiao
a262eebe34
libc: Rename match to fnmatch
...
specified here:
https://pubs.opengroup.org/onlinepubs/007904875/functions/fnmatch.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-02 08:23:35 -03:00
Masayuki Ishikawa
59bff123e6
boards: spresense: Update rndis_smp/defconfig
...
Summary:
- I noticed that the RNDIS networking is unstable when running
nxplayer + command execution via telnet
- This commit is a workaround to fix this issue by disabling
CONFIG_TCP_WRITE_BUFFERS. Also, CONFIG_SENDFILE_BUFSIZE is
increased to improve the webserver performance.
Impact:
- spresense:rndis_smp only
Testing:
- Tested with nxplayer, telnetd and webserver
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-08-01 20:49:13 -07:00
Alexander Lunev
95abf562f4
boards: added a basic support for chipKIT Wi-FIRE board;
...
added Sourcery CodeBench Lite for MIPS ELF Toolchain option;
corrected inaccuracies in Photon board and EMW3162 board README.txt files.
2021-08-01 08:45:02 -07:00
Xiang Xiao
0e2cbe9a79
libc: Add the empty nl_langinfo implementation
...
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/langinfo.h.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-31 15:35:47 -03:00
Xiang Xiao
f181ed6fd2
libc: Reorder LC_XXX as Linux
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-31 15:35:47 -03:00
buyuer
ae3709819c
Use exit func iml host_abort.
...
When use poweroff command,host_abort will be called,but may be make __stack_chk_fail irq, and host_abort be called in PANIC(), so bring infinite loop, in turn it can not exit SIM.
Signed-off-by: buyuer <dingddding@163.com>
2021-07-31 08:02:10 -07:00
Peter Bee
84480d760b
raspberrypi-pico: add support for lcd_dev
...
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
Change-Id: I5cf9fa40cae6ddfe5c8041145f19e5058b76193f
2021-07-30 14:08:05 -03:00
Gustavo Henrique Nihei
ae714baae5
board/ctrl: Add BOARDIOC_BOOT_IMAGE for booting a new application image
...
This command enables the application to perform the final steps of the
booting process prior to finally switching the execution to another
firmware image.
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-07-30 09:47:46 -07:00
Xiang Xiao
3c400f32fa
Remove the locale fallback from libcxx
...
since these functions can handled by NuttX's libc now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-30 09:43:26 -03:00
Xiang Xiao
cdc781bdfd
libc: Implement local_t related functions
...
since local_t isn't really implemented on NuttX,
we can simply redirect to the non-locale version.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-30 09:43:26 -03:00
Xiang Xiao
decf7d0ad9
locale: Add LC_GLOBAL_LOCALE which is specified by the standard
...
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/locale.h.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-30 09:43:26 -03:00
Masanari Iida
b64e9050c4
mm: Fix a typo in Kconfig
...
This patch fixes a spelling typo in mm/Kconfig.
Signed-off-by: Masanari Iida <standby24x7@gmail.com>
2021-07-30 01:31:01 -07:00
Masayuki Ishikawa
b9757ff811
boards: esp32-devkitc: Update wapi_smp/defconfig
...
Summary:
- This commit adds RTC and NTP client to wapi_smp/defconfig
Impact:
- None
Testing:
- Tested with ntpcstart & date
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-07-29 21:00:01 -07:00
Xiang Xiao
5d1a444812
Replace __attribute__ ((unused)) with unused_code
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-29 21:55:21 -03:00
Xiang Xiao
69df58c2e8
Replace __attribute__((no_instrument_function)) with noinstrument_function;
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-29 21:55:21 -03:00
Xiang Xiao
7bcd29dae0
Replace __attribute__((naked, no_instrument_function)) with naked_function
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-29 21:55:21 -03:00
Xiang Xiao
919f8a9a72
Define __ramfunc__ to "locate_code(".ramfunc") farcall_function noinline_function"
...
instead of "__attribute__ ((section(".ramfunc"),long_call,noinline))"
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-29 21:55:21 -03:00
Xiang Xiao
440ca48778
Replace all __attribute__((packed)) with [begin|end]_packed_struct
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-29 21:55:21 -03:00
Xiang Xiao
21b69cfd5d
Replace all __attribute__((weak)) with weak_data/weak_function
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-29 21:55:21 -03:00
Xiang Xiao
007adc7736
Replace all __attribute__((section(x)) with locate_data(x)
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-29 21:55:21 -03:00
Xiang Xiao
b3f9ffbe72
Replace all __attribute__((aligned(x)) with aligned_data(x)
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-29 21:55:21 -03:00
Sara Souza
9c3799f130
xtensa/esp32-s2: Adds GPIO board logic to esp32s2-saola-1.
2021-07-29 17:21:32 -03:00
Gustavo Henrique Nihei
a7a922611b
xtensa/esp32: Enable the allocation of multiple SPI Flash partitions
...
Currently the "esp32_spiflash_alloc_mtdpart" allocates a
statically-defined partition from "offset" and "size" set via
Kconfig.
This commit changes the function interface to receive those information
as arguments, enabling the creation of multiple MTD partitions with
different offsets and sizes.
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-07-29 20:17:13 +02:00
Abdelatif Guettouche
9b4e44842e
libc/pthread_barrierattr_destory.c: Destroy shouldn't reinitialize the
...
attributes.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-07-29 14:44:07 -03:00
Alexander Lunev
98e7776714
pic32mz: added support for PIC32MZ2048EFG MCU
2021-07-29 07:46:26 -07:00
Xiang Xiao
545a93301b
fs: Don't define UTIME_OMIT if __cplusplus is defined
...
to avoid libcxx misdetect NuttX support utimensat(_LIBCPP_USE_UTIMENSAT).
This patch need be reverted after utimensat is supported in NuttX.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-29 06:33:49 -03:00
Xiang Xiao
307cc61893
fs: Add fchstat and chstat callback into mountpt_operations
...
and implement all status related change function. the individual
file system change will provide in other upcoming patchset.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I8fde9db8eba9586e9c8da078b67e020c26623cf4
2021-07-29 06:33:49 -03:00
raiden00pl
68a345e248
nucleo-g431rb: add CORDIC example
2021-07-28 20:02:40 -03:00
raiden00pl
f9937b28cc
stm32g4: add CORDIC driver
2021-07-28 14:23:13 -03:00
raiden00pl
919008c51e
add upper-half CORDIC driver
2021-07-28 14:23:13 -03:00
raiden00pl
6128b298ee
stm32g4: add CORDIC definitions
2021-07-28 14:23:13 -03:00
Alexander Lunev
ff2dd12c3c
bcm43xxx: fixed issues with unaligned buffers for DMA transfers.
...
This fixes the following errors:
- "stm32_dmacapable: stm32_dmacapable: burst crosses 1KiB
up_assert: Assertion failed at file:chip/stm32_sdio.c line: 2890 task: init"
- "stm32_dmacapable: stm32_dmacapable: burst crosses 1KiB
up_assert: Assertion failed at file:chip/stm32_sdio.c line: 2808 task: bcmf"
bcm43xxx: replaced all occurrences of "__attribute__((packed))" by
compiler independent "begin_packed_struct / end_packed_struct".
2021-07-28 13:47:04 -03:00
anjianjun
2866c27c19
drivers/mmcsd:Send cmd0 just once for Increased compatibility
...
Signed-off-by: anjianjun <anjianjun@xiaomi.com>
2021-07-28 08:34:09 -03:00
Jiuzhu Dong
23d87ff9df
usrwqueue: implement order work queue
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-07-27 21:01:38 -07:00
Jiuzhu Dong
00854f0f94
userspace/wqueue: move exclusive access lock to mqueue inside
...
Change-Id: I885d5641bc81fedf698c241d4719cb3561700f17
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-07-27 21:01:38 -07:00
Jiuzhu Dong
855c78bb9d
work_queue: schedule the work queue using the timer mechanism
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-07-27 21:01:38 -07:00
Jiuzhu Dong
a0c3a0923a
sched/wqueue: merge kwork_lpthread.c and kwork_hpthread.c to kwork_thread.c
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-07-27 21:01:38 -07:00
jsun
bb63afde1e
Documentation/bl602: Update some imformation; Add partition.toml in tool/bl602
2021-07-27 21:01:15 -07:00
Sara Souza
cdbfacc1fe
risc-v/esp32-c3: Adds systimer support and make rt_timer rely on it
2021-07-27 20:43:34 -07:00
anjianjun
3c393d6dfc
drivers/mmcsd:fix build error of debug
...
Signed-off-by: anjianjun <anjianjun@xiaomi.com>
2021-07-27 20:12:27 -07:00
Sara Souza
857414e95d
xtensa/esp32: expose SPI2 as a char driver
2021-07-27 09:55:49 -07:00
Michal Lenc
9fc806984c
adc: add ioctl command to get the number of configured channels
...
Number of configured ADC channels is currently only defined in board
level section, typically in xxx_adc.c file. This commit introduces
ioctl command ANIOC_GET_NCHANNELS that returns the number of configured
channels which is determined by the driver code. The change can allow the
applications to be more flexible when it comes to multiple ADC devices
with different number of configured channels.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-07-26 19:45:47 -07:00
Sara Souza
400d927011
xtensa/esp32s2: Disable wdt and wrap it.
2021-07-26 19:44:30 -07:00
Sara Souza
0794991a07
risc-v/esp32-c3: Disable wdt in the start function.
2021-07-26 19:44:30 -07:00
Sara Souza
5baeb7430b
xtensa/esp32: Wrap wdt deinitialization in a function
2021-07-26 19:44:30 -07:00
Jiuzhu Dong
7e393762a7
sim/rptun: optimize multi-core startup and don't need to wait each other.
...
Change-Id: I6172823c84a96e4082fa5f33bdb05d7bd1d3b056
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-07-26 19:38:07 -07:00
Xiang Xiao
068353bba7
drivers/rptun: Start/stop remote processor in the background thread
...
to avoid blocking the main thread initialization process
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ib8ab2a661ee9540bb03d9d4d851a8d8ee212404e
2021-07-26 19:38:07 -07:00
Gustavo Henrique Nihei
2d676f5e46
xtensa/esp32: Enable configuration of GPIO pad's drive strength
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-07-26 19:37:06 -07:00