sakthi priya amirtharaj
/
BAE_vr2_gingerbread2
mag n gyro included
Fork of BAE_vr2_gingerbread2 by
Diff: ACS.cpp
- Revision:
- 3:3d9e5f48b0c1
- Parent:
- 1:bd715ccef1bb
--- a/ACS.cpp Wed Dec 17 09:46:36 2014 +0000 +++ b/ACS.cpp Wed Dec 17 09:52:27 2014 +0000 @@ -2,13 +2,13 @@ #include "MPU3300.h" //PwmOut PWM1(PTD4); //Functions used to generate PWM signal - //PWM output comes from pins p6 + //PWM output comes from pins p6 Serial pc1(USBTX, USBRX); -SPI spi_acs (PTA16, PTA17, PTA15); // mosi, miso, sclk -DigitalOut SSN_MAG (D8); // ssn for magnetometer -DigitalIn DRDY (D12); // drdy for magnetometer -DigitalOut ssn_gyr (D13); //Slave Select pin of gyroscope -InterruptIn dr(D7); //Interrupt pin for gyro +SPI spi_acs (PIN16, PIN17, PIN15); // mosi, miso, sclk +DigitalOut SSN_MAG (PIN61); // ssn for magnetometer +DigitalIn DRDY (PIN47); // drdy for magnetometer +DigitalOut ssn_gyr (PIN62); //Slave Select pin of gyroscope +InterruptIn dr(PIN81); //Interrupt pin for gyro PwmOut PWM1(A3); //Functions used to generate PWM signal PwmOut PWM2(A4); PwmOut PWM3(A5); //PWM output comes from pins p6