support pcduino samples
copy core.h from samples to fix compile issue