how to add peripheral drivers to existing project

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

how to add peripheral drivers to existing project

跳至解决方案
2,402 次查看
cprogramming
Contributor I
标签 (1)
0 项奖励
回复
1 解答
1,915 次查看
ivadorazinova
NXP Employee
NXP Employee

Hello baldev patel,

please, what peripheral drivers do you have in mind?

KSDK package contains set of peripheral drivers. You can find these drivers under C:\Freescale\KSDK_1.3.0\platform\drivers

KSDK consists of the following runtime software components:

31885_KINETIS_SDK_BD.jpg

You can test these drivers under concrete board, in case of FRDM-K64F C:\Freescale\KSDK_1.3.0\examples\frdmk64f\driver_examples

or develop your own code based on the demo using KSDK Project Generator Tool​ (for creating KSDK projects or cloning KSDK projects/demos)

New Kinetis SDK Project Generator is available!

For more information about all these drivers please refer to KSDK v.1.3 API Reference Manual

I hope this helps you.

Best Regards,

Iva

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,916 次查看
ivadorazinova
NXP Employee
NXP Employee

Hello baldev patel,

please, what peripheral drivers do you have in mind?

KSDK package contains set of peripheral drivers. You can find these drivers under C:\Freescale\KSDK_1.3.0\platform\drivers

KSDK consists of the following runtime software components:

31885_KINETIS_SDK_BD.jpg

You can test these drivers under concrete board, in case of FRDM-K64F C:\Freescale\KSDK_1.3.0\examples\frdmk64f\driver_examples

or develop your own code based on the demo using KSDK Project Generator Tool​ (for creating KSDK projects or cloning KSDK projects/demos)

New Kinetis SDK Project Generator is available!

For more information about all these drivers please refer to KSDK v.1.3 API Reference Manual

I hope this helps you.

Best Regards,

Iva

0 项奖励
回复
1,915 次查看
cprogramming
Contributor I

Hello Iva,

I have FRDM-K64F board running myproject with LED flashing. What I would like to do is to add SPI driver to myproject.

I Have tried DSPI Demo on its own on FRDM-K64F  that works ok.

Thank you for your help.

Baldev

0 项奖励
回复
1,915 次查看
ivadorazinova
NXP Employee
NXP Employee

Hello baldev patel,

just include the driver to your project and to compiler settings.

I mean include e.g. #include "fsl_edma_driver.h" in main.c

include2.png

and have included correct files and paths in compiler settings:

include.png

Some useful tips for you:

I hope this helps you.

Best Regards,

Iva

0 项奖励
回复