Commit Graph

337 Commits

Author SHA1 Message Date
YuQi 5debfdd84d
[TMS320F28379] implement PWM driver (#6457)
增加c28x芯片的pwm驱动
已经在TMS320F28379中通过测试
pwm设备框架增加如下方法:
#define PWM_CMD_SET_DEAD_TIME (RT_DEVICE_CTRL_BASE(PWM) + 8)
#define PWM_CMD_SET_PHASE (RT_DEVICE_CTRL_BASE(PWM) + 9)
#define PWM_CMD_ENABLE_IRQ (RT_DEVICE_CTRL_BASE(PWM) + 10)
#define PWM_CMD_DISABLE_IRQ (RT_DEVICE_CTRL_BASE(PWM) + 11)
2022-09-25 22:41:00 -04:00
Tangyuxin a4829b1c00
[fix] Fix simulator compilation warnings (#6438)
* [fix] Fix simulator compilation warnings

* Update bsp/simulator/rtconfig_project.h

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2022-09-20 10:31:11 -04:00
liYangYang d25bf469fa
[rt_drv_pwm]完善PWM框架互补输出部分代码 (#6338)
* [pwm]Improve the code

* 将与bsp无关的代码移植到框架部分

* 添加注释
2022-09-01 00:59:44 -04:00
liYangYang 6ac09a6db0
[spi]fix some bug for rt_spi_sendrecv16 (#6360)
修复 rt_spi_sendrecv16 api 对最高有效位(MSB or LSB)的处理不当造成的一些问题。

https://github.com/stm32duino/Arduino_Core_STM32/blob/main/libraries/SPI/src/SPI.cpp#L273
2022-09-01 00:36:45 -04:00
MysticBoy a0c3dc4c5b
针对 TAMAGAWA 的 Smart-Abs 设备 TS5705N50添加 2.5M 波特率 (#6294)
* 针对 TAMAGAWA 的 Smart-Abs 设备 TS5705N50添加 2.5M 波特率
2022-08-17 04:30:17 -04:00
xjy198903 840f6b997c
[nxp][imxrt1170]Fix building problem (#6297) 2022-08-17 04:28:58 -04:00
Fan Yang 666af5e29d
[DeviceDriver] Add CANFD support and correct typos (#5912)
* Add CANFD support and correct typos

- Added CANFD required fields to can.h
- Fixed typos in can.h and can.c
- Corrected all the projects affected by the typo
- Fixed wrong line-ending in some affected can driver files

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>

* update

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
Co-authored-by: Meco Man <920369182@qq.com>
2022-08-13 22:59:28 -04:00
Meco Man 067315ff40 [phy] fix the PHY_FULL_DUPLEX conflicts 2022-08-03 22:45:27 -04:00
Tangyuxin f82705db1d
[touch] 调整触摸头文件至 rtdevice.h 中 (#6180) 2022-07-23 11:48:26 +08:00
Man, Jianting (Meco) 5b6a257c20
chore: fix a typo (#6154) 2022-07-10 18:00:12 +08:00
BreederBai b2bc0dcd16
[rt_drv_pwm]增加API:增加单独设置PWM频率和脉宽的函数 (#6130)
* [rt_drv_pwm]增加API:增加单独设置PWM频率和脉宽的函数
2022-07-04 10:40:42 +08:00
Meco Man 1c95670bef [rtdevices] eliminate recursion 2022-06-22 14:48:00 +08:00
Meco Man 4f1f8566f4 [spi] fix issue report #6008
rt_spi_sendrecv8()存在可能未初始化值返回的情况
2022-06-22 11:52:06 +08:00
Man, Jianting (Meco) fb941e6d8d
[fingbuffer] fix a typo (#6075) 2022-06-17 18:46:46 +08:00
Man, Jianting (Meco) 02b176f8cb
[arduino] add comment (#6016) 2022-06-04 13:20:30 +08:00
Stanley Lwin 04a17d469a
[device][adc] implement adc_get_vref (#5988)
* add adc_get_vref

add stm32_adc_get_vref
2022-05-29 10:22:33 +08:00
Wayne 37d9921aa8
[MTD-NAND] Add private data pointer. (#5974)
* Disable TRNG function in default configuration.

* Fix building issue

* To catch context of upper file system.

Co-authored-by: Wayne Lin <wclin@nuvoton.com>
2022-05-23 01:47:07 +08:00
Stanley Lwin f92c26a60b
[adc.c] add finsh voltage conversion command (#5937)
* Update adc.c

add finsh voltage conversion command
2022-05-19 10:36:50 +08:00
lgnq 9ab2094ef6 Add RT_SENSOR_VENDOR_MELEXIS in sensor.h
Melexis is the fourth largest automotive sensor manufacturer in the world.
www.melexis.com
2022-05-18 08:43:36 +08:00
BreederBai c28b79b7d7
硬件驱动(VCOM):增加获取USB虚拟串口连接状态的接口 (#5881)
* 硬件驱动(VCOM):增加获取USB虚拟串口连接状态的接口
2022-04-28 20:30:51 +08:00
tyx 13f8a99e46 [drivers][usb] Fix compilation warning 2022-04-23 23:08:47 +08:00
Meco Man 175ca2ee09 [dac] add get resolution method 2022-04-23 23:03:59 +08:00
Man, Jianting (Meco) c2a0995545
[adc] 支持adc框架获取BSP的ADC分辨率 (#5853) 2022-04-22 22:26:41 +08:00
tyx e414cb459d [components][drivers] Update device type definition and command definition 2022-04-18 09:38:56 +08:00
Wayne 615dbe946c
Fix return value of rt_dac_write function. (#5816)
Co-authored-by: Wayne Lin <wclin@nuvoton.com>
2022-04-15 17:09:37 +08:00
Yang sheng eb2fc60207
[bsp] Make all warnings into errors with qemu-vexpress-a9 qemu-virt64… (#5785)
* [bsp] Make all warnings into errors with qemu-vexpress-a9 qemu-virt64-aarch64 and stm32f411-st-nucleo.
* [RTC] Fix compile errors
2022-04-09 00:39:00 +08:00
Tangyuxin da3d61e043
[device]Detailed classification of devices types (#5769) 2022-04-06 21:12:39 +08:00
tyx 782b9dd45a [components][sdio] Support DDR mode 2022-04-06 16:06:46 +08:00
tyx b80f581562 [compilers] Fix c/c++ compilation warnings and errors 2022-04-06 10:27:38 +08:00
tyx e896021b56 [drivers][rtc]Add comments 2022-04-06 10:26:04 +08:00
tyx 8a7babadda [drivers][rtc]Add get/set timestamp function 2022-04-06 10:26:04 +08:00
tyx 0ef4560030 [drivers][rtc] Adjust ops function input parameters 2022-04-06 10:26:04 +08:00
Tangyuxin 59e751eb2a
[sensor]Add blood pressure sensor type (#5766) 2022-04-05 19:35:23 +08:00
朱天龙 (Armink) 039efbb075
完善 Serial V2 框架 (#5770)
* [stm32] fix h7 uart V2 driver unused code.

* [DeviceDriver][serialv2] fix the serialv2 when using for console device on DMA mode.

* [stm32][art-pi] using serial v2 by default

* [DeviceDriver][SerialV2] Add termios for serial@V2 .

* [BSP][STM32] Add hardware flow control for STM32 serial@V2 driver.

* [DeviceDriver][Serial@V2] Add hardware flow control for serial V2.
2022-04-04 17:25:04 +08:00
guo b2e2ab28e5
[update] Fix some spelling mistakes. (#5738) 2022-03-29 21:29:08 +08:00
Man, Jianting (Meco) 91ea28a625
[pipe.h] 移除多余的头文件,防止形成头文件递归包含 (#5621) 2022-03-02 18:45:19 +08:00
guo 9b44734643
Merge pull request #4378 from LeeChunHei/usbh_construct
添加多過一個usb host的可能性
2022-01-26 10:39:46 +08:00
Meco Man 8bf5a28528 [workqueue] 增加rt_work_urgent 2022-01-20 20:58:46 +08:00
Meco Man 36cbc1fd2f [workqueue] time参数改为ticks,防止误解单位为ms 2022-01-20 20:58:46 +08:00
Wayne Lin 7e6ffd3447 Support multi-partition/-card mounting. 2021-12-24 05:36:12 +08:00
guo fb7b9f4fb4
Merge pull request #5318 from enkiller/1201
[components][src] Optimize interrupt disable time
2021-12-21 17:40:59 +08:00
chenyingchun0312 417efc370f [drivers/i2c] optimize i2c driver framework 2021-12-17 10:25:08 +08:00
guo 92cf02a34d
Merge pull request #5262 from ShermanShao/master
[BSP/RA6M4-CPK] 添加 CAN、RW007 的支持
2021-12-14 11:24:47 +08:00
Sherman 0f0093aa3e [UPDATE]添加新驱动、完善 BSP
- [update] 更新 template 工程配置
 - [update] 更新 PLATFORM 配置
 - [add] 添加 ra icu 驱动文件
 - [add] 增加传感器类型 IAQ、EtOH
 - [add] 添加 CAN 驱动
 - [add] 添加 RW007 驱动及使用说明
 - [fix] GCC 编译问题
 - [fix] flash 驱动
 - [fix] 修改 scons 脚本配置
2021-12-14 11:04:46 +08:00
张世争 7455e2487b [components] PM框架更新 2021-12-14 06:12:55 +08:00
Meco Man 7ff976dab3 [posix] [pipe] add IPC for POSIX and add pipe for it 2021-12-14 06:12:04 +08:00
aozima 9a3d0a0ea2 cputime support 64bit. 2021-12-01 20:08:32 +08:00
tangyuxin a77cc81876 [components][drivers] format file 2021-12-01 14:41:13 +08:00
tangyuxin 5128a27c43 [components][src] Optimize interrupt disable time 2021-12-01 14:19:25 +08:00
Meco Man a1cc3d43e7 modify time.h to sys/time.h 2021-11-23 22:38:00 -05:00