Commit Graph

1017 Commits

Author SHA1 Message Date
tangyuxin 10b5aa8f59 合并 cancel 和 cancel_delayed 函数,优化代码体积
合并 _workqueue_cancel_work 和 _workqueue_cancel_delayed_work 函数,优化代码体积
2021-02-01 15:02:17 +08:00
tangyuxin 0c87becb3e 合并 submit 和 submit_delayed,优化代码体积
将 _workqueue_submit_delayed_work 和 _workqueue_submit_work 函数合并成一个。优化代码体积
2021-02-01 15:02:16 +08:00
Bernard Xiong f9c5007cae
Merge pull request #3271 from fmkong/sensor_irq_disable
[drivers/sensor]disable irq only when the sensor and module sensors a…
2021-01-22 18:35:21 +08:00
Bernard Xiong b36aeb46a6
Merge pull request #4226 from redocCheng/master
解决添加RT_USING_MTD_NOR编译报错的问题
2021-01-22 18:24:04 +08:00
redoc a04bb0be3a
删除换行 2021-01-22 13:45:41 +08:00
redoc d0743d6090
1、【删除】多余语句 2021-01-22 13:44:15 +08:00
Trisuborn 3bf767dfe1 文本错误 2021-01-20 23:55:57 +08:00
Trisuborn 55402e19db 优化互补PWM输出功能的实现逻辑,兼容原本API,增加互补PWM使能/失能命令 2021-01-20 23:47:18 +08:00
Trisuborn 63239801d9 修改无意义代码 2021-01-20 11:24:00 +08:00
Trisuborn aed3cc162f 为stm32的PWM驱动添加对STM32H7的支持、添加互补PWM功能的支持,补全pwm_get命令 2021-01-19 17:14:32 +08:00
shuobatian 791527caca add armclang support 2021-01-11 20:07:12 +08:00
redoc 3ac86d08cb
解决添加RT_USING_MTD_NOR编译报错的问题。 2021-01-07 16:28:54 +08:00
Meco Man e3fc77f288 update serial.c 2021-01-01 17:24:26 +08:00
Meco Man a657c00e72 update pipe.c 2021-01-01 17:21:48 +08:00
Meco Man a940728162 update serial 2021-01-01 17:07:11 +08:00
Bernard Xiong 5af9540190
Merge pull request #4213 from mysterywolf/typo
Typo: rt_data_queue_peak() in dataqueue
2020-12-31 16:30:34 +08:00
Meco Man a233495718 Typo: rt_data_queue_peak() in dataqueue 2020-12-31 16:02:42 +08:00
Bernard Xiong 5fd6aec3d1
Merge pull request #4097 from zhangsz0516/zhangsz_1127
[update][PM]更新RT-Thread PM2.0框架
2020-12-31 08:33:27 +08:00
张世争 5b4845089a [update][PM]更新RT-Thread PM2.0框架 2020-12-30 15:21:17 +08:00
Bernard Xiong 94ba15a80b
Merge pull request #4062 from luanxg/lxg_dev
[update] 获取timer count时,防止因中断到来导致overflow更新
2020-12-29 08:27:11 +08:00
yangjie eeaf1fcc50 resolve Conflicts
bsp/nrf52832/board/Sconscript
	bsp/nrf52832/startups/Sconscript
	bsp/raspberry-pi/raspi4-32/driver/SConscript
