Sample Resource Manager and Application in BSP

Hi All,
I am using QNX Momentics IDE 6.5, I have freescale BSP and freescale board. Can anyone guide me with sample resource manager driver and application, how do I compile it outside the BSP by creating a QNX C project and how to include in BSP along with application. Its an urgment, please do needful. Please share the sample resource manager driver (Thread Controlled) and application.