ctr_mcu/trunk/jhl_defs.h
n2232 7e58fd13c4 typo修正
iic_mcu_read_a_byte() 失敗時、返値が不定だったのを 0xff に固定
市部も関数名・マクロ名を、体を表すよう変更(_snake向けからの輸入)

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@597 013db118-44a6-b54f-8bf7-843cb86687b1
2014-01-07 01:22:23 +00:00

26 lines
538 B
C

#ifndef __jhl_defs_h__
#define __jhl_defs_h__
typedef unsigned char u8;
typedef signed char s8;
typedef unsigned short u16;
typedef signed short s16;
typedef unsigned short ux16;
typedef signed short sx16;
#define true 1
#define false 0
#define set_bit_if( cond, reg, pos ) \
{ \
if( cond ){ \
reg |= pos; \
}else{ \
reg &= ~pos; \
} \
}
#endif