Francesco Pistone / Mbed 2 deprecated FORIGO_Modula_V6_R2C_DE_HwV5_10gen2019_2019

Dependencies:   mbed CANMsg

Revision:
7:c9fd242538d9
Parent:
5:3b95bbfe2dc9
Child:
10:d85ed006056e
--- a/iodefinition.hpp	Thu Jul 05 16:30:54 2018 +0000
+++ b/iodefinition.hpp	Thu Jul 12 06:07:14 2018 +0000
@@ -2,25 +2,24 @@
 Watchdog wd;
 
 #if defined(speedMaster)
-    InterruptIn tractorSpeedRead(PB_1);     // define interrupt pin for tractor speed calculation MASTER MODE
-    DigitalOut quinconceOut(PB_6,PullUp);                                  // sincro per quinconcio out
-    DigitalIn quinconceIn(PA_1,PullUp);
-    //DigitalOut ProvaSincro(D8,PullUp);
+    InterruptIn tractorSpeedRead(PB_1);         // define interrupt pin for tractor speed calculation MASTER MODE
+    DigitalOut quinconceOut(PA_5);              // sincro per quinconcio out
+    DigitalOut speedClock(PA_6);                // define out for speed clock repeater
+    InterruptIn DcEncoder(PB_2);                // define input for reading speed of seed wheel with fixed 25 hole
 #else
-    InterruptIn tractorSpeedRead(PA_5);     // define interrupt pin for tractor speed calculation SLAVE MODE
-    //DigitalIn quinconceIn(PA_0,PullUp);
-    //InterruptIn quinconceIn(PA_0);
-    InterruptIn quinconceIn(PB_9);
-    DigitalIn quinconceOut(PB_6,PullUp);                                  // sincro per quinconcio out
+    InterruptIn tractorSpeedRead(PB_6);         // define interrupt pin for tractor speed calculation SLAVE MODE
+    InterruptIn quinconceIn(PA_9);
+    DigitalIn quinconceOut(PA_5,PullUp);        // sincro per quinconcio out
+    InterruptIn DcEncoder(PB_2);                // define input for reading speed of seed wheel with fixed 25 hole
+    DigitalOut speedClock(PA_6);                // define out for speed clock repeater
 #endif
 
 DigitalIn TBzeroPinInputRev(PB_11);             // define input of reading zero position of distributor wheel
-//DigitalIn ElementPosition(PB_2);                // define input for reading if seed element is down or up for master module, speed clock for slave
-InterruptIn ElementPosition(PB_2);                // define input for reading speed of seed wheel with fixed 25 hole
 DigitalIn seedWheelZeroPinInputRev(PB_12);      // define input of reading zero position of seeding wheel
+DigitalIn seedLevel(PB_1);                      // define input for reading seed level on tank
+InterruptIn seedCheck(PA_7);                      // define input for reading seed passage to picks
 DigitalIn buttonUser(PC_13);                    // pulsante su scheda
 
-DigitalOut speedClock(PA_6);                    // define out for speed clock repeater
 
 InterruptIn pwmCheck(PB_13);
 PwmOut SDmotorPWM(PB_13);                       // define frequency command for seeding whell motor driver