ctr_mcu/flower_toriaezu1/incs_loader.h
n2232 44d462ce13 仕様1
・スリープ(蓋閉じ)中だけ電源長押しオフを効かなくする(全機種共通)
 else if( SW_pow_count == ( HOLD_THREASHOLD ) ) が無しのイメージ?
・スリープスイッチがスリープになってるときは、HOME+PWRの短押しで電源オン
 これは機種判定してFLOWERのときのみ。CTRでは、PWRオンリー
 ON_CHECK時の電源監視での短押し判定にSW_home_countあたりをアンドする?

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@514 013db118-44a6-b54f-8bf7-843cb86687b1
2013-02-21 00:19:25 +00:00

50 lines
1.1 KiB
C
Raw 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.

/* ========================================================
 ピン状態はvolatileなのでタイミング依存で期待しない動作になるのを回避 
Hardware abstruct layer
$Id: asdf$
======================================================== */
#ifndef _WIN32
#pragma SFR
#pragma di
#pragma ei
#pragma nop
#pragma stop
#pragma halt
#pragma section @@CODE LDR_CODE
#pragma section @@CODEL LDR_CODL
//#pragma section @@R_INIT FSL_RINT // これやるとスタートアップルーチンが初期値を
//#pragma section @@CNST FSL_CNST // セットしてくれない
#pragma section @@CNSTL LDR_CNSL
#endif
# ifdef _WIN32
// VCの赤線をどうにかする
#include "sim/simOnWin.h"
# endif
//=========================================================
#include "jhl_defs.h"
#include "config.h"
#include "user_define.h"
#include "hal.h"
#include "bsr_system.h"
#include "renge\renge.h"
#include "vreg_ctr.h"
#include "vreg_twl.h"
//=========================================================
void firm_update( );
void firm_restore( );