Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Viaro_SpandiConcime_V2b by
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;
Generated on Tue Jul 12 2022 21:04:29 by
