Declaration of function cannot work in different board