Connect an external gyroscope \ accelerometer to ardupilot

Dear all
Could you please take a little of your time and help me with one question?
So, the question is: how to connect an external gyroscope \ accelerometer to ardupilot via SPI?

Thanking you in advance.