I'm trying to go through building the sample device drivers in AN3902 but I'm running into a few snags that I don't understand.
1. I created "my_null_io.c" and "my_null_io.h" as listed in the AppNote in a new folder under "C:\Freescale MQX 3.6\mqx\source\io\" ("C:\Freescale MQX 3.6\mqx\source\io\my_null_io") which should be the correct folder (I have installed MQX in "C:\Freescale MQX 3.6" and not under "Program Files" so I can update/rebuild the BSP).
2. Next I created a "Group" under "Generic IO Drivers" of the bsp project (I'm using bsp_m52223evb). This gives me the same icon as the other groups in the BSP.
3. I then added "New Files" using the "Link to the File System" option which gives me a link to the files in the "C:\Freescale MQX 3.6\mqx\source\io\my_null_io" folder (and giving me the same icons as the other "Generic IO Drivers").
When I build the BSP, I get:"make *** [Generic IO Drivers/my_null_io/my_null_io.obj] Error 1" which I believe is a result of the two warnings I get (which prevents the .c file from compiling):
"function has no prototype" - which points to the line in the .c file: "_mqx_uint _io_my_null_install" which has a corresponding line in the .h file (which I copied and pasted to ensure there were no differences).
"Invalid project path: Duplicate path entries." which is given the Location "pathentry" and doesn't make any sense.
When I delete the group I added and rebuild the project, everything works fine.
Does anybody have any idea what I'm doing wrong?