2020-12-28 12:02:31 +08:00
tyustli 48d7cf4af9 【修改】解耦 touch 和 pin 2020-12-25 17:31:16 +08:00
Prry a38e7768ac 缩进由“TAB键”改用为“空格” 2020-12-20 22:23:28 +08:00
yangjie ef62febf1f [SConscript]update group name 2020-12-19 16:49:11 +08:00
Prry e7ed764254 添加TOF传感器描述信息 2020-12-19 12:23:37 +08:00
Bernard Xiong 57ddea482f
Merge pull request #4150 from mysterywolf/setwin
[ioctl] add TIOCSWINSZ
2020-12-14 15:05:47 +08:00
mysterywolf 1404d208db [ioctl] add TIOCSWINSZ 2020-12-14 01:13:51 +08:00
Bernard Xiong 2a4b6453b0
Merge pull request #4145 from thread-liu/action
[Audio] Header files are repeatedly included
2020-12-11 17:38:09 +08:00
Bernard Xiong e2d951ad2a
Merge pull request #3929 from geniusgogo/i2c_update
[dirver/i2c] i2c driver support bus lock, STOP control
2020-12-10 22:44:04 +08:00
thread-liu c827a42a18 [update] audio deficiency head file, compile fail. 2020-12-10 16:56:59 +08:00
liuduanfei 1f7a8e46a4
Update audio.c
修改注释错误 repaly ---> replay
2020-12-07 11:50:15 +08:00
Bernard Xiong 497806c883
Merge pull request #4055 from DavidLin1577/patch-18
[components/drivers]fixed re-include '.h' file of audio
2020-12-05 14:56:52 +08:00
Bernard Xiong fbab9c8c11
Merge pull request #4054 from DavidLin1577/patch-17
[components / drivers]update audio_mic.c
2020-12-05 14:55:37 +08:00
张世争 9609bc032a [RTC alarm]alarm功能优化,SOFT_RTC增加alarm功能 2020-12-03 17:52:03 +08:00
Bernard Xiong 9d60727058
Merge pull request #4109 from bigmagic123/fix_raspi4
Fix raspi4
2020-12-03 08:10:37 +08:00
tangyuxin c3ba2b07fa [components][workqueue] Modify system work queue initialization level 2020-12-02 14:30:31 +08:00
bigmagic 7a1f0e0f67 when flag is RT_DEVICE_FLAG_STREAM, paser '\n' break! 2020-12-02 10:11:38 +08:00
Bernard Xiong 2ee715c411
Merge pull request #4088 from loogg/mlw
add 'rt_ringbuffer_peak' API
2020-12-02 07:35:07 +08:00
guozhanxin bb016927f8 Improve the clock Settings for switching to high speed mode in the SDIO framework. 2020-11-27 17:28:49 +08:00
Bernard Xiong 0228f7b31d
Merge pull request #4044 from zhangsz0516/zhangsz_1120a
[rtc.alarm][fix]fix alarm when update datetime
2020-11-25 16:24:47 +08:00
张世争 945053a833 [components][PM][Update]优化PM电源模式选择 2020-11-23 21:41:19 +08:00
malongwei d6c8b46dad add 'rt_ringbuffer_peak' API 2020-11-22 14:20:02 +08:00
luanxueguang accb73d8df [update] 获取timer count时,防止因中断到来导致overflow更新 2020-11-21 17:44:52 +08:00
David Lin 9f5d860d04
Update audio.c 2020-11-21 16:07:03 +08:00
David Lin 7f1aa82a88
Update audio_pipe.c 2020-11-21 16:05:24 +08:00
David Lin db71258051
[components / drivers]fixed re-include of audio 2020-11-21 16:00:40 +08:00
David Lin f086765401
Update cdc_vcom.c 2020-11-21 15:37:45 +08:00
David Lin b10c9b7b63
Update hid.c 2020-11-21 15:36:56 +08:00
David Lin cc6b6a6ee3
Update hid.c 2020-11-21 15:36:26 +08:00
David Lin da464e6cc3
Update mstorage.c 2020-11-21 15:35:53 +08:00
David Lin 107b2063c1
Update winusb.c 2020-11-21 15:32:09 +08:00
David Lin f273e52614
Update audio_speaker.c 2020-11-21 15:30:12 +08:00
David Lin b73775da85
Update audio_mic.c 2020-11-21 15:29:45 +08:00
David Lin 626e8537f0
[components / drivers]update audio_mic.c
1. delete '#include <rtservice.h>', because rtthread.h had include rtservice.h;
2. delete '#include <rtthread.h>', because rtdevice.h had include rtthread.h.
2020-11-21 15:25:27 +08:00
张世争 e8eb74da58 [rtc.alarm][fix]fix alarm when update datetime 2020-11-20 09:02:20 +08:00
guozhanxin 3952fd780f [fix] When enable audio and usb at the same time. The warning <"MIN" redefined> is shown. 2020-11-18 11:13:28 +08:00
Bernard Xiong 3700283812
Merge pull request #3924 from qiyongzhong0/fix_bug_of_dataqueue
Fix bug of dataqueue
2020-11-18 08:09:34 +08:00
Bernard Xiong 37ecf07992
Merge pull request #4028 from zhangsz0516/zhangsz_1117
[componets/drivers/touch]完善Touch设备命令
2020-11-18 08:07:54 +08:00
张世争 10862586bf [componets/drivers/touch]完善Touch设备命令 2020-11-17 08:34:30 +08:00
Bernard Xiong 065488e746
Merge pull request #3956 from xfwangqiang/gcc-fix
[Components]&&[BSP][imxrt]add ethernet configuration for imxrt1064-nxp-evk
2020-11-13 07:10:16 +08:00
Bernard Xiong 4b2b9a87c6
Merge pull request #3871 from OpenNuvoton/rtt_usbhost_issue
Fix USB host core bugs.
2020-11-07 14:42:37 +08:00
Bernard Xiong 932e14acb4
Merge pull request #3964 from zhangsz0516/zhangsz_1015
add alarm flags, alarm can repeated by hour minute and second
2020-11-03 07:55:41 +08:00
SimpleInit c495d5a247 1.Add sensor vendor MAXIM.
2.Fix: When printing sub-zero temperature, "-" is displayed after ".".

