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.
Dependencies: mbed AQM1602 HMC6352 PID
setting/extern.h@16:6900f47fa0b5, 2016-01-11 (annotated)
- Committer:
- lilac0112_1
- Date:
- Mon Jan 11 17:45:56 2016 +0000
- Revision:
- 16:6900f47fa0b5
- Parent:
- 15:88f2c525caca
- Child:
- 17:61edad76efd7
type pin number
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| lilac0112_1 | 14:6f214ea5722e | 1 | #ifndef _EXTERN_H_ |
| lilac0112_1 | 14:6f214ea5722e | 2 | #define _EXTERN_H_ |
| lilac0112_1 | 14:6f214ea5722e | 3 | |
| lilac0112_1 | 14:6f214ea5722e | 4 | #include "def.h" |
| lilac0112_1 | 14:6f214ea5722e | 5 | |
| lilac0112_1 | 14:6f214ea5722e | 6 | /*追加ライブラリ*/ |
| lilac0112_1 | 14:6f214ea5722e | 7 | #include <sstream> |
| lilac0112_1 | 16:6900f47fa0b5 | 8 | #include "math.h" |
| lilac0112_1 | 14:6f214ea5722e | 9 | #include "AQM1602.h" |
| lilac0112_1 | 14:6f214ea5722e | 10 | #include "MPU6050_6Axis_MotionApps20.h" |
| lilac0112_1 | 14:6f214ea5722e | 11 | #include "config.h" |
| lilac0112_1 | 15:88f2c525caca | 12 | #include "Pswitch.h" |
| lilac0112_1 | 16:6900f47fa0b5 | 13 | #include "PID.h" |
| lilac0112_1 | 14:6f214ea5722e | 14 | |
| lilac0112_1 | 14:6f214ea5722e | 15 | #include "adns_9800.h" |
| lilac0112_1 | 14:6f214ea5722e | 16 | #include "mpu_6050.h" |
| lilac0112_1 | 14:6f214ea5722e | 17 | #include "txrx.h" |
| lilac0112_1 | 14:6f214ea5722e | 18 | #include "loop.h" |
| lilac0112_1 | 14:6f214ea5722e | 19 | #include "loop2.h" |
| lilac0112_1 | 16:6900f47fa0b5 | 20 | #include "switch.h" |
| lilac0112_1 | 14:6f214ea5722e | 21 | #include "wordString2.h" |
| lilac0112_1 | 16:6900f47fa0b5 | 22 | |
| lilac0112_1 | 16:6900f47fa0b5 | 23 | #include "PinConfig.h" |
| lilac0112_1 | 16:6900f47fa0b5 | 24 | #include "LcdConfig.h" |
| lilac0112_1 | 16:6900f47fa0b5 | 25 | #include "MathTable.h" |
| lilac0112_1 | 14:6f214ea5722e | 26 | /*クラス*/ |
| lilac0112_1 | 16:6900f47fa0b5 | 27 | |
| lilac0112_1 | 16:6900f47fa0b5 | 28 | //pc(Computer) |
| lilac0112_1 | 16:6900f47fa0b5 | 29 | extern RawSerial pc; |
| lilac0112_1 | 16:6900f47fa0b5 | 30 | //led(main) |
| lilac0112_1 | 16:6900f47fa0b5 | 31 | extern DigitalOut LED[4]; |
| lilac0112_1 | 16:6900f47fa0b5 | 32 | //line(bottom) |
| lilac0112_1 | 16:6900f47fa0b5 | 33 | extern BusIn LineIn; |
| lilac0112_1 | 16:6900f47fa0b5 | 34 | extern BusOut LineOut; |
| lilac0112_1 | 16:6900f47fa0b5 | 35 | //ballcheck(bottom) |
| lilac0112_1 | 16:6900f47fa0b5 | 36 | extern DigitalIn BallChecker; |
| lilac0112_1 | 16:6900f47fa0b5 | 37 | //debug_switch(debug_board) |
| lilac0112_1 | 16:6900f47fa0b5 | 38 | extern Pswitch Sw[4]; |
| lilac0112_1 | 16:6900f47fa0b5 | 39 | //motor(main) |
| lilac0112_1 | 16:6900f47fa0b5 | 40 | extern Serial motor; |
| lilac0112_1 | 16:6900f47fa0b5 | 41 | //spi(main) |
| lilac0112_1 | 16:6900f47fa0b5 | 42 | extern SPI spi; |
| lilac0112_1 | 16:6900f47fa0b5 | 43 | extern DigitalOut spi_ss[4]; |
| lilac0112_1 | 16:6900f47fa0b5 | 44 | //bluetooth(debug_board) |
| lilac0112_1 | 16:6900f47fa0b5 | 45 | extern RawSerial RN42; |
| lilac0112_1 | 16:6900f47fa0b5 | 46 | extern DigitalOut RN42_Reset; |
| lilac0112_1 | 16:6900f47fa0b5 | 47 | //lcd(debug_board) |
| lilac0112_1 | 16:6900f47fa0b5 | 48 | extern AQM1602 Lcd; |
| lilac0112_1 | 16:6900f47fa0b5 | 49 | //gyro(debug_board) |
| lilac0112_1 | 16:6900f47fa0b5 | 50 | extern MPU6050 mpu; // sda, scl pin |
| lilac0112_1 | 16:6900f47fa0b5 | 51 | extern InterruptIn INT0; // INT0 pin |
| lilac0112_1 | 16:6900f47fa0b5 | 52 | //mouse(bottom) |
| lilac0112_1 | 16:6900f47fa0b5 | 53 | extern adns_9800 mouse_sensor; |
| lilac0112_1 | 16:6900f47fa0b5 | 54 | //solenoid(bottom) |
| lilac0112_1 | 16:6900f47fa0b5 | 55 | extern DigitalOut kicker; |
| lilac0112_1 | 16:6900f47fa0b5 | 56 | |
| lilac0112_1 | 16:6900f47fa0b5 | 57 | //Serial for motors |
| lilac0112_1 | 16:6900f47fa0b5 | 58 | extern int speed[4]; |
| lilac0112_1 | 16:6900f47fa0b5 | 59 | extern string StringFIN; |
| lilac0112_1 | 16:6900f47fa0b5 | 60 | //PID |
| lilac0112_1 | 16:6900f47fa0b5 | 61 | extern PID pid; |
| lilac0112_1 | 16:6900f47fa0b5 | 62 | extern Ticker pidupdate; |
| lilac0112_1 | 16:6900f47fa0b5 | 63 | //for Serial |
| lilac0112_1 | 14:6f214ea5722e | 64 | extern volatile uint8_t INdata[DATA_NUM], EXdata[DATA_NUM]; |
| lilac0112_1 | 16:6900f47fa0b5 | 65 | //for DataSet |
| lilac0112_1 | 14:6f214ea5722e | 66 | extern Record data; |
| lilac0112_1 | 16:6900f47fa0b5 | 67 | // for Time |
| lilac0112_1 | 14:6f214ea5722e | 68 | extern Timer t; |
| lilac0112_1 | 14:6f214ea5722e | 69 | extern Ticker Duty[DUTY_NUM]; |
| lilac0112_1 | 14:6f214ea5722e | 70 | extern Timeout Stp; |
| lilac0112_1 | 14:6f214ea5722e | 71 | extern double dutycycle[DUTY_NUM]; |
| lilac0112_1 | 14:6f214ea5722e | 72 | |
| lilac0112_1 | 14:6f214ea5722e | 73 | #endif /*_EXTERN_H_*/ |