Massimo Viaro / Mbed 2 deprecated Viaro_SpandiConcime_V3

Dependencies:   mbed

Fork of Viaro_SpandiConcime_V2b by Neri Tiziano

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers io_definitions.h Source File

io_definitions.h

00001 //#Serial pc(SERIAL_TX, SERIAL_RX);
00002 #if defined(logActive)
00003     Serial pc(D1, D0, 115200);
00004 #endif
00005 
00006 InterruptIn WheelSensorPin(D5);  //pin at which the wheel sensor is attached
00007 InterruptIn MotorSensorPin(D4);  //pin connected to motor sensor pin
00008 DigitalIn OnOffPin(D12);  //pin connected to on/off switch
00009 PwmOut MotorPwmPin(PA_1);  //pin connected to motor - this must be a digital PWM pin
00010 DigitalIn PlusPercentPin(D3);  //pin connected to +XX% switch
00011 DigitalIn MinusPercentPin(D6);  //pin connected to -XX% switch
00012 
00013 DigitalOut SDmotorInB(PA_7);                   // sd motor half bridge direction selector
00014 DigitalOut SDmotorInA(PA_2);                   // SD motor half bridge direction selector
00015 DigitalIn enDiag_A(PA_4);                       // SD motor fault condition input A
00016 DigitalIn enDiag_B(PA_3);                       // SD motor fault condition input A
00017 AnalogIn SDcurrent(PA_0);                       // SD power current feedback
00018 DigitalOut led(LED1);
00019 #if defined(canbusActive)
00020     CAN can1(D10,D2,100000);           // CAN BUS channel for communication with other slave and master consolle
00021 #endif
00022 CANMessage txMsg;
00023 CANMessage rxMsg;