device driver problem

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

device driver problem

562 Views
botaoyang
Contributor II

I want to init a device like sd card and MFS in init_task, and the device will be used in another task like new_task, as
I have tried, in the new_task I can use the sd card device.

so I want to know if this  method is posible, if it is posible, how to Implement this.

3 Replies

353 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Botao

Here is a document about how to make a new MQX driver, Please check the following document for details.

How to Make a new MQX Driver


Have a nice day,
Daniel

0 Kudos

353 Views
botaoyang
Contributor II

Sorry, this is my fault that I didn't make my problem clear. I think you didn't get the main point of my question, I know how to make MQX drivers.

My problem is that I want to init a device in init_task, but in the main_task I am not able to use the device. if I want to use this device in many different  tasks, do I have to init the device in each task, or could I init the device in init_task and can be used in other task?

If the device could be init in init_task and be used in other task, how to emplmemt this function?

0 Kudos

353 Views
soledad
NXP Employee
NXP Employee

Hello botao,

Please check the sdcard example located at the path: C:\Freescale\Freescale_MQX_4_2\mfs\examples\sdcard

I hope this helps,


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos