Add Pin property in CDE, CodeWarrior 10.6

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Add Pin property in CDE, CodeWarrior 10.6

跳至解决方案
603 次查看
OmarIsaiPinales
Contributor II

Hi, I´m making a new IO component with CDE on CodeWarrior 10.6 because I want to control pull-ups, but I don't know how add a Pin property tu select the a pin of mcu.

1 解答
391 次查看
BlackNight
NXP Employee
NXP Employee

Hello,

you don't have access to that level directly. But you can inherit to a pin like I did here:

http://mcuoneclipse.com/2013/05/04/added-write-protection-pin-to-fatfsmemsdhc/

The pull-ups then will be in the init component, see http://mcuoneclipse.com/2012/11/12/tutorial-bits-and-pins-with-kinetis/

Another consideration is that you would build your own BitIO component, and using PDD to implement the functionality. See Low-Level Coding with PDD (Physical Device Driver) | MCU on Eclipse

I'm using that already as well in some of my stuff, e.g. for DMA: First Adafruit NeoPixel Blinks with the FRDM Board | MCU on Eclipse

I hope this helps,

Erich

在原帖中查看解决方案

2 回复数
391 次查看
OmarIsaiPinales
Contributor II

Hi again, thank you very much, you helped me a lot!

0 项奖励
392 次查看
BlackNight
NXP Employee
NXP Employee

Hello,

you don't have access to that level directly. But you can inherit to a pin like I did here:

http://mcuoneclipse.com/2013/05/04/added-write-protection-pin-to-fatfsmemsdhc/

The pull-ups then will be in the init component, see http://mcuoneclipse.com/2012/11/12/tutorial-bits-and-pins-with-kinetis/

Another consideration is that you would build your own BitIO component, and using PDD to implement the functionality. See Low-Level Coding with PDD (Physical Device Driver) | MCU on Eclipse

I'm using that already as well in some of my stuff, e.g. for DMA: First Adafruit NeoPixel Blinks with the FRDM Board | MCU on Eclipse

I hope this helps,

Erich