Main Program
Dependencies: mbed AQM1602 HMC6352 PID
Diff: def.h
- Revision:
- 10:3d0714c1ac75
- Parent:
- 6:4e83c236ee57
- Child:
- 12:f7456da0517b
--- a/def.h Wed Sep 16 06:41:39 2015 +0000 +++ b/def.h Wed Sep 16 08:53:42 2015 +0000 @@ -8,29 +8,24 @@ #define KEY 0//KEYCODEは配列の最初 #define CHECK DATA_NUM-1//CHECKCODEは配列の最後 -//ロータリースイッチ 入力値 -#define NONE 0x0 -#define START 0x1 -#define DEBUG0 0x2 -#define DEBUG1 0x3 -#define DEBUG2 0x4 -#define TEST0 0x5 -#define TEST1 0x6 -#define TEST2 0x7 -#define CALIBRATION0 0x8 -#define CALIBRATION1 0x9 -#define CALIBRATION2 0xA -#define SAVE 0xB -#define STORE 0xC -#define DEFENCE0 0xD -#define ATTACK0 0xE +//Switch 入力値 +#define NONE 0x00 +#define FRONT 0x01 +#define BACK 0x02 +#define STOP 0x03 +//Lcd 設定値 #define BUFSIZE 10 #define STATE_NUM_X 0x04 #define STATE_NUM_Y 0x10 +//繰り返し割り込み +#define DUTY_NUM 1 -#define FRONT 0x01 -#define BACK 0x02 +#define DUTY_SW 0 +#define DUTY_GYRO 1 +#define DUTY_PING 2 +#define DUTY_COLOR 3 +#define DUTY_MOUSE 4 typedef struct { uint8_t ping[4]; @@ -41,6 +36,7 @@ uint16_t compass; uint8_t color[3]; uint8_t lcdpoint[2]; + uint8_t stopflag; } Record; #endif \ No newline at end of file