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 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;
Generated on Fri Jul 15 2022 00:04:59 by
1.7.2
