ジャイロ追加前

Dependencies:   mbed FreeRTOS

Committer:
MasashiNomura
Date:
Sat Dec 08 12:08:25 2018 +0000
Revision:
23:79e20be4bc5b
Parent:
22:24c9c2dedca9
Child:
24:c5945aaae777
2018/12/08 Add State Trans etc

Who changed what in which revision?

UserRevisionLine numberNew contents of line
takeru0x1103 0:ecd925601fc6 1 #ifndef _TYPEDEF_H_
takeru0x1103 0:ecd925601fc6 2 #define _TYPEDEF_H_
takeru0x1103 0:ecd925601fc6 3 /////////////////////////////////////////////////////////////////////
takeru0x1103 18:5aa48aec9cae 4 #include "debug.h"
takeru0x1103 0:ecd925601fc6 5
takeru0x1103 17:f9610f3cfa1b 6 //Asciiコード
takeru0x1103 17:f9610f3cfa1b 7 #define BS 0x08
takeru0x1103 17:f9610f3cfa1b 8 #define HT 0x09
takeru0x1103 17:f9610f3cfa1b 9 #define TAB 0x09
takeru0x1103 17:f9610f3cfa1b 10 #define LF 0x0A
takeru0x1103 17:f9610f3cfa1b 11 #define CR 0x0D
takeru0x1103 17:f9610f3cfa1b 12 #define SPC 0x20
takeru0x1103 17:f9610f3cfa1b 13 #define ESC 0x1B
takeru0x1103 17:f9610f3cfa1b 14
takeru0x1103 0:ecd925601fc6 15 /*
takeru0x1103 0:ecd925601fc6 16 * 共通で使用する型の定義
takeru0x1103 0:ecd925601fc6 17 *
takeru0x1103 0:ecd925601fc6 18 */
takeru0x1103 0:ecd925601fc6 19
takeru0x1103 18:5aa48aec9cae 20 typedef unsigned char UCHAR;
takeru0x1103 18:5aa48aec9cae 21 typedef unsigned short UINT16;
takeru0x1103 18:5aa48aec9cae 22 typedef short INT16;
takeru0x1103 18:5aa48aec9cae 23 typedef unsigned int UINT32;
takeru0x1103 0:ecd925601fc6 24
MasashiNomura 22:24c9c2dedca9 25 //ユーザースイッチ(ハンドル)のレジスタ読み値のビットフィールド
MasashiNomura 22:24c9c2dedca9 26 typedef union{
MasashiNomura 22:24c9c2dedca9 27 UINT16 w;
MasashiNomura 22:24c9c2dedca9 28 struct{
MasashiNomura 22:24c9c2dedca9 29 UCHAR axl_r : 1;
MasashiNomura 22:24c9c2dedca9 30 UCHAR axl_l : 1;
MasashiNomura 23:79e20be4bc5b 31 UCHAR stop : 1;
MasashiNomura 23:79e20be4bc5b 32 UCHAR y_ctrl : 1;
MasashiNomura 23:79e20be4bc5b 33 UCHAR eng_stop : 1;
MasashiNomura 22:24c9c2dedca9 34 }bf;
MasashiNomura 22:24c9c2dedca9 35 }typUserSw;
MasashiNomura 22:24c9c2dedca9 36
takeru0x1103 0:ecd925601fc6 37 /////////////////////////////////////////////////////////////////////
takeru0x1103 0:ecd925601fc6 38 #endif