android snesor hal code based on freescale BSP