Masayuki Ishikawa
bec9058b4c
arch: lc823450: Replace the critical section with spinlock in lc823450_serial.c
...
Summary:
- This commit replaces the critical section with spinlock
- The logic is the same as cxd56_serial.c
Impact:
- None
Testing:
- Tested with lc823450-xgevk:bt
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-12-07 23:28:54 -06:00
Huang Qi
3d4be7089c
drivers/serial/uart_16550: Fix warning for format
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2021-12-07 23:28:33 -06:00
Huang Qi
63ab2f4308
arch/risc-v: Introduce basic support for qemu rv32
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2021-12-07 23:28:33 -06:00
raiden00pl
54e3b148e9
arch/sim/src/sim/up_assert.c: fix implicit declaration warning
2021-12-07 07:51:44 -06:00
anjiahao
9d6c92f0fa
arch:move debug.h form headfile to c file
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2021-12-07 04:01:27 -08:00
anjiahao
f9570810c0
libc/misc/err.c:add err.c to libc
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2021-12-07 04:01:27 -08:00
fenghang
c39ef4420e
1.phyplus update files to accord with the requirement of chcekpatch.sh
...
2.fix some files to fix compile warning
3.remove blueteeth header files, which are not used in nuttx core.
4.fix configs and add lost files
5.update defconfig, remove useless items
6.fix compile warning for nuttx phyplus
7.delete useless: ble, h4, zblue defconfig files form phyplus configure folder
8.fix file format check error on phyplus source code
9.fix phyplus kconfig param error
10.update configure file for nuttx
2021-12-07 01:37:29 -06:00
fenghang
073c9880a3
phyplus first submit
2021-12-07 01:37:29 -06:00
zhuyanlin
565964a12f
driver: add clk framework
...
N/A
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2021-12-07 01:35:45 -06:00
Masayuki Ishikawa
264a03f04c
boards: lc823450-xgevk: Update bt/defconfig for SMP
...
Summary:
- Remove dvfs, netinit, pipe, instrumentation, hpwork
- Add SMP related configs, ntpc
Impact:
- lc823450-xgevk:bt only
Testing:
- Tested with ostest and btstack (external)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-12-06 22:10:15 -06:00
Xiang Xiao
a6eb6df688
libc/getopt: Move struct getopt_s to include/nuttx/tls.h
...
and remove include/nuttx/lib/getopt.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-06 06:30:16 -08:00
Abdelatif Guettouche
490ac188c2
Documentation/esp32: Remove the open issues section.
...
1. Issues regarding caching: The ESP32 has no D-Cache and thus the
issues described there do not apply.
2. Issue regarding assertion: No chip does this at the moment.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-12-06 07:15:58 -06:00
zhuyanlin
043d193fff
tcbinfo:sched: fix build break
...
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2021-12-06 00:47:58 -06:00
chao.an
437a30d117
arch/tcbinfo: fix build break if task name disabled
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-06 00:47:58 -06:00
Dong Heng
698f1f76ff
risc-v/esp32c3: Refactor SPI Flash to support umask interrupt when R/W/E SPI Flash
...
This can fix BLE assert when erase SPI Flash.
2021-12-06 13:13:11 +09:00
Xiang Xiao
a0990ee416
arch: Remove the duplicated up_tls_info implementation
...
Define up_tls_info in arch/arch.h directly if the general one isn't suitable
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-05 20:59:53 -06:00
Xiang Xiao
19e5ee6ce0
arch: Remove FILE dump code from _up_dumponexit
...
since the kernel build can't access the userspace memory
inside other process directly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-06 11:23:58 +09:00
Xiang Xiao
1ba1f3f24b
tools/size_report.py: Fix the lint error
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-05 16:55:52 +01:00
Xiang Xiao
9bc00c4b58
tools: Rename size_report to size_report.py
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-05 16:55:52 +01:00
Huang Qi
a24005b70b
drivers/serial: Fix offset calculation in 16550
...
Signed-off-by: Huang Qi <no1wudi@qq.com>
2021-12-05 07:02:40 -06:00
Petro Karashchenko
e71b66c792
drivers/mtd: add MTD null driver support
...
- fix memory leak during RAM MTD initialization
- fix calculations for FILE MTD device with customized
block and erase sizes
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-05 03:11:02 -06:00
raiden00pl
59786bf208
boards/nucleo-f302r8: add 3ph Hall sensor support
2021-12-04 08:51:25 -06:00
ligd
4dfefb4e06
boards/sim: update sim for 'merge hostfs_rpmsg to rpmsgfs'
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-12-04 01:04:18 -06:00
ligd
985cc4fc6d
hosfs_rpmsg: merge hostfs_rpmsg to rpmsgfs
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-12-04 01:04:18 -06:00
Lingao Meng
5ed85ef476
tools: Adapt Zephyr/zephyr to Nuttx/nuttx
...
Adapt Zephyr/zephyr to Nuttx/nuttx
Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
2021-12-03 08:16:52 -06:00
Lingao Meng
87772796e3
tools: Add size report script
...
Add a resource statistics script, which can be used to
analyze the resource occupation of ELF files, including
BSS, data, ROM, etc.
Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
LICENSE: Add size_report to license file
Declare license for intel Corporation.
Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
2021-12-03 08:16:52 -06:00
futerigele
06fc3eb1c3
input/touchscreen: added touchscreen gesture
...
added touchscreen gesture
Signed-off-by: futerigele <futerigele@xiaomi.com>
2021-12-03 01:20:02 -06:00
anjiahao
9f4d236531
sched_waitpid:delete debugassert
...
If a task registers SIGCHLD, uses waitpid(-1)
in the handler, and the task also calls waitpid,
it will fail to delete the child function
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2021-12-03 01:17:15 -06:00
Abdelatif Guettouche
50d217a9e8
esp32_cpustart.c: Improve comments around the usage of the inter-cpu
...
startup handshake.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-12-02 11:21:49 -06:00
Abdelatif Guettouche
b34951e3a0
esp32_cpustart.c: Remove the CONFIG_SMP condition on some part of code
...
because the whole file is only built if CONFIG_SMP is enabled.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-12-02 11:21:49 -06:00
baggio63446333
917f1a64ad
libdsp: Fix compile error with the standard math library
...
The libdsp uses M_PI_F and M_PI_2_F which are defined only in the NuttX
math library. Fix an compile error when CONFIG_LIBM is disabled and the
other math library is used.
2021-12-02 12:49:27 +01:00
Xiang Xiao
b65c7c26cf
arch: Dump task name through tcb_s::name instead of argv[0]
...
since argv is defined in task_tcb_s not tcb_s
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-01 16:04:15 +01:00
Aaron Rumpler
61647475ad
README.md: Fix typo in macOS section
2021-12-01 06:54:41 -06:00
Aaron Rumpler
422b596987
tools/rp2040: Compile with C++14
2021-12-01 06:54:41 -06:00
buyuer
b9345c64c8
Add cinttypes header file for mini-cxxlib.
...
Signed-off-by: buyuer <dingddding@163.com>
2021-12-01 06:51:51 -06:00
Sebastien Lorquet
437424d234
Support multiple SST26 devices on the same spi bus
2021-11-30 18:45:27 +01:00
Simon Filgis
46c36e2603
c++ style comment
2021-11-30 10:44:40 -06:00
Simon Filgis
0e327b18c0
added special registers of KSZ8061 ethernet phy
2021-11-30 10:44:40 -06:00
Sebastien Lorquet
7f11255662
fix overflow checks in mtdpart
2021-11-30 10:43:27 -06:00
Petro Karashchenko
d4a5003376
board/same70-xplained: MCUboot related improvements
...
- simplify LDSCRIPT file name selection
- rename CONFIG_SAME70XPLAINED_APP_FORMAT_MCUBOOT to
CONFIG_SAME70XPLAINED_FORMAT_MCUBOOT
- fix usage of SAME70XPLAINED_PROGMEM_OTA_PARTITION
config option
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-29 23:53:46 -06:00
Gerson Fernando Budke
c3307fce6b
arch/arm/Kconfig: Add ARCH_HAVE_PROGMEM config
...
The Atmel samv7 implements progmem functionality. However, there is
missing ARCH_HAVE_PROGMEM Kconfig symbol. This add missing symbol.
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-11-29 21:31:08 -06:00
anjiahao
c2bcef4db8
include/stdio:add setlinebuf marco
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2021-11-29 11:18:36 -06:00
Petro Karashchenko
4b2b7d1d91
boards/same70-qmtech: add support of SAME70 QMTECH board
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-29 11:17:47 -06:00
Petro Karashchenko
31809724e1
boards/same70-xplained: disable systick before loading MCUboot application
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-28 20:33:53 -06:00
Gerson Fernando Budke
5c1cefd09d
boards/arm/samv7/samv71-xult: Set console at usart1
...
Set default console port to USART1. This allows easy access to serial
console by embedded debug CDC-ACM driver.
The README is updated with correct information about PB04 use once
samv71-xult can only be debugged using SWD mode. This means that it is
safe use CDC-ACM as default serial console.
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-11-28 20:32:13 -06:00
Xiang Xiao
54eabf9616
libc: Add mknod implementation
...
https://pubs.opengroup.org/onlinepubs/007904875/functions/mknod.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-28 23:31:16 +01:00
Petro Karashchenko
fae27cc945
arch/samv7: fix unaligned address write for progmem interface
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-28 11:04:28 -06:00
Xiang Xiao
5da9dbe57a
libc/gets: Remove the unnecessary cast
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 16:07:39 -03:00
Xiang Xiao
b5f6dcb523
libc/getdelim: Remove __KERNEL__ check since it shouldn't be called inside kernel
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 16:07:39 -03:00
Petro Karashchenko
919aeced30
boards/same70-xplained: fix usage of SAMV71XULT instead of SAME70XPLAINED
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-27 16:06:48 -03:00