Massimo Viaro / Mbed 2 deprecated Viaro_SpandiConcime_V2b

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