Commit Graph

3785 Commits

Author SHA1 Message Date
Xiang Xiao 5bdf084aed 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>
2021-01-13 16:12:36 +08:00
Xiang Xiao 09be85dcba Fix nxstyle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Idf0acfc238d8598084b5d5c42e0a5e0045d98490
2021-01-13 16:12:22 +08:00
Xiang Xiao a2c724bd27 bluetooth: Remove the unnecessary forward reference
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-13 16:10:41 +08:00
Xiang Xiao 18badb068e fs: Make nx_vxxx and file_vxxx as internal functions
these functions are the implementation detail and then
don't need expose to external

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ief832391d5b42d1f1645907eb465631650490234
2021-01-13 14:02:24 +08:00
chao.an 1c33ac85f0 wireless/bluetooth: fix nxstyle warning
Change-Id: Ie7e2b535297a3ad8696dc574b768471fc44bba9e
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-11 13:53:11 +08:00
chao.an 60f03d2a92 wireless/bluetooth: add more hci event definitions
Change-Id: I35c034762335cf72f2d46ea383f0136361506e1e
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-11 10:18:11 +08:00
chao.an 8b671fd79c wireless/bluetooth: remove the host dependency
Change-Id: I2f7073731fdf920ea69d79462275468f83f2cc4c
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-11 10:18:01 +08:00
ligd 87694f68a7 mqueue: add file_mq_xx for kernel use
Change-Id: Ida12f5938388cca2f233a4cde90277a218033645
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-01-08 14:31:37 +08:00
Xiang Xiao 0af4d1e617 fs: Remove the special hack for pty in nx_vopen
let's replace the content of file in place instead

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I538910d55815c7aec656c05dba4eab2fa1d6d964
2021-01-08 11:17:57 +08:00
Xiang Xiao 028c6aa6e6 fs: Add file_pipe function
so pty don't need call nx_pipe and then file_detach

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ibb8d108abd76bafe53897e5fca35babcf3e1bae9
2021-01-08 11:16:15 +08:00
Xiang Xiao 085543a156 Move the declaration of nx_mkfifo/nx_pipe to nuttx/fs/fs.h
the new location is better than nuttx/drivers/drivers.h
since they are part of the file system api.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-08 11:16:03 +08:00
ligd 6cc8b30aaf serial: fix build break caused by previous patch
serial/serial_dma.c: In function 'uart_check_signo':
serial/serial_dma.c:82:18: error: 'SIGINT' undeclared (first use in this function)
   82 |           return SIGINT;
      |                  ^~~~~~

This is canused by:
remove #include <nuttx/mqueue.h> from include/nuttx/fs/fs.h in:
d1ede9ac904d331ee6b22343f5d7f0ead7a113a6

Change-Id: I20260ad3bcceb30207c9c12041dd95de41e13777
2021-01-02 21:14:21 +08:00
zhongan ae82517934 drivers/serial/uart_16550.c: fix complie warning.
N/A

Change-Id: I2c72d49734e7b3a534845ca3cddfe723f9789ba8
Signed-off-by: zhongan <zhongan@xiaomi.com>
2020-12-24 17:16:35 +08:00
chao.an 093e8b994f crypto/arc4random: rename getrandom to arc4random_buf
Change-Id: I5c9f0c9acf5af71f01beceaf06ebe0a2c87676bc
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-12-12 14:38:19 +08:00
chao.an a44376ad2d Revert "libs/libc: correct the getrandom(2) prototype"
This reverts commit 8411ef1873.

Signed-off-by: chao.an <anchao@xiaomi.com>
Change-Id: I29e90e01f3b8a0460ee53831d38d96edf7d12ef2
2020-12-12 12:13:42 +08:00
chao.an 511d65392a libs/libc: correct the getrandom(2) prototype
Reference here:
https://man7.org/linux/man-pages/man2/getrandom.2.html

Change-Id: I25b913c4b6533b3888cb2b9c62bb71505a0815c9
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-12-07 14:44:25 +08:00
Huang Qi 099c051473 drivers/audio: Make audio_null play at real speed
N/A
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I69a52ee2b03836006f613c4dc41837b6123ad2d5
2020-11-30 17:31:21 +08:00
chao.an 90dc86655c style/Makefile: remove unnecessary trailing whitespace
N/A

Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-30 11:20:05 +08:00
liuhaitao c24f178af7 Merge remote-tracking branch 'mirtos/master' into dev
Change-Id: I85394b24ce27d20ecbb130b85d844ab540507031
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-11-25 14:44:27 +08:00
ligd 09778c38b1 rptun: fix rptun rpmsg_unregister_callback fault
N/A

