#author("2021-12-05T14:20:02+09:00","default:Real2Virtual202111","Real2Virtual202111") [[Real2Virtual202111]] * common.h [#ie2a6d11] #code(c){{ #pragma once /****************************************************************************/ /* */ /* STK-7125 �T���v���v���O���� �w�b�_�t�@�C�� */ /* */ /* Copyright :: ���A���t�@�v���W�F�N�g */ /* Language :: SH-C */ /* File Name :: common.h */ /* */ /****************************************************************************/ //#ifndef _COMMON_H_ //#define _COMMON_H_ #define PCLK 24000000 // ���ӃN���b�N���g�� //#endif // END _COMMON_H_ #define NULL ((void *)0) #define FaceMax 6 #define DirMax 4 #define IdLenMax 50 #define CMax 128 //#define BitsParChar 10 #define BitsParChar 12 #define SampleIntForDecode0 0x02 #define SampleInterval0 0x04 #define MaxBits SampleInterval0*SampleIntForDecode0*BitsParChar //#define ReceiveBits SampleInterval0*SampleIntForDecode0*(BitsParChar-1) #define ReceiveBits SampleInterval0*SampleIntForDecode0*(BitsParChar-3) #define SampleInterval SampleInterval0*SampleIntForDecode0 #define MaxInterFaceStrLen 125 // <= 15 #include "mbed.h" void xputs(char *x); void xputc(char x); void xputd(int x); void xstrcat(char *x, char*y); int xdiv(int x, int y); int xmod(int x, int y); int xstrlen(char *x); void xstrcpy(char *x, char *y); char i2h1(int x); int h2i1(char x); //void wait(int x); //void initForComBuffer(struct comBuffer *this, unsigned char id); void hex2str(unsigned char i, unsigned char *s); }}