TIVA WARE库 bug

2019-03-24 11:12发布

今天弄了一天的GPIO复用功能。。。书上说要配置GPIOPCTL寄存器。我翻了好久发现只要库函数中的void
GPIOPinConfigure(uint32_t ui32PinConfig) 这个函数涉及到了这个寄存器。。。。。。可是,可是,可是!!!!!!这个函数的参数该写什么啊???????找不到宏,有木有。。。。翻阅datasheet...。。。。。。。。发现在 1346页有这个表格:Table 23-5. GPIO Pins and Alternate Functions
还有前面有这么一句话 Further pin muxing options are provided through the GPIO Port Control (GPIOPCTL) register which
selects one of several peripheral functions for each GPIO. For information on the configuration
options, refer to Table 23-5 on page 1346.
Note: If any pin is to be used as an ADC input, the appropriate bit in the GPIOAMSEL register
must be set to disable the analog isolation circuit.
本来英语就捉急,好不容易翻阅到了这一步。。。。。可还是不知道他妈的这个函数的参数该怎么写。。。。。。。。

跪求大神指导这个函数的使用方法。。。 此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
3条回答
F.N.尼采
1楼-- · 2019-03-24 18:55
 精彩回答 2  元偷偷看……
zgbkdlm
2楼-- · 2019-03-24 22:49
< :TI_MSP430_内容页_SA7 --> 参照pin_map.h,你就懂了
a828378
3楼-- · 2019-03-25 00:13
TIVA系列有个PINMUX软件很好用可以直接配置这个。另外调用库函数写不来的时候应该是去DRIVELIB的userguide而不是去看datasheet。翻翻tivaware的例程吧。那是你唯一可以指望的东西。

一周热门 更多>

相关问题

    相关文章