完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在学习如何使用ST micros(经过多年使用PIC),我正在努力整合GPIO文件。我将stm8s_gpio.c添加到我的项目中,这修复了UNRESOLVED EXTERNAL错误,但是现在我得到一个C000和C014错误,指出''vu8''未定义。
什么是''vu8''我需要在其他地方声明它吗?如果有帮助的话,我附上了我的项目文件。 谢谢 JM 以上来自于谷歌翻译 以下为原文 I'm learning how to use ST micros (after years of using PICs) and I am struggling to integrate the GPIO files. I added the stm8s_gpio.c to my project and this fixed the UNRESOLVED EXTERNAL errors however now I get a C000 and C014 error stating that ''vu8'' is undefined. What is a ''vu8'' and do I need to declare it somewhere else? I have attached my project file if that would be helpful. Thanks JM |
|
相关推荐
2个回答
|
|
vu8以及一堆其他有用的typedef在stm8s_type.h中。当然,它似乎没有包含在任何其他标题中。
我没有找到固件库来添加任何值。如果你多年来一直在做PIC,你现在知道uP外设,并且lib提供的''help'不是很有用。我使用stm8s.h来定义我的所有I / O并直接写入寄存器。 JDF 以上来自于谷歌翻译 以下为原文 vu8 along with a bunch of other useful typedefs are in stm8s_type.h. Of course it doesn't seem to be included by any other headers. I don't find the Firmware lib to add any value. If you've been doing PICs for years you know uP peripherals by now and the ''help'' offered by the lib isn't very useful. I use stm8s.h to define all my I/O and just write the registers directly. jdf |
|
|
|
我遇到了类似的问题。最终找到硬件I / O端口寄存器映射后,Raisonance编译器无法识别标签,而是似乎已经定义了大量可能有用的可读C函数来完成这项非常简单的工作。
经典'C'复杂到无用的地步。 只是我恨C吗?这就像坐在后座上并用两把扫帚到达控制装置来驾驶你的车一样。 使用ST7上的Cosmic编译器: 开关= PBDDR;实际上将端口读入变量开关......简单呃?使用Raisonance并不那么容易。我离开Cosmic的唯一原因是他们否认了我们已经为他们的软件付费的所有知识,当PC出现故障时,我们对待我们就像暗示我们首先盗版它一样!我发誓要去其他地方。 德尔 以上来自于谷歌翻译 以下为原文 I'm having a similar problem. Having eventually found the Hardware I/O Port register map, the Raisonance compiler doesn't recognise the labels, instead it seems to have defined a load of supposedly helpful readable C functions to do what was a really simple job. Classic 'C' complicating to the point of uselessnes. Is it just me that hates C? It's like trying to drive your car by sitting in the back seat and using two brooms to reach the controls. With the Cosmic compiler on an ST7 the line:- switches=PBDDR; actually read the port into the variable switches... simple eh? Not so easy with Raisonance. The only reason I went away from Cosmic is they denied all knowledge of us having paid for their software and when the PC went down, treated us like ***t implying we'd pirated it in the first place! I vowed to go elsewhere. Del |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
1468 浏览 1 评论
2137 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1511 浏览 1 评论
2833 浏览 6 评论
5263 浏览 21 评论
364浏览 4评论
554浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
280浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
629浏览 3评论
525浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-26 23:06 , Processed in 0.756473 second(s), Total 80, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号