Signed-off-by: SimpleInit <63694297@qq.com>
2020-10-20 20:55:34 +08:00
张世争 8d3f687abb add alarm flags, alarm can repeated by hour minute and second 2020-10-15 14:37:00 +08:00
WangQiang 10fb49318c 修改了一些文件头的copyright信息和Change Log 2020-10-14 10:27:17 +08:00
WangQiang 502378cf93 1. 抽象了PHY的设备模型,在components中增加了PHY设备的相关代码以及KCONFIG配置和SConscript脚本
2. 在IMXRT的Libraries中增加了peripherals目录,用于具体型号的设备驱动相关的代码的实现,不应与MCU的平台相关,实现PHY的设备对象中的相关接口。
3. 修改了BSP中的Sconstruct文件,增加了peripherals目录的构建
4. 修改了KEIL环境的SCT文件,用于实现以太网功能
2020-10-12 19:17:00 +08:00
qiyongzhong0 77f0814992 Merge branch 'master' of https://github.com/RT-Thread/rt-thread into fix_bug_of_dataqueue 2020-09-29 12:35:13 +08:00
Bernard Xiong aa05fc1469
Merge pull request #3675 from DavidLin1577/patch-10
[drivers/usb]Fixed a bug may cause stackover flow
2020-09-27 08:23:55 +08:00
Bernard Xiong 08688f7095
Merge pull request #3712 from egbert-h/master
mstorage.c: fix bug in device descriptor that MAC OS enumeration failed.
2020-09-27 08:23:14 +08:00
xieyangrun 54c6e7d145 [dirver/i2c] i2c driver support bus lock, STOP control 2020-09-23 17:17:20 +08:00
qiyongzhong0 967cc968e8 fix difference of style 2020-09-18 09:45:47 +08:00
qiyongzhong0 44baf269f7 fix bug of dataqueue 2020-09-18 09:33:34 +08:00
Bernard Xiong 8afb8b1e29
Merge pull request #3918 from SimpleInit/master
删除非对齐地址访问语句和__CORTEX_M宏定义判断
2020-09-17 14:18:46 +08:00
Bernard Xiong 13c27246c8
Merge pull request #3916 from willianchanlovegithub/Willianchan
[drivers/serial]add a line feed to the carriage return character when…
2020-09-17 07:54:45 +08:00
SimpleInit a70808ce9e 删除非对齐地址访问语句和__CORTEX_M宏定义判断
Signed-off-by: SimpleInit <63694297@qq.com>
2020-09-14 23:57:14 +08:00
WillianChan ee3d05f583 [drivers/serial]resolve compile error
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
2020-09-14 18:17:00 +08:00
WillianChan c6b4c2ea2b [drivers/serial]modify annotation
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
2020-09-14 17:21:38 +08:00
WillianChan 183f8b9402 [drivers/serial]add a line feed to the carriage return character when using interrupt tx
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
2020-09-14 15:27:06 +08:00
luhuadong 6c25b839ee [sensor] support GPS/GNSS sensor class 2020-09-11 18:04:28 +08:00
Bernard Xiong 36cb4349a6
Merge pull request #3897 from yangjie11/yj_dev1
[components][driver/pin.c]pin 框架增加 rt_pin_get
2020-09-11 12:57:59 +08:00
yangjie 9d0b860e54 [components][driver/pin.c]pin 框架增加 rt_pin_get 2020-09-11 11:14:53 +08:00
Bernard Xiong 8ea34bf936
Merge pull request #3850 from SimpleInit/master
修复"response+1"导致STM32 HAL库SPI内存非对齐访问的hard fault
2020-09-11 09:15:32 +08:00
Wayne Lin f4d86cec7f Fix USB host core issues.
1. Limit >4 USB ports hubs.
2. Double free intf.
3. dname buffer size is too small.
4. Reset child pointer after detaching instance.
2020-09-02 17:49:17 +08:00
qiyongzhong0 c16c5b968f fix dataqueue, limit queue size to usable values (2,4,8,16...) to avoid errors when put_index exceed 0xffff. 2020-08-30 14:35:09 +08:00
SimpleInit 4a654414e3 修复"response+1"导致STM32 HAL库SPI内存非对齐访问的hard fault 2020-08-26 21:03:15 +08:00
thread-liu fcd844f982 update error SFUD support manufacturer (Micronix -> Macronix) and add MX25L51245G sfud flash info. 2020-08-15 14:34:19 +08:00
Bernard Xiong d463a5a0ba
Merge pull request #3802 from liuduanfei/master
Change I2C configuration hierarchy
2020-08-13 18:18:10 +08:00
liuduanfei 27a6ebf4b1
Update Kconfig 2020-08-05 10:06:20 +08:00
liuduanfei 719b71a015
Update Kconfig 2020-08-04 15:11:48 +08:00
liuduanfei ba5f2a5bb6
Update Kconfig
Change I2C configuration hierarchy
2020-08-04 15:10:43 +08:00
tangweikang b2a9b8308e [components][usb] word error : PROERTY -> PROPERTY 2020-08-04 11:01:22 +08:00
zhiweih 814b646d17
Specify date string length in FINSH date command.
libc ctime returns a fixed 25 character string without a NULL terminator. Print it without specifying length in FINSH date command prints extra contents and could potentially be dangerous.
2020-07-27 23:09:26 +08:00
tangweikang 43c0118e8f [components][wlan] Fix for rt_wlan_event_dispatch() not passing user_buff. | 修复 rt_wlan_event_dispatch() 未传递 user_buff 的问题。 2020-07-17 15:29:22 +08:00
luhuadong cc15a1b59c [sensor] fixed sensor cmd delay time 2020-07-08 22:53:02 +08:00
armink 5f756ca50e [DeviceDriver][SFUD] Update the 'sf bench' command. 2020-07-06 20:25:18 +08:00
luhuadong f2070beb54 [Sensor] Add two concentration unit ppm & ppb 2020-07-04 17:14:31 +08:00
luhuadong 1fde73a93c [Sensor] Add AMS sensor vendor info 2020-07-04 16:48:05 +08:00
hphuang 0bfb881168 merge latest usb class with workaround 2020-07-03 11:13:24 +08:00
thread-liu a84d575314 [update] format code 2020-06-24 12:53:24 +08:00
thread-liu 2fcd940b57 [update] add drivers for stm32mp1. 2020-06-23 11:26:11 +08:00
hphuang 6cafbf07ce mstorage.c: fix bug in device descriptor that MAC OS enumeration failed. 2020-06-22 15:25:29 +08:00
armink 02c8084138 [SFUD] Update the flash chip information table. 2020-06-13 16:03:46 +08:00
armink b7a9312be6 [SFUD] Update rt_sfud_flash_probe_ex API 2020-06-13 12:07:20 +08:00
armink 6a9e081ec5 [SFUD] Add new probe API (rt_sfud_flash_probe_ext) for using user SPI configuration. 2020-06-13 11:50:30 +08:00
armink 930de79000 [SFUD] Update the log format to rtdbg. 2020-06-13 11:36:12 +08:00
armink 179d0ee439 [SFUD] Update the W25Q64DW JEDEC ID 2020-06-13 11:28:24 +08:00
armink 202bde05ec [DeviceDriver][SPI] Fix 3 wires SPI issue. 2020-06-13 11:24:26 +08:00
luhuadong 9e7fdad8fb [Sensor] Add Plantower sensor info 2020-06-11 21:26:31 +08:00
David Lin 1703c70fd5
[ drivers/usb]Fixed a bug may cause stackover flow 2020-06-10 12:53:51 +08:00
Wayne Lin c72ee2d63c [W25Q32BV]Support fast read QUAD_OUTPUT and QUAL_IO. 2020-06-02 14:46:52 +08:00
Bernard Xiong 1ef77bd969
Merge pull request #3601 from OpenNuvoton/rtt_issues
Fix issues
2020-05-30 09:43:54 +08:00
Wayne Lin f0e4009c30 Fix rt_hw_inputcapture_isr public function name in header file.
Fix miss-break in HWTIMER_CTRL_INFO_GET case.
2020-05-20 16:04:31 +08:00
GaoJie 8aaa89a6f1 [drivers][watchdog] 修复watchdog.c 注释的一处笔误 2020-05-19 17:30:19 +08:00
Wayne Lin 5d65fe074f Merge branch 'master' of https://github.com/rt-thread/rt-thread into rtt_issues 2020-05-15 09:41:27 +08:00
Bernard Xiong 084996ddb5
Merge pull request #3565 from OpenNuvoton/rtt_issues
Get stuck issue after open-close-open CAN device.
2020-05-04 22:06:16 +08:00
Prry 040816dee8 add vendor information of sensor 2020-05-02 00:39:48 +08:00
Bernard Xiong 664bc4e9d8
Merge pull request #3569 from egbert-h/master
mstorage.c: fix the issue bug in_read_capacity()
2020-05-01 17:40:02 +08:00
Wayne Lin 39431f5a70 Rename usbd and usbh source files for IAR building issue. 2020-04-30 15:47:42 +08:00
hphuang 9d374f873c mstorage.c: fix the issue that _read_capacity() returns the wrong last valid address of storage medium 2020-04-28 19:07:08 +08:00
Wayne Lin 5bddcd378e Get stuck issue after open-close-open CAN device.
Signed-off-by: Wayne Lin <wosayttn@gmail.com>
2020-04-27 16:01:05 +08:00
David Lin e9d930070d
Update pipe.c 2020-04-13 07:20:29 +08:00
David Lin ff09587d23
[components/drivers] update pipe.c
Fixed stackover flow bug when create pipe->fifo
2020-04-12 11:58:33 +08:00
DeclanHuaChen 9545529b33 Fix some spelling mistakes 2020-04-11 16:06:32 +08:00
yangjie cb9bc38ec9 [components][serial]关闭uart时,反初始化tx_dma->data_queue,防止内存泄漏 2020-04-10 18:41:59 +08:00
Bernard Xiong 6375094569
Merge pull request #3503 from yangjie11/yj_dev
[components][dataqueue]add rt_data_queue_deinit
2020-04-10 15:41:32 +08:00
Bernard Xiong 5599bc73fa
Merge pull request #3425 from DavidLin1577/patch-1
Fixed wrong output information
2020-04-10 00:48:38 +08:00
yangjie 1d7b34f471 [components][dataqueue]修改is_init为magic数 2020-04-08 11:05:37 +08:00
yangjie dfcd38b74d [components][dataqueue]add rt_data_queue_deinit 2020-04-07 17:36:56 +08:00
Bernard Xiong 0f57faa591
Merge pull request #3484 from qz721/master
修复USB不能正常识别composite设备的bug
2020-03-30 21:20:02 +08:00
Bernard Xiong 7f6755c622
Merge pull request #3472 from DavidLin1577/patch-2
[components/usb]Fixed a stack overflow bug
2020-03-26 22:06:23 +08:00
qz721 a49ddaef96
修复USB不能正常识别composite设备的bug 2020-03-26 16:24:10 +08:00
SummerGift e5c1183350 [optimize] stm32 uart driver 2020-03-23 15:44:54 +08:00
David Lin 985a70ab15
Update hub.c 2020-03-21 20:56:31 +08:00
David Lin 10e0f28754
Update cdc_vcom.c 2020-03-21 20:54:13 +08:00
David Lin 3679dfa07e
Update ecm.c 2020-03-21 20:42:55 +08:00
Bernard Xiong 30a9ef64c1
Merge pull request #3427 from DavidLin1577/patch-2
Fixed typos in Kconfig
2020-03-21 11:45:40 +08:00
Bernard Xiong beda0899f5
Merge pull request #3397 from luhuadong/develop
[Sensor] Support custom commands for rt_sensor_control
2020-03-16 21:28:30 +08:00
Bernard Xiong cc319ac1aa
Merge pull request #3458 from shawn1221/mmc-upstream-20200316
component: sdio: fix potential ricky clock setting
2020-03-16 21:20:09 +08:00
Bernard Xiong 822d8f4002
Merge pull request #3456 from zhao0116/spi
spi: support slave mode and master mode runtime config
2020-03-16 15:34:33 +08:00
Shawn Lin 4c7106fa9d component: sdio: fix potential ricky clock setting
Currently RTT mmc stack only support Highspeed mode or
blow, which means the max speed should be 52MHz according
to JEDEC spec. Two problems show here:

