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 TVDctrller2017_brdRev1_ver6 by
Diff: main.cpp
- Revision:
- 24:1de0291bc5eb
- Parent:
- 21:bbf2ad7e6602
- Child:
- 25:c21d35c7f0de
--- a/main.cpp Tue May 30 03:31:27 2017 +0000 +++ b/main.cpp Thu Jun 29 01:58:49 2017 +0000 @@ -8,23 +8,25 @@ //////////////////////////////////////// //IO宣言 SPI spi(p5,p6,p7); -MCP4922 mcp(p5,p7,p9); // MOSI, SCLK, CS -DigitalOut cs(p8); -DigitalIn SDState(p10); -DigitalIn RTDSW(p11); -DigitalIn SLCTSW[3] = {p12, p13, p14}; -InterruptIn rightMotorPulse(p15); -InterruptIn leftMotorPulse(p16); +MCP4922 mcp(p5,p7,p8); // MOSI, SCLK, CS +DigitalOut ioExpCs(p9); +DigitalOut indicatorLed(p10); +DigitalOut shutDown(p11); +DigitalOut brakeSignal(p12); +DigitalOut sdState(p13); +DigitalIn RTDSW(p14); +AnalogIn apsS(p15); //"S"econdary +AnalogIn apsP(p16); //"P"rimary AnalogIn brake(p17); AnalogOut STR2AN(p18); -AnalogIn apsS(p19); //"S"econdary -AnalogIn apsP(p20); //"P"rimary -DigitalOut shutDown(p21); -DigitalOut indicatorLed(p22); -DigitalOut WDT(p23); -DigitalOut DBGLED[3] = {p24, p25, p26}; -DigitalOut RSV(p27); //予約ピン -Serial ComInpn(p28, NC); +DigitalIn SLCTSW[3] = {p19, p20, p21}; +InterruptIn rightMotorPulse(p22); +InterruptIn leftMotorPulse(p23); +InterruptIn rightTirePulse1(p24); +InterruptIn rightTirePulse2(p25); +InterruptIn leftTirePulse1(p26); +InterruptIn leftTirePulse2(p27); +DigitalOut WDT(p28); CAN can(p30, p29); DigitalOut LED[] = {LED1, LED2, LED3, LED4};