CXSforHPU
416ec66380
[device] add dev_ prefix for file names
2024-08-23 18:15:09 -04:00
yuanzihao
df715100f2
[BSP][HC32]add lckfb-hc32f4a0-lqfp100 ( #9119 )
...
* -以ev_hc32f4a0_lqfp176为模板进行修改
* -修改对应引脚
* -更新readme
* -update readme
* -添加 lckfb-hc32f4a0-lqfp100
2024-06-28 23:41:31 +08:00
latercomer
fe3c4d456e
bsp中option env语句替换为新语句,并同步更新了source "$xxx"语句
2024-06-20 14:40:42 +08:00
sp-cai
47ee23510c
[BSP] HC32F460 在 SConscript 补充几个源文件 ( #9042 )
...
[BSP] HC32F460 工程中增加几个源文件
2024-06-10 16:15:04 +08:00
JamieTx
3d30b56c86
[HC32] Fixed a bug about erase flash.
2024-05-16 19:15:38 -04:00
sp-cai
95f0b029b0
[BSP][HC32F460]清理已不再使用的文件
...
PWM 配置文件 pwm_tmra_config.h 已合并到 pwm_tmr_config.h 了。
2024-05-08 18:09:17 -04:00
LZerro
f190cba0ab
[i2c] adjust the timing for I2C initialization
2024-04-29 20:46:12 -04:00
chengy2
2aa66b1b4e
[HC32] support HC32F472 & remove residual files
2024-04-29 17:48:47 -04:00
Meco Man
6a9c42a19d
[bsp][drv_gpio] fix the error code return when pin number is illegal
2024-03-24 09:18:25 +08:00
kk
2549b82bd6
[pin] pin_read/write rt_uint8_t to rt_ssize_t
2024-03-23 14:50:31 -04:00
Meco Man
3f26998f9c
[bsp] update projects
2024-03-21 11:23:29 +08:00
sp-cai
cddab69d77
[BSP][HC32] drv_usart.c fix macro switch error
2024-03-07 20:26:14 -05:00
skllii
6fe69d7431
[bsp][hc32] support hc32f448
2024-02-22 12:34:35 -05:00
yangpengya
2a68f70094
[bsp][hc32]更正pin和usart初始化顺序(bug fix)
...
#8480
#8458
2024-01-16 01:00:09 +08:00
Jamie
48244f25f8
[hc32] Add some bsp drivers. ( #8480 )
2024-01-09 21:56:37 +08:00
yangpeng
7c07a97479
[bsp][hc32]更正pin和usart初始化顺序
2024-01-02 19:06:13 +08:00
梁生
7a56058c61
[bsp][hc32]优化can驱动和pwm驱动 ( #8217 )
...
**为什么提交这份PR (why to submit this PR)**
1. hc32驱动函数和rtt函数声明之间的参数类型不一致,在mdk编译时产生警告。
2. hc32的can设备,在注册时就把can中断使能了。导致can设备在打开前,就会产生中断。
3. hc32的pwm驱动,不支持PWM_CMD_SET_PERIOD和PWM_CMD_SET_PULSE指令,导致rt_pwm_set_pulse()函数返回失败。
**你的解决方案是什么 (what is your solution)**
1. 修改hc32驱动函数参数类型和声明一致。
2. 注册can设备时主动禁止can中断,因为打开设备时会主动打开中断。
3. 修改pwm驱动,增加PWM_CMD_SET_PERIOD和PWM_CMD_SET_PULSE指令支持。
2023-11-14 09:18:32 -05:00
guozhanxin
9e79333512
[project] update mdk/iar project and config.
2023-10-08 11:21:00 +08:00
Placebo27
538158bf20
[bsp] fix mismatched function types in rt_pin_ops for all drv_gpio.c ( #7457 )
2023-05-08 23:35:27 -04:00
nobody
613e5a3e51
[HUST CSE]fix:修改drv_spi.c空指针问题
2023-04-29 18:16:10 -04:00
yangjie11
95e6b69b8e
sync and update all projects ( #7138 )
...
* sync and update
2023-03-31 16:49:48 +08:00
Zxy
4ed9bc11f7
[errno code]fix that use RT_ENOSYS without - ( #7084 )
...
* [errno code]fix that use RT_ENOSYS without -
* Update bsp/airm2m/air32f103/libraries/rt_drivers/drv_hwtimer.c
---------
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2023-03-23 01:54:42 -04:00
Meco Man
deb40e8c0c
[errno code][-RT_EBUSY] fix that use RT_EBUSY without -
2023-03-22 01:55:18 -04:00
Meco Man
0f461e870c
[errno code][-RT_ERROR] fix that use RT_ERROR without -
2023-03-20 00:06:16 -04:00
Meco Man
dfddd79b24
[errno code][-RT_EINVAL] fix that use RT_EINVAL without -
2023-03-16 20:21:43 -04:00
Meco Man
2cc9bd876e
[error code][-RT_EIO] fix that use RT_EIO without -
2023-03-16 20:20:37 -04:00
Meco Man
f58d3c5200
rt_device_write/read return data type as rt_ssize_t
...
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-02-07 21:43:57 -05:00
Meco Man
ddccef3a64
modify RT_ALIGN_SIZE as 8 by default
2023-01-12 22:47:23 -05:00
Meco Man
592284c66c
format link scripts
2023-01-08 22:52:13 -05:00
Meco Man
9bc68d26a4
format Kconfig and sconscript
2023-01-08 22:52:13 -05:00
wdfk-prog
569e2ae1e8
[CAN]update struct can_filter_item and rt_can_msg ( #6556 )
...
* 修改ry命令,已便于自定义保存路径
* modified: components/utilities/ymodem/ry_sy.c
* 修复从被动错误恢复后发送返回异常
* 修复在自动重传模式下,ACK异常阻塞线程
- 删除TX中断函数else分支。仅当RQCP位 置一才进入该中断
- 添加SCE中断函数中关于ACK_ERR的else判断。自动重传模式下会进入该判断,打断自动重传释放完成量。
* 增加对于CAN1与CAN2的SCE中断和TX中断的公共处理函数
* formatting格式化代码
* update struct can_filter_item and rt_can_msg
1. 对过滤器号和索引号结构体定义中同一名称hdr进行重命名hdr_bank和hdr_index,
以便准确区分.采用宏定义兼容以前变量名.
2. 添加接收标识rxfifo,已指明是哪个RXFIFO.
* 更正42M下的波特率
* 修复接收获取索引号错误
* 添加接收标识
* 更新注释
* 取消CANFD限制
* update struct can_filter_item and rt_can_msg
2022-11-21 21:45:51 -05:00
Man, Jianting (Meco)
f7be5fc84b
[bsp][applications][sconscript] 整理统一sconscript格式 ( #6481 )
...
* [bsp][sconscript] 整理统一sconscript格式
* update
* update
2022-10-03 10:43:08 -04:00
Meco Man
688b6e2014
[iar] PLATFOMR更正为'iccarm'
2022-09-29 20:58:34 -04:00
liuxianliang
a4eb64b873
update the project for RT-Thread_V4.1.1
2022-08-16 19:38:48 +08:00
Meco Man
dd94198bd6
[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
2022-08-16 09:39:00 +08: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
xiaoxiaolisunny
af82606dd3
[bsp][hc32]添加hc32f460系列WDT外设驱动 ( #6158 )
...
* 添加hc32f460系列外设WDT驱动
* format kconfig
* Update drv_wdt.c
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2022-08-02 22:46:35 -04:00
梁生
c7ce44ab3a
[bsp/hc32]添加timerA的pwm驱动
2022-07-31 23:14:13 -04:00
JamieTx
50d514a8a4
modify precompile waring for uart,spi driver.
2022-07-30 14:53:34 -04:00
levizhxl
626da096d3
delet old HC32F460 bsp and modify README.md ( #6100 )
2022-06-22 09:32:21 +08:00
ueJone
956fdc60c0
接收错误中断未触发的问题
...
/* Enable error interrupt */
NVIC_EnableIRQ(uart->config->rxerr_irq.irq_config.irq_num);
上述代码使能错误接收中断后需要使能串口的接收中断`USART_INT_RX`才可以正常触发中断
2022-06-21 14:16:17 +08:00
梁生
f41cb5636f
修复hc32f460的can总线在bus off状态时死机问题,修复can滤波器设置失效问题 ( #6083 )
...
* [bsp][hc32]fix can bus driver bug.
1. 更改硬件滤波器数量为8,和手册描述一致。
2. 修复_can_control()函数,RT_CAN_CMD_SET_FILTER指令,当应用层ID超出29bit时导致滤波器失效的问题。
3. 修改_can_control()函数,RT_CAN_CMD_SET_FILTER指令,
可同时支持标准帧和扩展帧。
4. 修复can总线故障关闭时,程序一直卡在中断中无法退出的问题。
5. 针对can收发器硬件STB引脚,增加宏定义CAN1_STB_FUNC_ENABLE,适配没有STB引脚的收发器。
This reverts commit 7fcd8e9afc
.
2022-06-21 11:12:35 +08:00
梁生
3323366694
[bsp][hc32]support MDK AC6 compiler ( #6087 )
2022-06-16 14:18:55 +08:00
xiaoxiaolisunny
9d0f088e20
添加HC32F460系列RTC外设驱动 ( #6069 )
...
* 添加HC32F460系列RTC外设驱动
2022-06-15 10:38:35 +08:00
cmbjxxiao
c8d92d7529
fix bugs of hc32 driver adc and can ( #6077 )
...
* fix bugs of hc32 driver adc and can
2022-06-15 10:37:27 +08:00
xiaoxiaolisunny
5ccf6a0fa8
添加HC32F460系列ADC外设驱动支持 ( #6067 )
...
* 添加HC32F460系列ADC外设驱动支持
2022-06-13 21:13:51 +08:00
xiaoxiaolisunny
fabd8cf03e
修改格式
2022-06-13 11:33:48 +08:00
xiaoxiaolisunny
65669de0e3
[bsp][hc32]添加HC32F460系列模拟I2C外设驱动支持
2022-06-13 11:33:48 +08:00
ueJone
138925be08
修复多串口的描述符被覆盖的问题 ( #6051 )
...
[bsp][HC32] 修复使用多串口的描述符被覆盖的问题
2022-06-09 14:32:37 +08:00
xiaoxiaolisunny
3151d01d85
修改USART2_RX_PIN
2022-06-09 07:05:23 +08:00