mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-06-18 16:45:33 -04:00

(全般) ・マジックナンバーを文字列に ・外から読まない物をstaticに batt_params.c voltable.c ・定数テーブルを.hではなく.cにおいて、externで読むことに。 hal.c ・数カ所から呼ぶので、hal_reset()追加 i2c_ctr ・スタックが心配なので、割り込み優先を下げ、多重割り込みをしない。見積もりツールで確認すると大丈夫そう sw.c 電源on時、カウント時間が短いのでtask_swのインターバルを短くしてみた。…が、戻す予定 git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@365 013db118-44a6-b54f-8bf7-843cb86687b1
22 lines
412 B
C
22 lines
412 B
C
#ifndef __rtc_h__
|
|
#define __rtc_h__
|
|
|
|
|
|
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() { RCLOE0 = 1; }
|
|
#define RTC_32k_off() { RCLOE0 = 0; }
|
|
|
|
|
|
// ------------------------------------
|
|
extern bit rtc_alarm_dirty;
|
|
|
|
|
|
#endif
|