My own functin how to set some peripheral