(1) max_data_rate = (unsigned int)-1. The value of unsigned int
depends on compilers/arch. Moreover, it makes no sense to assume
cpu addressing width with IP clock rate limit.
(1)hs_max_data_rate was set to 200MHz.

So what should BSP drivers do if 52MHz < max_data_rate < 200MHz?
Either it blindly sets a spec-violated clock rate to drive a Highspeed
card, or just adjust the clock rate internally. Both cases are
really bad for practice.

If the card claims to support Highspeed, we set the clock to not
to exceed 52MHz. Otherwise it should be set according to
card->max_data_rate parsed by ext_csd. This patch fixes it as-is,
and also simplify the code a lot.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2020-03-16 14:45:41 +08:00
luhuadong 7c4e70b3b3 [Sensor] Add user-commands range limitation 2020-03-16 11:03:32 +08:00
Cliff Chen 1c68bd9d3c Support msc mode automatic switching
Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
2020-03-16 10:50:34 +08:00
Yifeng Zhao d906bf5b18 spi: support slave mode and master mode runtime config
support slave mode and master mode runtime config.

Change-Id: Iabadbade8997bb8e3adef8ce95f6c45f6bb35329
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
2020-03-16 10:20:03 +08:00
Shawn Lin 11277014a3 [Components] sdio: try bus width depends on host's capability
It makes no sense to try bus width if not supported by drivers or BSP,
since we know it must be failed. It saves a lot for booting in time
critical environment.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2020-03-12 09:00:41 +08:00
Shawn Lin a33bc0f321 [component] sdio: Fix mmc mount function if the whole device is a partition
If the whole sd card was formatted as a partition, current
code break out the loop mistakenly, so it skips dfs_mount_device
later. Simply remove the broken 'break' to solve this problem.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2020-03-12 09:00:33 +08:00
David Lin eb5467bece
Fixed wrong output information in core.c
rt_kprintf("alloc memery failed\n"); -> rt_kprintf("alloc memory failed\n");
2020-03-08 00:20:31 +08:00
David Lin 053ffb0527
Fixed typos in Kconfig
mesage -> message
memmory -> memory
2020-03-05 09:20:05 +08:00
David Lin 39538e036b
Fixed wrong output information
to ->too
2020-03-04 23:13:45 +08:00
David Lin f9ab9d5868
Fixed wrong output information
to -> too
2020-03-04 23:04:52 +08:00
Bernard Xiong b3d196392c
Merge pull request #3413 from luhuadong/patch1
[Sensor] Add vendor info and sensor types for cmd
2020-03-04 11:44:25 +08:00