mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
歩数計アルゴリズム変更、ファイルを分割 フィルタ処理が重たい… 電源投入時にCODECに音量を書きに行く TS対応 スリープ HOME コア電圧1.15V TS向けはバージョンが4Xになる SVR2のふらつき防止を変更 TWL側I2Cレジスタ変更 SiFi削除(要望により) CTR側レジスタ追加 sub_sec フリー増量・アドレス移動 git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@98 013db118-44a6-b54f-8bf7-843cb86687b1
27 lines
493 B
C
27 lines
493 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 char err;
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#define set_bit( cond, reg, pos ) \
|
|
{ \
|
|
if( cond ){ \
|
|
reg |= pos; \
|
|
}else{ \
|
|
reg &= ~pos; \
|
|
} \
|
|
}
|
|
|
|
|
|
#endif
|