mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
一部のマクロを関数に置き換え 温度の計算をまじめに行う。浮動小数点を使ったら1msも掛かった 場合によっては戻す git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@25 013db118-44a6-b54f-8bf7-843cb86687b1
27 lines
479 B
C
27 lines
479 B
C
#ifndef __jhl_defs_h__
|
|
#define __jhl_defs_h__
|
|
|
|
typedef unsigned char u8;
|
|
typedef char s8;
|
|
typedef unsigned short u16;
|
|
typedef short s16;
|
|
|
|
typedef unsigned char err;
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#define set_bit( cond, reg, pos ) \
|
|
{ \
|
|
if( cond ){ \
|
|
reg |= pos; \
|
|
}else{ \
|
|
reg &= ~pos; \
|
|
} \
|
|
}
|
|
|
|
|
|
#endif
|