Change-Id: I6447e2ec71a4020533336f35e2aa97a860742e63
Signed-off-by: ligd <liguiding1@xiaomi.com>
2020-11-24 21:52:29 -08:00
dongjiuzhu 148afd9548 driver/sensors: support custom type of sensor.
For examples, the custom sensor could define:
struct custem_event_s
{
  uint64_t timestamp;
  int16_t adc[8];
};
struct sensor_lowerhalf_s g_lower =
{
 .buffer_size = 1024,
};
sensor_custom_register(lower, "/dev/sensor/custom0", sizeof(struct custem_event_s));

Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-11-24 13:23:15 -03:00
YAMAMOTO Takashi 86c16667f8 drivers/net/loopback.c: Fix a syslog format 2020-11-23 05:00:10 -08:00
YAMAMOTO Takashi 5c5fc00fc4 drivers/net/telnet.c: Fix syslog formats 2020-11-23 05:00:10 -08:00
YAMAMOTO Takashi 8e73a3ed4c drivers/rwbuffer.c: Fix syslog formats 2020-11-23 05:00:10 -08:00
YAMAMOTO Takashi 7f32cfa720 drivers/mtd/mtd_rwbuffer.c: Fix a syslog format 2020-11-23 05:00:10 -08:00
YAMAMOTO Takashi 5b25cf8e47 drivers/mtd/mtd_rwbuffer.c: Appease nxstyle 2020-11-23 05:00:10 -08:00
YAMAMOTO Takashi c1f8e270eb drivers/rc/dummy.c: Fix a syslog format 2020-11-23 05:00:10 -08:00
Brennan Ashton 3ebcd045b5 usb: Do not try to print verbose trace when disabled
Right now if usb tracing is enabled but verbose is disabled
a debug assert will be triggered when ever a verbose trace point
is hit.  Instead of trying to print the NULL message, just return
early.

Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-11-22 21:24:59 -08:00
YAMAMOTO Takashi ce228e5de5 drivers/mtd/smart.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi 2aaee783c9 drivers/mtd/sst25xx.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi 3ca8e3ff37 drivers/mtd/sst25xx.c: Appease nxstyle 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi c8958586a7 drivers/mmcsd/mmcsd_spi.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi d05299f37d drivers/leds/userled_lower.c: Fix a syslog format 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi 679bf60efc drivers/usbhost/usbhost_storage.c: Fix a syslog format 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi 0cfec6ee0b drivers/usbhost/usbhost_enumerate.c: Fix a syslog format 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi e2cb109dec drivers/usbhost/usbhost_enumerate.c: Appease nxstyle 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi a11c987699 drivers/mtd/smart.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi c807ad9220 drivers/mtd/smart.c: Appease nxstyle 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi fc2ae3a8dd drivers/leds/userled_upper.c: Fix a syslog foramt 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi 9b7d87738f drivers/leds/userled_upper.c: Appease nxstyle 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi a88dcb3b77 drivers/mmcsd/mmcsd_spi.c: Fix a syslog format 2020-11-22 19:01:05 -08:00
Matias N d5b6ec450f Parallelize depend file generation 2020-11-22 09:02:59 -03:00
dongjiuzhu 670254dffd driver/rc: fix bug about lirc_read
N/A

Change-Id: I0d4f5cbea993ad0d9c29c7914c12d2c228bdebda
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-11-22 01:34:04 -08:00
YAMAMOTO Takashi b48408cdeb drivers/mtd/ftl.c: Fix syslog formats 2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi 00c15a7fa1 drivers/input/button_lower.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi a9c84e1941 drivers/input/button_upper.c: Fix a syslog format 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi eadf358bdc drivers/timers/pwm.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi b286902266 drivers/mtd/ftl.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi ec448f64a1 drivers/mmcsd/mmcsd_sdio.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi 07839b6025 drivers/i2c/i2c_driver.c: Fix a syslog format 2020-11-20 22:22:53 -08:00