Add Pin property in CDE, CodeWarrior 10.6

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add Pin property in CDE, CodeWarrior 10.6

Jump to solution
593 Views
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 Solution
381 Views
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

View solution in original post

2 Replies
381 Views
OmarIsaiPinales
Contributor II

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

0 Kudos
382 Views
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