せとうちオープン用のメインプログラム

Dependencies:   mbed AQM1602 HMC6352 PID

Committer:
lilac0112_1
Date:
Sun May 01 06:30:37 2016 +0000
Revision:
0:b910276f9da2
from 2v10

Who changed what in which revision?

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