ジャパンオープン用のメインプログラム

Dependencies:   mbed AQM1602 HMC6352 PID

Committer:
lilac0112_1
Date:
Sun Mar 27 13:04:39 2016 +0000
Revision:
38:67bc78f3c0ab
Parent:
0:ea35c18c85fc
JapanSoccerOpen2016 CatPot Program(main)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lilac0112_1 0:ea35c18c85fc 1 #ifndef _PIN_CONFIG_H_
lilac0112_1 0:ea35c18c85fc 2 #define _PIN_CONFIG_H_
lilac0112_1 0:ea35c18c85fc 3
lilac0112_1 0:ea35c18c85fc 4 //pc(Computer)
lilac0112_1 0:ea35c18c85fc 5 static PinName const monitor_tx = SERIAL_TX;
lilac0112_1 0:ea35c18c85fc 6 static PinName const monitor_rx = SERIAL_RX;
lilac0112_1 0:ea35c18c85fc 7 //led(main)
lilac0112_1 0:ea35c18c85fc 8 static PinName const led1 = PC_12;
lilac0112_1 0:ea35c18c85fc 9 static PinName const led2 = PC_10;
lilac0112_1 0:ea35c18c85fc 10 static PinName const led3 = PC_11;
lilac0112_1 0:ea35c18c85fc 11 static PinName const led4 = PD_2;
lilac0112_1 0:ea35c18c85fc 12 //write(main)
lilac0112_1 0:ea35c18c85fc 13 static PinName const stlinkTMS = PA_13;
lilac0112_1 0:ea35c18c85fc 14 static PinName const stlinkTCK = PA_14;
lilac0112_1 0:ea35c18c85fc 15 static PinName const stlinkRX = D1;
lilac0112_1 0:ea35c18c85fc 16 static PinName const stlinkNRST = NC;
lilac0112_1 0:ea35c18c85fc 17 static PinName const stlink3V3 = NC;
lilac0112_1 0:ea35c18c85fc 18 //line(bottom)
lilac0112_1 0:ea35c18c85fc 19 static PinName const lineA1 = PB_7;
lilac0112_1 0:ea35c18c85fc 20 static PinName const lineB1 = PC_13;
lilac0112_1 0:ea35c18c85fc 21 static PinName const lineC1 = PC_3;
lilac0112_1 0:ea35c18c85fc 22 static PinName const lineA2 = A0;
lilac0112_1 0:ea35c18c85fc 23 static PinName const lineB2 = A1;
lilac0112_1 0:ea35c18c85fc 24 static PinName const lineC2 = A2;
lilac0112_1 0:ea35c18c85fc 25 static PinName const lineInA = A3;
lilac0112_1 0:ea35c18c85fc 26 static PinName const lineInB = A4;
lilac0112_1 0:ea35c18c85fc 27 static PinName const lineInC = A5;
lilac0112_1 0:ea35c18c85fc 28 //ballcheck(bottom)
lilac0112_1 0:ea35c18c85fc 29 static PinName const ballcheck = PC_2;
lilac0112_1 0:ea35c18c85fc 30 //debug_switch(debug_board)
lilac0112_1 0:ea35c18c85fc 31 static PinName const selectsw1 = PC_8;
lilac0112_1 0:ea35c18c85fc 32 static PinName const selectsw2 = PC_9;
lilac0112_1 0:ea35c18c85fc 33 static PinName const debugsw1 = D15;
lilac0112_1 0:ea35c18c85fc 34 static PinName const debugsw2 = D14;
lilac0112_1 0:ea35c18c85fc 35 //motor(main)
lilac0112_1 0:ea35c18c85fc 36 static PinName const motor_rx = PA_12;
lilac0112_1 0:ea35c18c85fc 37 static PinName const motor_tx = PA_11;
lilac0112_1 0:ea35c18c85fc 38 //spi(main)
lilac0112_1 0:ea35c18c85fc 39 static PinName const SPI_slck = D13;
lilac0112_1 0:ea35c18c85fc 40 static PinName const SPI_miso = D12;
lilac0112_1 0:ea35c18c85fc 41 static PinName const SPI_mosi = D11;
lilac0112_1 0:ea35c18c85fc 42 static PinName const SPI_ss_sd = PB_12;
lilac0112_1 0:ea35c18c85fc 43 static PinName const SPI_ss_sonic = D10;
lilac0112_1 0:ea35c18c85fc 44 static PinName const SPI_ss_color = D9;
lilac0112_1 0:ea35c18c85fc 45 static PinName const SPI_ss_ir = PB_1;
lilac0112_1 0:ea35c18c85fc 46 //bluetooth(debug_board)
lilac0112_1 0:ea35c18c85fc 47 static PinName const blue_txd = D2;
lilac0112_1 0:ea35c18c85fc 48 static PinName const blue_rxd = D8;
lilac0112_1 0:ea35c18c85fc 49 static PinName const blue_reset = PB_2;
lilac0112_1 0:ea35c18c85fc 50 //lcd(debug_board)
lilac0112_1 0:ea35c18c85fc 51 static PinName const lcd_sda = D5;
lilac0112_1 0:ea35c18c85fc 52 static PinName const lcd_scl = D7;
lilac0112_1 0:ea35c18c85fc 53 //gyro(debug_board)
lilac0112_1 0:ea35c18c85fc 54 static PinName const sens_sda = D3;
lilac0112_1 0:ea35c18c85fc 55 static PinName const sens_scl = D6;
lilac0112_1 0:ea35c18c85fc 56 static PinName const sens_interrupt = D0;
lilac0112_1 0:ea35c18c85fc 57 //mouse(bottom)
lilac0112_1 0:ea35c18c85fc 58 static PinName const mouse_mosi = PB_15;
lilac0112_1 0:ea35c18c85fc 59 static PinName const mouse_miso = PB_14;
lilac0112_1 0:ea35c18c85fc 60 static PinName const mouse_slck = PB_13;
lilac0112_1 0:ea35c18c85fc 61 static PinName const mouse_ss = D4;
lilac0112_1 0:ea35c18c85fc 62 //solenoid(bottom)
lilac0112_1 0:ea35c18c85fc 63 static PinName const solenoid = PC_4;
lilac0112_1 0:ea35c18c85fc 64
lilac0112_1 0:ea35c18c85fc 65 #endif /*_PIN_CONFIG_H_*/