ctr_mcu/branches/sim/config.h
n2232 ee844b9044 2.02
・pwsw_hold割り込みを入れるまでの時間が現行よりも遅くなっているのを修正。実測すると現行が正しい。プリスケーラ(task_interbal)のリファクタリング時に帳尻合わせ忘れてた
・試遊台で自動電源onが機能しなくなっていた。起動理由フラグの管理を間違えていた。
adc.c getmean3() 使っていないので削除、それに伴い不要になった変数も削除
batt_params.c バッテリパラメータを別ファイルに
pm.c コメント間違い修正


git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@362 013db118-44a6-b54f-8bf7-843cb86687b1
2011-08-03 23:54:29 +00:00

90 lines
2.0 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __config__
#define __config__
#define MCU_VER_MAJOR 0x02
#define MCU_VER_MINOR 0x02
// デバッグ向けスイッチ
//#define _debug_led_ // LED print デバッグをしたいとき
//#define _ALLOW_NOBATT_ // 実機電池なし(=アダプタのみ)での起動を許可
//#define _DBG_PEDO_AUTO_ENABLE_ // 電源投入の瞬間から歩数計on
//#define _DBG_LED_PRINT_ // LED print デバッグをしたいとき(自己アップデート用)
//#define _ENABLE_WDT_TEST_
//#define _FORCE_TAIKENDAI_
//#define _FORCE_TAIKENDAI_NBD_
//#define _DBG_CHK_OFF_LEAK_ // OFF時リーク電流のチェック(デバッガで確認)
#define _DBG_NOP_ // ブレークを貼るためにNOP()を有効にしたいとき
#define _I2C_ERR_ABORT_
#ifdef _DBG_NOP_
# define dbg_nop() NOP()
#else
# define dbg_nop() ;
#endif
// 特殊仕様ファーム
//#define _TAIKENDAI_
// homeメニューに入れてしまうのを回避する特殊ファームをつくる。ROMが足りないので電池パラメータ周りをパスする
//#define _TAIKENDAI_SEISAN_SPECIAL_
// 生産中に体験台向け使用が発症すると、アダプタがないと電源が入らずに検査に支障があるので一時ファーム
//#define _RVD_
// デバッガアタッチ時にターゲットリセットで電源が切れてしまうのを回避
// ↑改訂の時は↓気をつけないと体験台の生産できないからね!
#ifdef _TAIKENDAI_SEISAN_SPECIAL_
#define MCU_VER_MINOR 0x80
#endif
#ifdef _TAIKENDAI_
#define MCU_VER_MINOR 0x92
// 0x90 1.31 相当 HOMEに入れてしまうのをスイッチのマスクで対策
// ROM不足のため、電池パラメータ削除
#endif
#define _firm_format_v3_
//#define _MODEL_TEG2_
// ↑TEG2 CPU Type-T
//#define _MODEL_WM0_
//#define _MODEL_WM0_TEG2_CTRC_
//#define _MODEL_TS0_
// ↑TEG2 CPU Type-C
#define _MODEL_CTR_
// ↑TS board, WM1,1 TS-CTRC, 実機
// ---------------------------------- //
#ifdef _MODEL_TEG2_
unsupported!
#endif
#ifdef _MODEL_WM0_
unsupported!
#endif
#ifdef _MODEL_TS0_
unsupported!
#endif
#ifdef _MODEL_CTR_
#define _PMIC_CTR_
#define _MCU_BSR_
#endif
#endif