How to use the components with sensor fusion library

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

How to use the components with sensor fusion library

跳至解决方案
2,306 次查看
andersonrosa
Contributor II

Hellow guys,

 

I'm starting to use the SFL with KDS3.0 and I didn't find a documentation about the components, like LED_RED. For example, if I want to turn the led red on, I think need to use LED_RED_SetVal, but I don't know how to use the arguments.

标签 (1)
0 项奖励
回复
1 解答
1,782 次查看
michaelestanley
NXP Employee
NXP Employee

Anderson,

Look at mqx_tasks.c, which toggles LEDs.  Examples include:

// switch the red LED on (line low sets LED on)

LED_RED_ClrVal(NULL);

LED_GREEN_SetVal(NULL);

LED_BLUE_SetVal(NULL);

If you try to set them elsewhere, you probably want to remove them from their current positions.

Regards,

Mike

在原帖中查看解决方案

0 项奖励
回复
8 回复数
1,782 次查看
andersonrosa
Contributor II

Thanks guys. I'm going up in my studies.

0 项奖励
回复
1,782 次查看
Deejay
Contributor III

Hi Anderson,

Check for the "documentation" directory under sample projects like FSFK-KL26Z or similar. This should be located where you installed the SFL for Kinetis MCUs.

pastedImage_0.png

pastedImage_1.png

Hope this helps.

Cheers,

Devan

1,782 次查看
andersonrosa
Contributor II

Devan, help me please. This folder is not at the directory.

0 项奖励
回复
1,782 次查看
michaelestanley
NXP Employee
NXP Employee

Anderson,

We didn't ship any documentation under the CodeWarrior and KDS projects in the fusion kit.  Devan may be refering to documentation created via Processor Expert.

Our "human written" documentation is all in the upper "docs" directory.  The best one to start with is docs/XSFLK_UG.pdf, which is the user guide.

Mike

1,782 次查看
Deejay
Contributor III

Hi Anderson,

Mike is correct. Thanks Mike.

Yes the folder i was referring to was generated by the Processor Expert. You need to build the sample project to get this documentation folder.

See below for example... before and after directory structures under the sample project. FSFk-KL46Z.

Directory folders before building the project

pastedImage_0.png

Directory folders after building the project

pastedImage_3.png

Cheers!

Devan

1,782 次查看
andersonrosa
Contributor II

Thanks Devan, I found the document, but didn't help me a lot.

My problem is, I'm new in SFL, and I don't know how to use the user_task to write my application using the SFL. By the documents I need to change the user_task.c, putting my code there.

Sem título.png

But, when I remove the codes and put anything like,  from example, nothing happens.

Sem título2.png

0 项奖励
回复
1,783 次查看
michaelestanley
NXP Employee
NXP Employee

Anderson,

Look at mqx_tasks.c, which toggles LEDs.  Examples include:

// switch the red LED on (line low sets LED on)

LED_RED_ClrVal(NULL);

LED_GREEN_SetVal(NULL);

LED_BLUE_SetVal(NULL);

If you try to set them elsewhere, you probably want to remove them from their current positions.

Regards,

Mike

0 项奖励
回复
1,782 次查看
andersonrosa
Contributor II

Thanks so much!

0 项奖励
回复