I want to control the GPIO of LS1046A using Codewarrior.

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

I want to control the GPIO of LS1046A using Codewarrior.

233 Views
Johnson_s
Contributor III

I am thinking of using Codewarrior to control the GPIO of LS1046A. I believe that it is possible to achieve this by using Hard Coded mode.

However, even when trying to create it based on Helloworld, I cannot find the GPIO driver and I don't know how to create it.

Please help me.

Tags (3)
0 Kudos
Reply
1 Reply

210 Views
yipingwang
NXP TechSupport
NXP TechSupport

Do you mean you don't know how to develop GPIO driver for LS1046A platform?

Please refer to GPIO driver in u-boot.

https://github.com/nxp-qoriq/u-boot/blob/LSDK-21.08/drivers/gpio/mpc8xxx_gpio.c

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2164091%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EI%20want%20to%20control%20the%20GPIO%20of%20LS1046A%20using%20Codewarrior.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2164091%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EI%20am%20thinking%20of%20using%20Codewarrior%20to%20control%20the%20GPIO%20of%20LS1046A.%20I%20believe%20that%20it%20is%20possible%20to%20achieve%20this%20by%20using%20Hard%20Coded%20mode.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EHowever%2C%20even%20when%20trying%20to%20create%20it%20based%20on%20Helloworld%2C%20I%20cannot%20find%20the%20GPIO%20driver%20and%20I%20don't%20know%20how%20to%20create%20it.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EPlease%20help%20me.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2164149%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20I%20want%20to%20control%20the%20GPIO%20of%20LS1046A%20using%20Codewarrior.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2164149%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDo%20you%20mean%20you%20don't%20know%20how%20to%20develop%20GPIO%20driver%20for%20LS1046A%20platform%3F%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%20GPIO%20driver%20in%20u-boot.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-qoriq%2Fu-boot%2Fblob%2FLSDK-21.08%2Fdrivers%2Fgpio%2Fmpc8xxx_gpio.c%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-qoriq%2Fu-boot%2Fblob%2FLSDK-21.08%2Fdrivers%2Fgpio%2Fmpc8xxx_gpio.c%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E