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.
io_definitions.h@0:b0a79a3a9da8, 2018-06-13 (annotated)
- Committer:
- nerit
- Date:
- Wed Jun 13 08:41:23 2018 +0000
- Revision:
- 0:b0a79a3a9da8
- Child:
- 1:59c30e854dfb
ControlloSpandiconcime V2 Viaro
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nerit | 0:b0a79a3a9da8 | 1 | |
nerit | 0:b0a79a3a9da8 | 2 | //#Serial pc(SERIAL_TX, SERIAL_RX); |
nerit | 0:b0a79a3a9da8 | 3 | //Serial pc(D1, D0, 115200); |
nerit | 0:b0a79a3a9da8 | 4 | |
nerit | 0:b0a79a3a9da8 | 5 | InterruptIn WheelSensorPin(PB_0); //pin at which the wheel sensor is attached |
nerit | 0:b0a79a3a9da8 | 6 | InterruptIn MotorSensorPin(PB_1); //pin connected to motor sensor pin |
nerit | 0:b0a79a3a9da8 | 7 | DigitalIn OnOffPin(PB_4); //pin connected to on/off switch |
nerit | 0:b0a79a3a9da8 | 8 | PwmOut MotorPwmPin(PA_1); //pin connected to motor - this must be a digital PWM pin |
nerit | 0:b0a79a3a9da8 | 9 | DigitalIn PlusPercentPin(PB_5); //pin connected to +XX% switch |
nerit | 0:b0a79a3a9da8 | 10 | DigitalIn MinusPercentPin(PB_6); //pin connected to -XX% switch |
nerit | 0:b0a79a3a9da8 | 11 | |
nerit | 0:b0a79a3a9da8 | 12 | DigitalOut SDmotorInB(PA_7); // sd motor half bridge direction selector |
nerit | 0:b0a79a3a9da8 | 13 | DigitalOut SDmotorInA(PA_2); // SD motor half bridge direction selector |
nerit | 0:b0a79a3a9da8 | 14 | DigitalIn enDiag_A(PA_4); // SD motor fault condition input A |
nerit | 0:b0a79a3a9da8 | 15 | DigitalIn enDiag_B(PA_3); // SD motor fault condition input A |
nerit | 0:b0a79a3a9da8 | 16 | AnalogIn SDcurrent(PA_0); // SD power current feedback |
nerit | 0:b0a79a3a9da8 | 17 | DigitalOut led(LED1); |
nerit | 0:b0a79a3a9da8 | 18 | #if defined(canbusActive) |
nerit | 0:b0a79a3a9da8 | 19 | CAN can1(D10,D2,100000); // CAN BUS channel for communication with other slave and master consolle |
nerit | 0:b0a79a3a9da8 | 20 | #endif |
nerit | 0:b0a79a3a9da8 | 21 | CANMessage txMsg; |
nerit | 0:b0a79a3a9da8 | 22 | CANMessage rxMsg; |