mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
・スリープ(蓋閉じ)中だけ電源長押しオフを効かなくする(全機種共通) else if( SW_pow_count == ( HOLD_THREASHOLD ) ) が無しのイメージ? ・スリープスイッチがスリープになってるときは、PWRの長押しでのみ電源オン ・このとき、長押しを3秒でなく、10秒にして欲しい ・これは機種判定してFLOWERのときのみの挙動 git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@515 013db118-44a6-b54f-8bf7-843cb86687b1
25 lines
529 B
C
25 lines
529 B
C
#ifndef __rtc_h__
|
|
#define __rtc_h__
|
|
|
|
// $Id: asdf$
|
|
|
|
|
|
void RTC_init( void );
|
|
void rtc_buf_refresh( );
|
|
void set_rtc( u8 adrs, u8 data );
|
|
|
|
//task_status_immed tski_rtc_close();
|
|
void rtc_unlock( );
|
|
|
|
// ------------------------------------
|
|
#define RTC_32k_on() { /*RCLOE2 = 0;*/ RCLOE0 = 1; /*P1.2 = 0;*/ PM1.2 = 0; }
|
|
#define RTC_32k_off() { PM1.2 = 0; RCLOE0 = 0; }
|
|
#define RTC_32k_HI_Z() { PM1.2 = 1; }
|
|
|
|
|
|
// ------------------------------------
|
|
extern bit rtc_alarm_dirty;
|
|
|
|
|
|
#endif
|