Xiang Xiao
5a7d988a43
fs: Remove _files_close and reuse file_close
...
to save the code space
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I08455010ba121a61b0e29334b580aa83e69a9418
2021-01-03 15:45:52 +01:00
Xiang Xiao
cfd7390676
fs: Let files_allocate return -EMFILE instead ERROR
...
since the internal function normally return the error code directly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ifccbcfb07d2f8f7d5fef1b2a867538f51b73655c
2021-01-03 11:48:35 +01:00
kzhioki
223dd0dc8f
tools/version.sh: Fix the version retrieved from git-tag
...
Fix an issue the wrong version could be retrieved from a private tag.
2021-01-03 03:04:11 -06:00
Xiang Xiao
14a3c35917
fs: Ensure fs_dupfd2 always return fd2 in the sucessful path
...
it's wrong to return file_dup2 directly since file_dup2 never return file handle
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I943537849c75d83b3d646a6a22f035187d9fd521
2021-01-03 00:03:22 +01:00
Xiang Xiao
63bc3efd25
fs: Remove inode null check from file_dup and fs_dupfd2
...
since the same check already done in file_dup2
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I7ba1309c55be1ac564f798df02fc6725c4a0d469
2021-01-03 00:03:22 +01:00
Brennan Ashton
dd26d9c9f9
BL602: Add support for system reboot modes
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2021-01-02 00:14:37 -06:00
Xiang Xiao
40516a3df9
drivers/pipes: Fix a typo error
...
"event & POLLOUT"(not "event | POLLOUT") should be used to check POLLOUT is set
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I09af7669a1c8ee46118b904d2c5946ecb99e6215
2021-01-02 02:01:52 +01:00
chao.an
1241f910ce
arch/spinlock: implement the default test-and-set semantics
...
use the default testset implement on single core platform
that does not support test-and-set, more flexibility for
SMP drivers(using spinlock) if configured in a single-core mode.
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-01 15:03:55 -06:00
Nathan Hartman
7592fc17d3
arch/stm32: Fix nxstyle errors
...
arch/arm/src/stm32/stm32_otghs.h:
* Fix nxstyle issues.
2021-01-01 18:17:03 +01:00
Nathan Hartman
588227ed7b
arch/stm32: Fix nxstyle errors
...
arch/arm/src/stm32/stm32_otgfs.h:
* Fix nxstyle issues.
2020-12-31 20:32:13 +01:00
Xiang Xiao
c647faa117
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-31 09:37:29 +01:00
Xiang Xiao
0defe43282
OS internal function should indicate the error by return negative value
...
instead to change errno value by calling set_errno
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-31 09:37:29 +01:00
Brennan Ashton
c8db3293bb
BL602: Use sig mask instead of number for AHB swrst
2020-12-30 23:27:42 -06:00
Brennan Ashton
e062bd08ce
bl602: Update register defines and drivers
2020-12-30 23:27:42 -06:00
Brennan Ashton
1473768ffc
vfs: Fix unsed label warning
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-12-30 21:20:17 -06:00
ligd
3386941a10
fs: remove INODE_IS_SPECIAL() use others instead
...
Change-Id: I949f1ad012836e6cb233d5362fe2542732b5ecf4
Signed-off-by: ligd <liguiding1@xiaomi.com>
2020-12-30 12:21:02 -06:00
ligd
f5b59e287a
fs/vfs: add nx_unlink support
...
Change-Id: If9009cb7301bb4e49bdce3aea2d56c243256f5a2
Signed-off-by: ligd <liguiding1@xiaomi.com>
2020-12-30 12:21:02 -06:00
Nathan Hartman
81224cc596
arch/stm32: Fix nxstyle errors
...
arch/arm/src/stm32/stm32_spi.h:
* Fix nxstyle issues.
2020-12-30 10:20:15 -06:00
Xiang Xiao
d9b1cb3d27
bluetooth: BLUETOOTH_BCM4343X shouldn't select BLUETOOTH_UART_SHIM
...
since bcm4343x bluetooth driver doesn't depend on uart shim driver
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-29 18:11:21 -08:00
Xiang Xiao
753cb6c22b
bluetooth: Remove BLUETOOTH_UART_BT860 from Kconfig
...
it isn't difference from BLUETOOTH_UART_OTHER, so let's use the later instead
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-29 18:11:21 -08:00
chao.an
961532a5da
arch/sim/hci: reuse the reserved fields of hci buffer
...
Reuse the reserved fields of hci buffer to avoid redundant packet type splitting
Change-Id: I79d70ae939111bb909a6e0981c50e401734590f2
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-12-29 18:10:04 -08:00
chao.an
2ca99ed1be
sim/host/hcisocket: add avail/close interface
...
Change-Id: I3d96f62c4c3c7d703bfec74952953bee4aef9c7c
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-12-29 18:10:04 -08:00
chao.an
d7b004e179
libc/dumpvbuffer: update the vector ptr correctly
...
fix a bug that the vector pointer is not updated correctly.
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-12-29 15:42:33 -08:00
Brennan Ashton
0d8dc13b67
CI: Only use approved GitHub Actions
2020-12-29 22:56:39 +01:00
Nathan Hartman
763aae8155
arch/stm32: Fix nxstyle errors
...
arch/arm/src/stm32/stm32_rtc.h:
* Fix nxstyle issues.
2020-12-29 08:36:31 -06:00
ligd
6ad1181923
serial: should include <signal.h> explicitly
...
Change-Id: I20260ad3bcceb30207c9c12041dd95de41e13777
Signed-off-by: ligd <liguiding1@xiaomi.com>
2020-12-29 04:21:42 -08:00
Virus.V
5f71e2be79
fix ci build failed
2020-12-29 01:52:09 -08:00
Virus.V
3e0a84182e
check bl602 license
2020-12-29 01:52:09 -08:00
yangyue
d354a2f19f
fix some code style
2020-12-29 01:52:09 -08:00
Virus.V
12258d72d2
Fix the BL602 mtimer frequency error.
2020-12-29 01:52:09 -08:00
Virus.V
2b8e0945a9
Fix BL602 CI Build failed.
...
Modify the default configuration in KConfig.
Sync latest commit from mainline.
Remove unused demo configuration
fixup bl602 nsh defconfig cause CICD failed
Rebase from mainline code
2020-12-29 01:52:09 -08:00
Virus.V
7e84874cb1
Reconstruct bl602 readme; move up_irq_save/restore declaration to common place
2020-12-29 01:52:09 -08:00
Virus.V
ce40edbd11
Solve the problems pointed out in the comments
2020-12-29 01:52:09 -08:00
Virus.V
417d0d4ccd
fix checkpatch warning
2020-12-29 01:52:09 -08:00
Lei Chen
58bd873729
Add Basic support for BL602(UART timer CLIC)
2020-12-29 01:52:09 -08:00
Peter van der Perk
673a4b5b39
arch: S32K/Kinetis: Fix RTC settime prescaler
2020-12-28 23:32:33 +01:00
Xiang Xiao
10adf76209
libc: Add b64_ntop and b64_pton implementation
...
implemented by many libc(e.g. freebsd, glibc, newlib)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-28 13:53:20 -03:00
Sara Souza
65f39fc0c7
xtensa/esp32: Added driver api to reload counter instantly
2020-12-28 12:08:27 +01:00
Xiang Xiao
c612c068e1
bt_uart_shim: Setup pollfd with file* correctly
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-28 10:38:42 +01:00
Xiang Xiao
c258fe0f85
bt_uart_shim: Make CONFIG_SERIAL_TERMIOS optional
...
since the caller don't always need to use setbaud callback
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-28 10:38:42 +01:00
Xiang Xiao
9f463fd3da
bt_uart_shim: Remove g_lowerstatic static variable
...
let's initialize the callback directly to save the memory
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-28 10:38:42 +01:00
Xiang Xiao
8ce2d376cc
bt_uart_shim: Don't hardcode the thread stack size
...
so let's change 1024 to CONFIG_DEFAULT_TASKSIZE
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-28 10:38:42 +01:00
Xiang Xiao
c0cd125bf3
bt_uart_shim: Support the multiple instances
...
by removing the global variables(g_n)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-28 10:38:42 +01:00
Xiang Xiao
aec3220fae
bt_uart_shim: Correct the prototype of bt_uart_shim_getdevice
...
1.Add const to the path argument
2.Return the explicit type(struct btuart_lowerhalf_s *)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-28 10:38:42 +01:00
Xiang Xiao
d85cf99a65
bt_uart: Retry the lower half operation if -EINTR is returned
...
to handle the partial write and read gracefully
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-28 10:38:03 +01:00
Xiang Xiao
1d8397a36d
bt_uart: Don't call rxdrain in the successful path
...
because the physical uart bus may receive the next packet asynchronously
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-28 10:38:03 +01:00
Xiang Xiao
ca5d8d8660
bt_uart: Fix the minor typo in bt_uart driver
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-28 10:38:03 +01:00
Xiang Xiao
6a30d7ad6b
bt_uart: Remove static variables in btuart_rxwork
...
to support mulitple bluetooth controllers
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-28 10:38:03 +01:00
Xiang Xiao
f992ff37c3
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-28 08:50:16 +01:00
Xiang Xiao
d75895586a
bluetooth: Don't call BT_LE162HOST in bt_buf_get_le16
...
since BT_GETUINT16 alredy convert the value to the little endian
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-28 08:50:16 +01:00