Commit Graph

27 Commits

Author SHA1 Message Date
Meco Man 0f461e870c [errno code][-RT_ERROR] fix that use RT_ERROR without - 2023-03-20 00:06:16 -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 9bc68d26a4 format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
Meco Man 8cd7ee268f [gd32] 修复串口引脚定义错误的问题
https://club.rt-thread.org/ask/question/32d3a440402902f7.html
2022-08-08 10:11:46 -04:00
Man, Jianting (Meco) bb1084556f [console] 解决在没有定义RT_USING_DEVICE的情况下使用device报错的问题
* [console] 解决在没有定义RT_USING_DEVICE的情况下使用device报错的问题

* format codes

* [libc] 整理格式

* refresh projects
2022-01-09 00:20:32 +08:00
iysheng f070d64021 [bsp][gd32450z-eval] Synchronize firmware library updates 2021-06-10 00:06:50 +08:00
yangjie 75e4c9dd0a [bsp]update GPL license to Apache-2.0, and format files 2021-04-09 10:52:34 +08:00
Meco Man 2e99d2855b [gd32][drivers] auto formatted 2021-03-12 00:03:36 +08:00
linyiyang 183f9be898 [bsp][gd32450z-eval]fixed spi driver bug 2020-12-03 08:48:07 +08:00
Bernard Xiong 891e4794c0
Merge pull request #3295 from ChazJin/patch-3
Fix bug for synopsys_emac.c
2020-03-14 15:50:30 +08:00
chao_king ae90273b68
Fix bug for drv_enet.c
源文件主要存在以下问题:
1> rt_hw_gd32_eth_init函数中对MAC初始化完成后并没有修改PHY的连接状态,这会导致测试TCP例程时无法建立TCP链接,应在初始化完成后将PHY的连接状态修改成linkup;

已在GD32450Z-EVAL开发板上测试,修改后没有再出现以上问题。
2019-12-26 19:03:46 +08:00
chao_king 728e1d995d
Fix bug for synopsys_emac.c
源文件主要存在以下两点问题:
1> EMAC_init函数中对MAC进行配置时直接对寄存器进行操作,然而寄存器名称与官方文档中的寄存器名称不符,另外并没有对基于的gd32f450z开发板使用的PHY芯片DP83848进行配置,直接使用了其上电自协商的模式,而且直接配置了MAC为百兆全双工的工作模式,这里应该通过读取PHY的自协商结果来设置MAC,所以替换了GD官方的初始化函数;
2> 使用原文件编译下载至开发板后复位有概率ping不通,这是由于在初始化过程中清空发送FIFO的操作没有增加延迟导致的,所以换成了GD官方的enet_txfifo_flush函数;

已在GD32450Z-EVAL开发板上测试,修改后没有再出现以上问题。
2019-12-26 18:58:22 +08:00
armink 74874fea42 [bsp/gd32450z-eval] Remove the w25qxx driver code. 2019-05-29 14:18:29 +08:00
liang yongxiang e43200fa09 [bsp][gd32450z-eval] update bsp:
- add gcc support
  - update project because GUI had move to packages
  - enable RT_USING_USER_MAIN mode
2018-05-22 22:56:41 +08:00
Bernard Xiong 8b36b57a11 [UIEngine] move UI engine as a package 2018-03-03 16:34:01 +08:00
bernard 5e3b3b19a6 [BSP] change the type of cmd.
1. Change the type of cmd to 'int';
2. Remove RT_LWIP_USING_RT_MEM macro;
2017-10-16 13:23:03 +08:00
tanek liang 09d3599ff9 [bsp] clean code 2017-08-30 17:30:47 +08:00
tanek liang bb6283144c fix warning and update project files 2017-08-30 11:15:34 +08:00
tanek liang d766ababec update uart and spi driver 2017-08-30 11:15:30 +08:00
tanek liang b7cf7c5fc0 update eth driver and clean code 2017-08-30 11:13:55 +08:00
tanek liang c7c0edebba add spi flash driver 2017-08-30 11:10:55 +08:00
tanek liang ea2a9db341 fix eth/lcd io conflict 2017-08-30 11:10:54 +08:00
tanek liang 09f698a209 add eth driver 2017-08-30 11:10:32 +08:00
tanek liang ce4c351ebc add sdram and lcd driver 2017-08-30 11:08:16 +08:00
tanek liang b2849ad1aa update usart driver 2017-08-30 11:08:15 +08:00
tanek liang 2c056a3aad add gd32f450 bsp 2017-08-30 11:07:54 +08:00