OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 4728|回复: 4

敬请高手修改“基于STM32F4的电子阅读器”中的问题,感谢!

[复制链接]

32

主题

93

帖子

0

精华

论坛元老

Rank: 8Rank: 8

积分
4048
金钱
4048
注册时间
2015-12-21
在线时间
889 小时
发表于 2021-4-6 12:13:50 | 显示全部楼层 |阅读模式
敬请高手修改“基于STM32F4的电子阅读器”中的问题,感谢!

STM32电子小说阅读器.rar

24.85 MB, 下载次数: 472

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

22

主题

2251

帖子

0

精华

论坛元老

Rank: 8Rank: 8

积分
4471
金钱
4471
注册时间
2013-4-22
在线时间
335 小时
发表于 2021-4-6 14:54:43 | 显示全部楼层
回复 支持 反对

使用道具 举报

32

主题

93

帖子

0

精华

论坛元老

Rank: 8Rank: 8

积分
4048
金钱
4048
注册时间
2015-12-21
在线时间
889 小时
 楼主| 发表于 2021-4-6 15:25:46 | 显示全部楼层
本帖最后由 zlkj 于 2021-4-6 15:30 编辑

compiling main.c...
main.c(253): warning:  #167-D: argument of type "char *" is incompatible with parameter of type "u8 *"
          res=mf_open((char *)spr_name,FA_READ);//只读打开
main.c(447): warning:  #167-D: argument of type "char *" is incompatible with parameter of type "u8 *"
                          if(mf_open(spr_buf,FA_OPEN_EXISTING)==FR_OK)
main.c(448): warning:  #167-D: argument of type "char *" is incompatible with parameter of type "const u8 *"
                                  ai_load_picfile(spr_buf,60,100,150,250,1);        //显示图片1
main.c(461): warning:  #167-D: argument of type "char *" is incompatible with parameter of type "u8 *"
                          if(mf_open(spr_buf,FA_OPEN_EXISTING)==FR_OK)
main.c(462): warning:  #167-D: argument of type "char *" is incompatible with parameter of type "const u8 *"
                                  ai_load_picfile(spr_buf,280,100,150,250,1);
main.c(477): warning:  #167-D: argument of type "char *" is incompatible with parameter of type "u8 *"
                          if(mf_open(spr_buf,FA_OPEN_EXISTING)==FR_OK)
main.c(478): warning:  #167-D: argument of type "char *" is incompatible with parameter of type "const u8 *"
                                  ai_load_picfile(spr_buf,60,450,150,250,1);//显示图片3
main.c(492): warning:  #167-D: argument of type "char *" is incompatible with parameter of type "u8 *"
                          if(mf_open(spr_buf,FA_OPEN_EXISTING)==FR_OK)
main.c(493): warning:  #167-D: argument of type "char *" is incompatible with parameter of type "const u8 *"
                                  ai_load_picfile(spr_buf,280,450,150,250,1);//显示图片4
main.c(702): warning:  #940-D: missing return statement at end of non-void function "lcd_dis_files"
  }
main.c(959): warning:  #170-D: pointer points outside of underlying object
                          if(strncmp(txt_pathname[key-1]-4+strlen(txt_pathname[key-1]),".txt",4)==0)
main.c(1007): warning:  #167-D: argument of type "u8 *" is incompatible with parameter of type "const char *"
                  if(strcmp(path,txt_path_name)==0)
main.c(1007): warning:  #167-D: argument of type "u8 *" is incompatible with parameter of type "const char *"
                  if(strcmp(path,txt_path_name)==0)
main.c(1011): warning:  #167-D: argument of type "u8 *" is incompatible with parameter of type "char *restrict"
                                  strcpy(txt_path_name[j],txt_path_name[j+1]);
main.c(1011): warning:  #167-D: argument of type "u8 *" is incompatible with parameter of type "const char *restrict"
                                  strcpy(txt_path_name[j],txt_path_name[j+1]);

回复 支持 反对

使用道具 举报

5

主题

355

帖子

0

精华

论坛元老

Rank: 8Rank: 8

积分
4504
金钱
4504
注册时间
2019-4-30
在线时间
891 小时
发表于 2021-4-6 20:48:16 | 显示全部楼层
警告多?
回复 支持 反对

使用道具 举报

8

主题

18

帖子

0

精华

新手上路

积分
49
金钱
49
注册时间
2019-9-3
在线时间
18 小时
发表于 2021-4-21 20:30:39 | 显示全部楼层
请问楼主代码烧进去能用吗
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-2-28 00:32

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表